Table of Content

Array MCQ : Declaration of Array (Multiple Choice Questions)


Question 1
What is meaning of following declaration ?
int arr[20];
A
None of these
B
Array of size 20 that can have integer address
C
Array of Size 20
D
Integer Array of size 20
Question 2
int a[20]
What will be the size of above array element ?
A
19
B
22
C
21
D
20
Question 3
What is meaning of the following statement ?
int *ptr[20]
A
None of these
B
Integer Array of size 20 pointing to an Integer Pointer
C
Integer Array to Integer Pointers having size 20
D
Array of Integer Pointers of size 20
Question 4
In C Programming, If we need to store word "INDIA" then syntax is as below -
A
char name[6] = {'I','N','D','I','A','\0'}
B
char name[6] = {"I","N","D","I","A"}
C
char name[];
name = "INDIA"
D
char name[6] = {'I','N','D','I','A'}
Question 5
Below is an example of -
int RollNum[30][4];
A
2-D Array
B
1-D Array
C
4-D Array
D
3-D Array
There are 5 questions to complete.