Q.1
Characters are grouped into tokens in which of the following phase of the compiler design?
  • a) Code generator
  • b) Lexical analyzer
  • c) Parser
  • d) Code optimization
Q.2
Why Generation of intermediate code based on an abstract machine model is useful in compilers?
  • a) Writing for intermediate code generation
  • b) Portability of the front end of the compiler
  • c) Implementation of lexical analysis and syntax analysis is made easier
  • d) All of the mentioned
Q.3
Why System program such as compiler are designed?
  • a) They are Serially usable
  • b) They are Re-enterable
  • c) They are Nonreusable
  • d) All of the mentioned
Q.4
Which of the following technique is used for building cross compilers for other machines?
  • a) Canadian Cross
  • b) Mexican Cross
  • c) X-cross
  • d) Brazilian Cross
Q.5
Which of the following can detect an error if a programmer by mistake writes multiplication instead of division?
  • a) Interpreter
  • b) Compiler or interpreter test
  • c) Compiler
  • d) None of the mentioned
0 h : 0 m : 1 s