Compiler Construction MCQ : Introduction-Compiler, Structure of Compiler, Phases of Compiler : Link1

Compiler Construction MCQ : Introduction-Compiler, Structure of Compiler, Phases of Compiler : Link1

Compiler Construction MCQ & Answers

       Are you worried about the answers to Compiler Construction questions :Defination of Compiler, Structure of Compiler, Aspects of Compiler, Phases of Compiler? 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. If the source language is high-level language and the object language is a low-level language(assembly or machine), then such a translator is called as a -------------.

A. translator                                                                 B. assembler
C. compiler                                                                   D. interpreter

Q.2. Compiler translates the source code to-------

A. Executable code                                                      B. Machine code
C. Binary code                                                              D. Both B and C

Q.3. A ------------ is a program that takes as input a program written in source language and produces as output a program in another language as object language.

A. translator                                                                  B. assembler
C. compiler                                                                   D. interpreter

Q.4. The linker is-----------

A. same as loader                          B. required to create a load module
C. user source code as input       D. always used before programs are executed

Q.5. The compilation process is partitioned into a series of sub processes called --------

A. phases                                                                         B. sub program
C. module                                                                        D. subsets

Q.6. Compiler can check-------error.

A. Logical                                                                          B. Syntax
C. Content                                                                        D. Both A and B

Q.7. An interpreter is a program that directly executes an---------- code.

A. source                                                                           B. object
C. intermediate                                                                D. subject

Q.8. Resolution is externally defined symbols is performed by -------

A. Linker                                                                           B. Loader
C. Compiler                                                                     D. Assembler

Q.9. If the source language is an assembly language and the target language is a machine language, then the translator is called an ------------.

A. translator                                                                      B. compiler
C. assembler                                                                     D. interpreter

Q.10. Data structure used to record the information is called a -------table.

A. syntactic                                                                        B. value
C. symbol                                                                           D. tokens

Q.11. ---------is used for translators that take programs in one high-level language into equivalent programs in another high-level language.

A. Preprocessor                                                                 B. Compiler
C. Assembler                                                                      D. Translator

Q.12. --------phase is known as the front-end of the compiler.

A. Analysis                                                                           B. Synthesis
C. Semantic analysis                                                          D. both A & B

Q.13. In an implementation of a compiler, portions of one or more phases are combined into a module called a --------.

A. parser                                                                              B. pass
C. scanner                                                                           D. set

Q.14. A compiler takes as input a source program and produces as output an equivalent sequence of ---------.

A. user program                                                                 B. object language
C. machine instructions                                                   D. call

Q.15. ------phase is known as the back-end of the compiler.

A. Analysis                                                                           B. Synthesis
C. Semantic analysis                                                          D. both A & B