Explore topic-wise MCQs in Compilers.

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

1.

Array passed as an argument to a function is interpreted as ______________

A. Address of the array
B. None of the mentioned
C. Base address
D. No. of elements of the array
Answer» E.
2.

What is the max no. of dimensions an array may have?

A. 2
B. 8
C. 20
D. No limit
Answer» B. 8
3.

Which of the following is not possible statically in C?

A. Jagged Array
B. Rectangular Array
C. Cuboidal Array
D. Multidimensional Array
Answer» C. Cuboidal Array
4.

Comment on the 2 arrays regarding P and Q:

A. a1 is P, a2 is Q
B. a1 is P, a2 is P
C. a1 is Q, a2 is P
D. a1 is Q, a2 is QView Answer
Answer» C. a1 is Q, a2 is P
5.

Comment on the following statement:

A. An array “a” of pointers
B. A pointer “a” to an array
C. A ragged array
D. None of the mentionedView Answer
Answer» C. A ragged array
6.

What will be output if you will execute following C code?

A. 20
B. 11
C. 30
D. None of the mentionedView Answer
Answer» B. 11
7.

What will be output of the following code?

A. Network
B. N
C. network
D. Garbage ValueView Answer
Answer» E.
8.

Int RollNUm[30[4] is a?

A. 1-d Array
B. 3-D Array
C. 4- D Array
D. 2-D Array
Answer» E.
9.

In which way can SAM be stored in an array?

A. char name[]=”SAM”
B. char name[6]={‘S’,’A’,’M’}
C. char name[6]={“S”,”A”,”M”}
D. char name [6]={‘S’,’A’,’M’,’\0’}
Answer» E.