WorksheetsArrays - 2D
Total questions: 10
Worksheet time: 15mins
Name
Class
Date
1.
(a)
2.
(a)
3.
(a)
4.
a)
Compilation Error
b)
14
c)
13
d)
Garbage Value
5.
a)
321004
b)
3210
c)
01234
d)
400123
e)
432100
6.
a)
1 2 3 4 5 5
b)
1 2 3 4 5 0
c)
1 2 3 4 5 Garbage value
d)
Error
7.
int A[5][4];
What will be the size of above array element ?
(a)
8.
Below is an example of -
int no[30][4];
a)
1-D Array
b)
2-D Array
c)
3-D Array
d)
4-D Array
9.
int A[2][2][2];
What will be the size of above array element ?
(a)
10.
Pick all correct statements.
a)
int A[][]={1,2,3,4};
b)
int A[2][]={1,2,3,4};
c)
int A[][2]={1,2,3,4};
d)
int A[2][2]={1,2,3,4};
100 %
