What is stored in the variable strResult after the following statement executes?
String strResult;
strResult = "Michael" & "Ekedahl";
A -
MichaelEkedahl
B -
syntax error
C -
None of the other answers
D -
Michael Ekedahl
2-
What method of the String class returns a #
A -
The same method
B -
EqualTo method
C -
Same method
D -
Equals method
3-
What value stored in the variable str2 after the following statements have executed?
string str1= "OneTwoThreee";
string str2;
str2 = str1.Substring(1, 10);
A -
None of the other answers
B -
The statements will cause a syntax error
C -
neTwo Three
D -
OneTwoThre
4-
What is the name of the method to convert a Number data type to a string data type?
A -
None of the other answers
B -
Convert.ToSByte(Number);
C -
Convert.ToString(Number);
D -
Convert.FormatNumber(Number);
5-
What method of the String class remove #
A -
Trim
B -
LRTrim
C -
TrimLeftRight
D -
OutSpace
6-
What functionality does the AutoScroll property provides #
A -
The AutoScroll property aitomatically provides scroll bars on a form when #
B -
Form have no AutoScroll property
C -
The AutoScroll automatically provides scroll bars on all controls
D -
The AutoScroll property always provides scroll bars on a form
7-
What is the correct syxtax for displaying value of the String variable myString in a
TextBox txtBox?
A -
txtBox.Text = "myString";
B -
txtBox.Text = myString;
C -
txtBox.Text = Str(myString);
D -
txtBox.Text.myString;
8-
What method of the String class returns # specifed character or string in a String
object?
A -
LastIndexOf
B -
LastOfString
C -
LastLocationOf
D -
LastPositionOf
9-
What is the value stored in the variable intFound after the following statements have
executed?
int intFornd;
string strData = "Peter Paul Mary";
intFound = strData.IndexOf("P");
A -
true
B -
0
C -
false
D -
1
10-
What is the name of the method to convert a String data type to a DateTime data type?