finds the first occurrence of each letter in the string
B -
generates an error
C -
will search for the first occurrence of the sequence of characters #
D -
searches for the first occurrence of any of the characters #
2-
If a programmer inserts "using System"#
System.Console.out.WriteLine("Hello");?
A -
Console.WriteLine("Hello");
B -
Console.Out("Hello");
C -
WriteLine("Hello");
D -
System("Hello");
3-
If you want to use the Book class for store 500 books, write a segment to how use to
declare and create your instantiations.
A -
Book[] store = new Book[500]: for (int i = 0; i < store.Lenght; i++) store[i] = new Book();
B -
Book[] store = new Book[500]: for (int i = 0; i < store.Lenght; i++) store[i] = Book(i);
C -
Book store = new Book: for (int i = 0; i < store.Lenght; i++) store[i] = new Book();
D -
store[] Book = new Book[500]: for (int i = 0; i < store.Lenght; i++) store[i] = new Book();
4-
If programmer write a following segment, how to translate to it in term of for
statement.
foreach (int count in homwwork)
homework[count] = 100;
A -
for (int count = 1; count<=homework.Lenght; count++) homework[count]=100;
B -
for (int count = 0; count<=homework.Lenght; count++) homework[count]=100;
C -
for (int count = 0; count homework[count]=100;
D -
for (int count = 0; count<=homework.Lenght; count++) 100=homework[count];
5-
IL code compiles to ____.
A -
Platform-specific Executable code
B -
Byte Code
C -
other
D -
.NET Code
6-
If you run the following program that lines would be included in its output?
class A
{
public static void Main ( )
{
int i = 0;
switch (i) {
default: System.Console.Write (i);
break;
case 1:
System.console.Write ("{0}", 1);
goto default;
case 0:
System.Console.Write ("{0}", 0);
goto case 1;
}
}
}
A -
The program fails to compile
B -
010
C -
100
D -
110
7-
In C#, the name of a method I defined ____.
A -
lower
B -
proper
C -
capitalized
D -
other
8-
To output the value of multidimensional array, #
A -
myArray{1}{3};
B -
myArray[1.3]:
C -
myArray[1][3]:
D -
myArray(1).(3):
9-
In C# Thread.Sleep (time) measures time in:
A -
All of the above
B -
seconds
C -
nanoseconds
D -
miliseconds
10-
____ in simple terms is nothing but conversion of a value type into a reference type.