Explore topic-wise MCQs in Compilers.

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

1.

_____________ is a graph representation of a derivation.

A. The parse tree
B. Oct tree
C. Binary tree
D. None of the mentioned
Answer» B. Oct tree
2.

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

A. DAG
B. Flow Chart
C. Control Graph
D. Hamilton graph
Answer» C. Control Graph
3.

In a bottom up evaluation of a syntax direction definition, inherited attributes can __________

A. Always be evaluated
B. Be evaluated only if the definition is L attributed
C. Evaluation only done if the definition has synthesized attributes
D. None of the mentioned
Answer» D. None of the mentioned
4.

A synthesized attribute is an attribute whose value at a parse tree node depends on __________

A. Attributes at the siblings only
B. Attributes at parent node only
C. Attributes at children nodes only
D. None of the mentioned
Answer» D. None of the mentioned
5.

Input to code generator is __________

A. Source code
B. Intermediate code
C. Target code
D. All of the mentioned
Answer» C. Target code