Compiler Design MCQ Quiz

  1. A optimizing compiler
  2. Which of the following actions an operator precedence parser may take to recover from an error?
  3. Shift reduce parsers are
  4. Which of the following is used for grouping of characters into tokens?
  5. In a compiler, keywords of a language are recognized during -
  6. Compiler translates the source code to
  7. What is the output of lexical analyzer?
  8. How many parts of compiler are there?
  9. ......................is a process of finding a parse tree for a string of tokens.
  10. ......................is a process of finding a parse tree for a string of tokens.
  11. Compiler can check ________ error.
  12. ......................is the most general phase structured grammar.
  13. A _________ is a software utility that translates code written in higher language into a low level language.
  14. The graph that shows basic blocks and their successor relationship is called

Take Compiler Design Quiz To test your Knowledge 

Below are few Compiler Design MCQ test that checks your basic knowledge of Compiler Design. This Compiler Design Test contains around 20 questions of multiple choice with 4 options. You have to select the right answer to a question. You can see the correct answer by clicking view answer link.

Compiler Design MCQ

1. A optimizing compiler

  • Is optimized to take less time for execution
  • Optimized the code
  • Is optimized to occupy less space
  • None of the mentioned
View Answer

2. Which of the following actions an operator precedence parser may take to recover from an error?

  • Delete symbols from the stack
  • Insert symbols onto the stack
  • Inserting or deleting symbols from the input
  • All of the mentioned
View Answer

3. Shift reduce parsers are

  • Bottom up parser
  • Top down parser
  • Top down parserMaybe both
  • None of the mentioned
View Answer

4. Which of the following is used for grouping of characters into tokens?

  • Parser
  • Code generator
  • Lexical analyser
  • Code generator
View Answer

5. In a compiler, keywords of a language are recognized during -

  • the code generation
  • parsing of the program
  • the lexical analysis of the program
  • dataflow analysis
View Answer

6. Compiler translates the source code to

  • Machine code
  • Binary code
  • Executable code
  • Both 1 and 2
View Answer

7. What is the output of lexical analyzer?

  • A list of tokens
  • Intermediate code
  • A parse tree
  • Machine code
View Answer

8. How many parts of compiler are there?

  • 8
  • 4
  • 2
  • 1
View Answer

9. ......................is a process of finding a parse tree for a string of tokens.

  • Analysing
  • Recognizing
  • Tokenizing
  • Parsing
View Answer

10. ......................is a process of finding a parse tree for a string of tokens.

  • Analysing
  • Recognizing
  • Tokenizing
  • Parsing
View Answer

11. Compiler can check ________ error.

  • Syntax
  • Content
  • Logical
  • Both A and B
View Answer

12. ......................is the most general phase structured grammar.

  • Regular
  • Context free
  • Context sensitive
  • All of these
View Answer

13. A _________ is a software utility that translates code written in higher language into a low level language.

  • Text editor
  • Compiler
  • Converter
  • Code optimizer
View Answer

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

  • Flow graph
  • control graph
  • Hamiltonion graph
  • DAG
View Answer

15. When a computer is first turned on or resrarted, a special type of absolute loader is executed called

  • Boot strap loader
  • " Compile and GO " loader
  • Relating loader
  • Boot loader
View Answer

16. When a computer is first turned on or resrarted, a special type of absolute loader is executed called

  • Boot strap loader
  • " Compile and GO " loader
  • Relating loader
  • Boot loader
View Answer

17. A self-relocating program is one which

  • consists of a program and relevant information for its relocation
  • cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation
  • can itself perform the relocation of its address sensitive portions
  • all of these
View Answer

18. Scissoring enables -

  • entire data to be displayed
  • full data display on full area of screen
  • a part of data to be displayed
  • no data to be displayed
View Answer

19. which is the permanent data base in the geneal model of Compiler ?

  • identifier table
  • literal table
  • terminal table
  • source code
View Answer

20. which of the following parsers is the most powerful ?

  • Operator - precedence
  • LALR
  • SLR
  • Canonical LR
View Answer