Table of Content

Array MCQ : Declaration of Array (Multiple Choice Questions)


Question 1
What is meaning of following declaration ?
int arr[20];
A
Array of size 20 that can have integer address
B
Array of Size 20
C
None of these
D
Integer Array of size 20
Question 2
int a[20]
What will be the size of above array element ?
A
19
B
21
C
22
D
20
Question 3
What is meaning of the following statement ?
int *ptr[20]
A
Integer Array of size 20 pointing to an Integer Pointer
B
None of these
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[];
name = "INDIA"
B
char name[6] = {'I','N','D','I','A','\0'}
C
char name[6] = {'I','N','D','I','A'}
D
char name[6] = {"I","N","D","I","A"}
Question 5
Below is an example of -
int RollNum[30][4];
A
1-D Array
B
4-D Array
C
3-D Array
D
2-D Array
There are 5 questions to complete.