Compiler Construction MCQ : Phases of Compiler, Error handling, one pass, Multipass compilers, cross compiler, Bootstrapping : Link2

Compiler Construction MCQ : Phases of Compiler, Error handling, one pass, Multipass compilers, cross compiler, Bootstrapping : Link2

Compiler Construction MCQ & Answers

       Are you worried about the answers to Compiler Construction questions :Phases of Compiler, Error handling, one pass, Multipass compilers, cross compiler, Bootstrapping? We have arranged the Show Answer button under the each question. Candidates can click on it to know the right option among the given alternatives. Furthermore, the applicants can check our web portal @ www.totalmcq.com to take part in more MCQ on various subject. Wish, the given information about the Compiler Construction MCQ will helpful to the advance and can learn the various types of questions and answers.


Q.1. Which of the following groups is/are token together into semantic structures?

A. Semantic analyzer                                                    B. Syntax analyzer
C. Intermediate code generation                               D. Lexical analyzer

Q.2. What is the output of lexical analyzer?

A. A parse tree                                                                B. Intermediate code
C. A list of tokens                                                           D. Machine code

Q.3. Grammar of the programming is checked at--------phase of compiler.

A. Semantic analysis                                                      B. Code optimization
C. Code generation                                                        D. Syntax analysis

Q.4. ---------is a process of finding a parse tree for a string of tokens.

A. Analysing                                                                    B. Parsing
C. Tokenizing                                                                 D. Recognizing

Q.5. Grammar of the programming is checked at-------phase of compiler.

A. Semantic analysis                                                      B. Code optimization
C. Code generation                                                       D. Syntax analysis

Q.6. Which symbol table implementation is based on the property of locality of reference?

A. Hash Table                                                                  B. Linear list
C. Search tree                                                                 D. Self Organisation

Q.7. What is the action of parsing the source program into proper syntactic classes?

A. Syntax analysis                                                           B. semantic analysis
C. Lexical analysis                                                           D. structure analysis

Q.8. What is the name of the process that determining whether a string of tokens can be generated by a grammar?

A. Analysing                                                                      B. Translating
C. Recognizing                                                                 D. Parsing

Q.9. The first phase of the compiler is also called as ------------

A. scanner                                                                         B. macro
C. parser                                                                           D. tokens

Q.10. -------- phase designed to improve the intermediate code.

A.Code Generation                                                   B. Code optimization
C. Syntax Analyzer                                                    D. Intermediate code generator

Q.11. How many parts of compiler are there?

A. 1                                                                                     B. 2
C. 3                                                                                    D. 4

Q.12. which concept of FSA is used in the compiler?

A. Parser                                                                           B. Code generation
C. Code optimization                                                     D. Lexical analysis

Q.13. Which concept of grammar is used in the compiler?

A. Parser                                                                           B. Lexical analysis
C. Code generation                                                         D. Code optimization

Q.14. Match the following:
List-I                                               List-II
a. Lexical analysis                      1. Graph colouring
b. Parsing                                    2. DFA minimization
c. Register allocation                 3. Post-order traversal
d. Expression evaluation           4. Production tree
  a   b   c   d

A. 2 3 1 4
B. 2 1 4 3
C. 2 4 1 3
D. 2 3 4 1

Q.15. A compiler for a high-level language that runs on one machine and produces code for a different machine is called------

A. Cross compiler                                                           B. Optimizing compiler
C. One pass compiler                                                     D. Multipass compiler