What value for a forms Opacity property will make #
A -
An Opacity value of None makes a form fully opaque
B -
An Opacity value of 100% or 1.00 makes a form fully opacque
C -
An Opacity value of Opacque make a form fully opaque
D -
An Opacity value of 0% or 0.00 makes a form fully opacque
2-
When a derived class redefines a base method by using the same signature and return
type, the derived class is said to ____ that base class method.
A -
none of the above
B -
overloading
C -
inherit
D -
overriding
3-
What will be displayed in txtBox when the following fragment are executed?
string a, b, c;
a = "THE WHOLE";
b = "PART";
c = a.Substring(Convert.ToInt16(Math.Sqrt(4)), b.Length);
c = c.Replace("WH", "Who");
txtBox.Text = c;
A -
WhoLE
B -
HE Who
C -
E Who
D -
HE W
4-
What is the managed code?
A -
Code managed ouside the IL
B -
Code which cant be managed by the IL
C -
Code to be compiled by IL
D -
Code written in VB.NET
5-
What is wrong with the following for statement?
for(i=0; j=0, ++i,j+=1; i<0,++1;)
k+=i*j+j*j;
A -
The syntax of for loop is improper
B -
There should be semicolon between i=0 and j=0
C -
It should include more than one statement in the statement block
D -
It uses more than one loop index
6-
What is wrong with the following for #
for(i=0; j=0; i<10; ++I, j+=i)
{
k += i*j+j*j;
}
A -
There should be comma between i=0 and j=0 There should be a semicolon between j=0 and I<10
B -
Other
C -
It should include more than one statement in the statement block
D -
It uses more than one loop index
7-
When you add a control to a Windows Form at design time, which # modify to
initialize the controls properties?
A -
The IDE modifies the Constructor() procedure to initialize the controls properties.
B -
The IDE modifies the Initialize() procedure to initialize the controls properties.
C -
The IDE modifies the InitializeComponent() procedure to initialize the controls properties.
D -
The IDE modifies the New() procedure to initialize the controls properties.
8-
What is ouput by the following C# code segment/
int temp;
temp = 180;
while (temp != 80 ) (
if ( temp > 90 ) {
Console.Write( "This porridge is too hot!" );
temp = temp – ( temp > 150 ? 100 : 20 );
} // end if
else {
if ( temp < 70 ) {
Console.Write( "This porridge is too cold!" );
temp = temp + ( temp < 150 ? 30 : 20 );
} } }
if ( temp = = 80 )
Console.WriteLine ("This porridge is just right!" );
A -
This porridge is just right!
B -
This porridge is too hot! This porridge is just right!
C -
This porridge is too hot!
D -
This porridge is too cold! This porridge is just right!
9-
What is the value on label named label1 after running folow segment code, if value
of c=9.
if (c < 7)
label1.Text = "c is";
label1.Text = label1.Text + "less than 7";
A -
c is less than 7
B -
less than 7
C -
c is
D -
Nothing display on label1
10-
When should you choose a ComboBox control instead of a ListBox control in an
application?
A -
None of the above
B -
When you want to select only a single item in the control
C -
When you want to enter text in the control
D -
When you want to select multiple items in the control