Sie sind auf Seite 1von 2

1.

isWhich
1. Code that targets the Common Language Runtime
knownof
asthe following assemblies can be
stored in Global Assembly Cache?
A. Unmanaged
B. Distributed
Private Assemblies
Friend Assemblies
C. Managed
Code Assemblies
Shared
D. Native
Code
Public Assemblies
2. What is the need for Conversion of data type in C#?
Which of the following components of the .NET framework provide an extensible set of classes
a) To
store
a value of
one data typelanguage?
into a variable of another data type
that can be used by any
.NET
compliant
programming
b) To get desired data
c) To prevent situations of run time error during change or conversion of
data typeRuntime
Common Language
d) Compiler
will urge for conversion from integer to character data type
Common Language
Infrastructure
3.
What
will
be
the
output
of the following set of code?
.NET class libraries
Common Type System
class sum
{
public int x;
private int y;
public void math(int a, int b)
{
x = a * 4;
y = b;
}
}
class Program
{
static void Main(string[] args)
{
sum p = new sum();
p.math(12, 30);
Console.WriteLine(p.x + " " + p.y);
Console.ReadLine();
}
}
a) 48, 30
b) 48, 0
c) 0, 0
d) Compile time error
4. Which function should be used to validate that input is not a string
before performing arithmetic operations?
a.) IsArithmetic

b.) IsNotString
c.) IsNumeric
d.) IsString
5. When no exception is thrown at runtime then who will catch it?
a) CLR
b) Operating System
c) Loader
d) Compiler

3. _________ are interactive objects that you place in dialog boxes or other windows to carry
out user actions.
Controls
Objects
Classes
Forms

4. Which value for the ComboBox DropDownStyle property allows a user to type in
data?
a) DropDown
b) DropDownSimple
c) DropDownList
d) is the same as the Items property of a ListBox
5.
a)
b)
c)

Which property determines whether a control is displayed to the user?


Hide
Visible
Enabled
d) Cursor
6. What is the method used to activate the color dialog box?
a. ActivateDialog
b. DisplayDialog
c. ExhibitDialog
d. ShowDialog

Das könnte Ihnen auch gefallen