Multiple Choice
Which of the following does not declare a 2-by-2 array and set all four of its elements to 0?
A) int b [ 2 ][ 2 ]; b[ 0 ][ 0 ] = b[ 0 ][ 1 ] = b[ 1 ][ 0] = b[ 1 ][ 1 ] = 0;
B) int b[ 2 ][ 2 ] = { 0 };
C) int b[ 2 ][ 2 ]; for int i = 0; i < 2; i++ )
For int j = 0; j < 2; j++ )
B[ i ][ j ] = 0;
D) All of the above initialize all four of the array elements to 0.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Linear search can be used on:<br>A) Unsorted
Q9: Unless otherwise specified, entire arrays are passed
Q10: Which of the following statements is false
Q11: After the i<sup>th</sup> iteration of the insertion
Q12: Which of the following is not a
Q13: A double subscripted array declared as int
Q14: Linear search is highly inefficient compared to
Q15: In a typical nested for-loop used to
Q17: To prevent modification of array values passed
Q23: Which statement would be used to declare