Question Bank all jobs

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

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

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

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

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

6. The parameter passing mechanism for an array is

7. The following program main( ) { static int a[ ] = { 7, 8, 9 } ; printf( "%d", 2[ a ] + a[ 2 ] ) ; }

8. While passing an array as an actual argument, the function call must have the array name

9. Consider the following type definition. typedef char x[10]; x myArray[5]; What will sizeof(myArray) be ? (Assume one character occupies 1 byte)

10. ODOMETER : DISTANCE (GOVT. Bank. General Officer: 2019)

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