# 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
A. Postfix notation
Explanation:
It is a notation for writing arithmetic expressions in which the operands appear before their operators is known as Postfix notation

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
B. Reverse Polish notation
Explanation:
Reverse Polish notation (RPN) is a mathematical notation in which every operator follows all of its operands. Example:- (10 + 14) * (10 – 6) => 10 14 + 10 6 – *

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
A. Prefix notation
Explanation:
It is a notation for writing arithmetic expressions in which the operands appear after their operators is known as Prefix notation.

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
C. Polish notation
Explanation:
Polish Notation is a way of expressing arithmetic expressions that avoids the use of brackets to define priorities for evaluation of operators. Example:- (10 + 14) * (10 – 6) => * + 10 14 – 10 6

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
C. Terminal table
E. None of the Above
Explanation:
Linker is a program used with a compiler or assembler to provide links to the libraries needed for an executable program.

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
E. Sequence of tokens
Explanation:
Lexical analysis is the process of converting a sequence of characters such as in a computer program or web page into a sequence of tokens

7. Which of the following is required to create a load module?
A. Identifier
C. Terminal table
D. Assembler
E. None of the Above
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
C. Syntax Analysis
Explanation:
Syntax analysis is the second phase of compiler which is also known as parsing.

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
C. Semantic analysis
Explanation:
Semantic analysis, also context sensitive analysis, is a process in compiler construction, usually after parsing.

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
A. Lexical analysis
Explanation:
Lexical analysis is the first phase of compiler which is also termed as scanning. It is the process of converting a sequence of characters such as in a computer program or web page into a sequence of tokens.

AffairsCloud Recommends Oliveboard Mock Test

AffairsCloud Ebook - Support Us to Grow