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.
- 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 AboveA. Postfix notation
Explanation:
It is a notation for writing arithmetic expressions in which the operands appear before their operators is known as Postfix notation - Postfix notation is also known as?
A. Prefix notation
B. Reverse Polish notation
C. Polish notation
D. Syntax tree
E. None of the AboveB. 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 – * - 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 AboveA. Prefix notation
Explanation:
It is a notation for writing arithmetic expressions in which the operands appear after their operators is known as Prefix notation. - Prefix notation is also known as?
A. Postfix notation
B. Reverse Polish notation
C. Polish notation
D. Syntax tree
E. None of the AboveC. 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 - 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 AboveB. Linker
Explanation:
Linker is a program used with a compiler or assembler to provide links to the libraries needed for an executable program. - 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 tokensE. 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 - Which of the following is required to create a load module?
A. Identifier
B. Linker
C. Terminal table
D. Assembler
E. None of the AboveB. Linker
Explanation:
Linker is required to create a load module - 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 AboveC. Syntax Analysis
Explanation:
Syntax analysis is the second phase of compiler which is also known as parsing. - 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 AboveC. Semantic analysis
Explanation:
Semantic analysis, also context sensitive analysis, is a process in compiler construction, usually after parsing. - 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 AboveA. 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
Govt Jobs by Category
Bank Jobs Notification