Phases of Compiler Design Mcqs
Our collections of Multiple choice questions and answers focuses on study of Phases of Compiler Design. These topics are chosen from a collection of most authoritative and best reference books on Phases of Compiler Design to prepare an individual for competitive exams like NTS, GAT, ECAT, University and College entrance exams and various tests and interviews. One should practice to assimilate Phases of Phases of Compiler Design Topic comprehensively.
Computer MCQS
Sciences MCQS
2.
Predictive parser can be ?
Recursive
Constructive
Non recursive
Both a and b
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
3.
Bottom up parsing involves
Shift reduce
Handle pruning
Operator check
Both a and b
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
4.
A Compiler has ……. phases ?
7
5
6
8
5.
Pick the machine independent phase of the compiler ?
Syntax analysis
Lexical analysis
Intermediate code generation
All of the above
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
6.
Type checking is normally done during ?
Lexical analysis
Syntax analysis
Syntax directed translation
Code generation
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
7.
Functions of Lexical analyzer are ?
Removing white space
Removing constants, identifiers and keywords
Removing comments
All of above
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
8.
Yacc resolves conflicts by of type ?
Reduce - Reduce
Shift - Reduce
Shift - Shift
Both a and b
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
9.
A parser which is a variant of top-down parsing without backtracking is
Recursive Descend
Operator Precedence
LL(1) parser
LALR Parser
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
10.
Which of these is not a part of Synthesis phase
Obtain machine code corresponding to the mnemonic from the Mnemonics table
Obtain address of a memory operand from the symbol table
Perform LC processing
Synthesize a machine instruction or the machine form of a constant
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
11.
The following features are needed to implement top down parsing
Source string marker
Prediction making mechanism
Matching and Backtracking mechanism
All of the above
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
12.
An analysis, which determines the syntactic structure of the source statement, is called
Sementic analysis
Process analysis
Syntax analysis
Function analysis
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
13.
Recognition of basic syntactic constructs through reductions, this task is performed by
Lexical analysis
Syntax analysis
Semantic analysis
Structure analysis
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
14.
Which of the following derivation a top-down parser use while parsing an input string? The input is assumed to be scanned in left to right order ?
Leftmost derivation
Leftmost derivation traced out in reverse
Rightmost derivation
Rightmost derivation traced out in reverse
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
15.
The error that can be pointed out by the compiler are
Syntax errors
Semantic errors
Logical errors
Internal errors
Answer & Solution
No Solution for this Answer..! Report or Discus this Question