12 questions
for(int i=0;i<10;i++)
deck[2*i] = 5;
// Which statement will not print out 5?
Console.WriteLine(deck[18]);
Console.WriteLine(deck[0]);
Console.WriteLine(deck[10]);
Console.WriteLine(deck[20]);
for(int i = 1; i<=100; i++)
numbers[i-1] = i/10;
//At what index will the first 2 occur?
1
2
19
20
for(int i = 1; i<=100; i++)
numbers[i] = i%10;
//At what index will the first 5 occur?
4
5
49
50
//cArray is filled with "c"s.
for(int i=1;i<100;i++)
if(i<11)
cArray[i] = "d";
//At what index will cArray
have its first "c"?
0
1
11
12
Which is correct declaration of a 2D array with 5 rows and 2 columns?
int [,] arrayTwoDee = new int [ 2 , 5 ];
int [,] arrayTwoDee = new int [ 5 , 2 ];
int [,] arrayTwoDee = new int [ 5 ; 2 ];
int [,] arrayTwoDee = new int [ 2 . 5 ];
Given this line: int[,] skateboards = { {80, 45}, {25, 10} }; What are the coordinates of 45?
skateboards[1,1];
skateboards[0,1];
skateboards[0,0];
skateboards[1,0];
none of these
Which array represents int[,] subject = new int[3, 2]; ?
int[,] subject = { {20,18}, {13, 15}};
int[,] subject = { {20,18,13} , {15, 17, 23}};
int[,] subject = { {20,18}, {13, 15}, {17, 23} ;
int[,] subject = { {20,18}, {13, 15}, {17, 23} };