Question Bank all jobs

1. Choose the correct statements

2. Choose the statement that best defines an array

3. If n has the value 3, then the statement a [++n] = n++ ;

4. C does no automatic array bound checking. This is

5. The following program main() { static char a[3][4] = {"abcd", "mnop", "fghi"}; putchar(**a); }

6. If a two dimensional array is used as a formal parameter, then

7. Under which of the following conditions, the size of an one-dimensional array need not be specified?

8. The maximum number of dimension an array can have in C is

9. Consider the statement int val[2] [4] = { 1, 2, 3, 4, 5, 6, 7, 8} ; 4 will be the value of

10. The parameter passing mechanism for an array is

Ans.
1 4
2 3
3 4
4 4
5 4
6 2
7 4
8 4
9 1
10 3