Explore topic-wise MCQs in Compilers.

This section includes 7 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 the function of the storage assignment?

A. Assign storage to all variables referenced in the source program
B. Assign storage to all temporary locations that are necessary for intermediate results
C. Assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized
D. All of the mentioned
Answer» E.
2.

What is the disadvantage of Compile and GO loading scheme?

A. Memory is wasted because the case occupied by the assembler is unavailable to the object program
B. Necessary to translate the users program
C. It is very difficult to handle multiple segments, even when the source programs are in different languages and to produce orderly modular programs
D. All of the mentioned
Answer» E.
3.

When a computer is rebooted, a special type of loader is executed called?

A. Compile and GO loader
B. Boot loader
C. Bootstrap Loader
D. Relating Loader
Answer» D. Relating Loader
4.

The specific task storage manager performs ____________

A. Allocation/ deal location of programs
B. Protection of storage area assigned to the program
C. Allocation/ deal location of programs & protection of storage area assigned to the program
D. None of the mentioned
Answer» D. None of the mentioned
5.

The graph that shows basic blocks and their successor relationship is called ____________

A. Dag
B. Flow Graph
C. Control Graph
D. Hamilton Graph
Answer» C. Control Graph
6.

The identification of common sub-expression and replacement of run-time computations by compile-time computations is _____________

A. Local optimization
B. Loop optimization
C. Constant folding
D. Data flow analysis
Answer» D. Data flow analysis
7.

Which of the following features cannot be captured by CFG?

A. Syntax of if-then-else statements
B. Syntax of recursive procedures
C. A variable is declared before its use
D. Matching nested parenthesis
Answer» E.