Compiler Construction MCQ : Error handling, one pass, Multipass compilers, cross compiler, Bootstrapping : Link3

Compiler Construction MCQ : Error handling, one pass, Multipass compilers, cross compiler, Bootstrapping : Link3

Compiler Construction MCQ & Answers

       Are you worried about the answers to Compiler Construction questions :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. Cross-compiler is a compiler--------

A. That generates object code for the machine it’s running on.
B. which is written in other than source language.
C. Which is written in the same language as the source language.
D. That runs on one machine but produces object code for another machine

Q.2. State true or False. "Cross compiler is used in Bootstrapping."

A. True                                                                          B. False

Q.3. Which of the following statement is true about Two-pass compiler.

A. Front End depends upon Back End
B. Both are independent of each other
C. Back End depends upon Front End
D. None of the above

Q.4. In a three-pass compiler, -------- is used for code improvement or optimization.

A. Back End                                                              B. Front End
C. Middle End                                                          D. Both Front End and Back End

Q.5. A compiler that runs on one machine and produces code for a different machine is called-----

A. one pass compilation                                         B. two pass compilation
C. cross compilation                                               D. None of the above

Q.6. State true or false. " Front-end of a two pass compiler is consists of scanner."

A. True                                                                      B. False

Q.7. In multi-pass compiler during the first pass, it gathers information about-------

A. Bindings                                                                B. Static information
C. Declaration                                                           D. None of the above

Q.8. In--------certain check are performed to ensure that components of a program fit together meaningfully.

A. Semantic analysis                                                 B. Linear analysis
C. Hierarchical analysis                                            D. None of the above

Q.9. Compilers are some times classifies in terms of-----------

A. Single-pass                                                             B. Multipass
C. Load and go                                                            D. All of the above.

Q.10. State true or false. "Lexer and scanner are two different phases of compiler."

A. True                                                                         B. False

Q.11. Front end of two pass compiler takes-------as input.

A. Intermediate Representation (IR)                        B. Source code
C. Machine code                                                         D. None of the above

Q.12. ------is an important component of semantic analysis.

A. Type checking                                                         B. Code checking
C. Flush checking                                                        D. None of the above.

Q.13. In compiler, linear analysis is also called-------

A. Lexical analysis                                                         B. Scanning
C. Both lexical analysis and scanning                        D. None of the above.

Q.14. -------of a two-pass compiler is consists of instruction selection, Register allocation and instruction scheduling.

A. Frontend                                                                     B. Backend
C. start                                                                             D. Middle

Q.15. In Back End module of the compiler, optimal register allocation uses------

A. O(n log n)                                                                    B. NP-Complete
C. O(log n)                                                                       D. log n