Compiler Design Questions – Set 4

Dear Aspirants,
Welcome to the Professional Knowledge Section in Affairscloud.com. Here we are providing sample questions in Compiler Design. It will be useful for the upcoming SBI Assistant Manager(System) and IBPS SO(IT Officer) examinations. We have also included some important questions that are repeatedly asked in previous exams.

  1. It is a notation for writing arithmetic expressions in which the operands appear before their operators is known as?
    A. Postfix notation
    B. Prefix notation
    C. Polish notation
    D. Syntax tree
    E. None of the Above
    Answer & Explanation
  2. Postfix notation is also known as?
    A. Prefix notation
    B. Reverse Polish notation
    C. Polish notation
    D. Syntax tree
    E. None of the Above
    Answer & Explanation
  3. It is a notation for writing arithmetic expressions in which the operands appear after their operators is known as?
    A. Prefix notation
    B. Reverse Polish notation
    C. Postfix notation
    D. Syntax tree
    E. None of the Above
    Answer & Explanation
  4. Prefix notation is also known as?
    A. Postfix notation
    B. Reverse Polish notation
    C. Polish notation
    D. Syntax tree
    E. None of the Above
    Answer & Explanation
  5. Which of the following is a program used with a compiler or assembler to provide links to the libraries needed for an executable program.?
    A. Identifier
    B. Linker
    C. Terminal table
    D. loader
    E. None of the Above
    Answer & Explanation
  6. Lexical analysis is the process of converting a sequence of characters such as in a computer program or web page into a ?
    A. reusable module
    B. Serially usable module
    C. re-enterable module
    D. non reusable module
    E. Sequence of tokens
    Answer & Explanation
  7. Which of the following is required to create a load module?
    A. Identifier
    B. Linker
    C. Terminal table
    D. Assembler
    E. None of the Above
    Answer & Explanation
  8. Which of the following is the second phase of a compiler.?
    A. Lexical Analysis
    B. Semantic Analysis
    C. Syntax Analysis
    D. Error handling
    E. None of the Above
    Answer & Explanation
  9. Which of the following is the third phase of a compiler.?
    A. Lexical analysis
    B. Syntax analysis
    C. Semantic analysis
    D. Code generation
    E. None of the Above
    Answer & Explanation
  10. The first phase of compiler which is also termed as scanning is?
    A. Lexical analysis
    B. Syntax analysis
    C. Semantic analysis
    D. Code generation
    E. None of the Above
    Answer & Explanation