Explore topic-wise MCQs in Compilers.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.

1.

What is meaning of the following?

A. Interger array of size 20 pointing to an integer Pointer
B. None of the mentioned
C. Array of integer pointer of size 20
D. All of the mentionedView Answer
Answer» D. All of the mentionedView Answer
2.

What will be the size of below array elements?

A. 21
B. 22
C. 20
D. 19View Answer
Answer» D. 19View Answer
3.

What is the meaning of the following declaration?

A. Integer Array of size 20
B. None of the mentioned
C. Array of size 20
D. Array of size 20 that can have higher integer addressView Answer
Answer» B. None of the mentioned
4.

What does the following declaration mean?

A. Pointer to an array
B. None of the mentioned
C. Array of 10 integers
D. Pointer to an array & Array of 10 integersView Answer
Answer» B. None of the mentioned
5.

What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

A. The compiler would report an error
B. May stop working abruptly if data gets overwritten
C. None of the mentioned
D. The element will be set to 0
Answer» C. None of the mentioned
6.

Which of the following gives the memory address of the first element in array tan?

A. tan[0]
B. tan
C. &tan
D. tan [1]
Answer» C. &tan
7.

Which of the following correctly accesses the seventh element stored in tan?

A. tan[6]
B. tan[7]
C. tan(7)
D. tan
Answer» B. tan[7]
8.

Which of the following is a two-dimensional array?

A. array array[20][20]
B. int array[20][20]
C. int array[20, 20]
D. char array[20]
Answer» C. int array[20, 20]
9.

What is the index number of the last element of an array with 29 elements?

A. 29
B. 28
C. 0
D. Programmer-Defined
Answer» C. 0
10.

Which of the following correctly declares an array?

A. Int array[ 10]
B. int array
C. array{10}
D. array array[ 10]
Answer» B. int array