Compiler Design Quiz Question with Answer


11. The identification of common sub-expression and replacement of run-time computations by compile-time computations is

  1. local optimization
  2. loop optimization
  3. constant folding
  4. data flow analysis

12. What information need to be included in an object module, if a linker is given object modules for a set of programs that were compiled separately?

  1. Names and locations of all external symbols defined in the object module
  2. Object code
  3. Absolute addresses of internal symbols
  4. Relocation bits

13. Compiler should report the presence of ......... in the source program, in translation process

  1. Classes
  2. Objects
  3. Errors
  4. Text

14. Lexical analysis is about breaking a sequence of characters into

  1. Groups
  2. Packets
  3. Lines
  4. Tokens

15. In a compiler, the data structure responsible for the management of information about variables and their attributes is

  1. Semantic stack
  2. Parser table
  3. Symbol table
  4. Abstract syntax-tree

16. Compiler can check ............. error

  1. Logical
  2. Syntax
  3. Content
  4. Both A and B

17. Grammar of the programming is checked at ........ phase of compiler

  1. Semantic analysis
  2. Syntax analysis
  3. Code optimization
  4. Code generation

18. The languages that need heap allocation in the runtime environment are

  1. Those that use global variables
  2. Those that use dynamic scoping
  3. Those that support recursion
  4. Those that allow dynamic data structure

Tags :


Multiple Choice Questions and Answers on Compiler Design


Compiler Design Multiple Choice Questions and Answers


Compiler Design Trivia Quiz


Compiler Design Question and Answer PDF Online




Spreading Knowledge Across the World

USA - United States of America  Canada  United Kingdom  Australia  New Zealand  South America  Brazil  Portugal  England  Scotland  Norway  Ireland  Denmark  France  Spain  Poland  Netherland  Germany  Sweden  South Africa  Ghana  Tanzania  Nigeria  Kenya  Ethiopia  Zambia  Singapore  Malaysia  India  Pakistan  Nepal  Taiwan  Philippines  Libya  Cambodia  Hong Kong  China  UAE - Saudi Arabia  Qatar  Oman  Kuwait  Bahrain  Dubai  Israil  and many more....