How can you initialize an array of three bool values?
A -
bool b=true,true,true};
B -
booL[3] b=new bool[3]={true,true,true};
C -
bool[3] b={true,true,true};
D -
bool [] b=new bool[3];
7-
How many times is the body of the loop below executed?
Int counter;
Counter = 1;
While ( counter > 20 ) (
// body of look
Counter = counter + 1;
) // end while
A -
0
B -
21
C -
19
D -
20
8-
If two StringBuilder objects contain the #
A -
the are two different objects
B -
if one changes, so will the other
C -
they represent the same meory location
D -
None of the above
9-
How to get the alphabet in uppercase A (ASCII = 65) through Z (ASCII = 90)?
A -
protected void GetAlphabet() { string strAlpha = " "; for (int i = 65; i < = 90; i++) { strAlpha + = i.ToChar() + " "; } }
B -
protected void GetAlphabet() { string strAlpha = " "; for (int i = 65; i < = 90; i++) { strAlpha + = i.char(i.ToString()) + " "; } }
C -
protected void GetAlphabet() { string strAlpha = " "; for (int i = 65; i < = 90; i++) { strAlpha + = ((char)i) .ToString() + " "; } }
D -
#
10-
If you do not indicate a return type for a method, its return type is ____ by default.