Sample C Programming Quiz Questions on Arrays.
Sno Question Option 1 Option 2 Option 3 Option 4 Answer 1. Which of the following correctly declares an array? int array[10]; int array; array{10}; array array[10]; 1 2. What is the index number of the last element of an array with 29 elements? 29 28 0 Programmer-defined 2 3. Which of the following is a two-dimensional array? array array[20][20]; int array[20][20]; int array[20, 20]; char array[20]; 2 4. Which of the following correctly accesses the seventh element stored in array N with 100 elements? N[6]; N[7]; N(7); N; 1 5. What is right way to Initialize an array? int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, ...