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