Professional Documents
Culture Documents
Mcqs
Mcqs
Exactly 3 address
At most most 3 address *
No unary operators
None of these
___________________________________________________________________________________
__
An intermediate code form is
Postfix notation
Syntax trees
Three address code
All of these *
___________________________________________________________________________________
__
In operator precedence parsing , precedence relations are defoned
___________________________________________________________________________________
__
Relocating bits used by relocating loader are specified by
___________________________________________________________________________________
__
A compiler for a high level language that runs on one machine and produce code for
different machine is called
Optimizing compiler
One pass compiler
Cross compiler *
Multipass compiler
___________________________________________________________________________________
__
Synthesized attribute can be easily simulated by a
LL grammar
Ambiguous grammar
LR grammar *
None of the above
___________________________________________________________________________________
__
The output of a lexical analyzer is
Machine code
Intermediate code
A stream of tokens *
A parse tree
___________________________________________________________________________________
__
Running time of a program depends on
___________________________________________________________________________________
__
Reduction in strength means
___________________________________________________________________________________
__
_________or scanning is the process where the stream of characters making up the
source program is read from left to right and grouped into tokens.
Lexical analysis *
Diversion
Modeling
None of the above
___________________________________________________________________________________
__
Task of the lexical analysis
To parse the source program into the basic elements or tokens of the language
To build a literal table and an identifier table
To build a uniform symbol table
All of these *
___________________________________________________________________________________
__
Shift reduce parsers are
___________________________________________________________________________________
__
Any description error can be repaired by
Insertion alone
Deletion alone
Insertion and deletion alone *
Replacement alone
___________________________________________________________________________________
__
The linker
is similar to interpreter
uses source code as its input
is required to create a load module *
none of the above
___________________________________________________________________________________
__
A grammar that produces more than one parse tree for some sentence is called
Ambiguous *
Unambiguous
Regular
None of these
___________________________________________________________________________________
__
In an absolute loading scheme which loader function is accomplished by assembler ?
re-allocation *
allocation
linking
loading
___________________________________________________________________________________
__
Intermediate code generation phase gets input from
Lexical analyzer
Syntax analyzer
Semantic analyzer *
Error handling
___________________________________________________________________________________
__
We can optimize code by
___________________________________________________________________________________
__
Code can be optimized at
___________________________________________________________________________________
__
Whether a given pattern constitutes a token or not depends on the
Source language
Target language
Compiler *
All of these
___________________________________________________________________________________
__
YACC builds up
___________________________________________________________________________________
__
Type checking is normally done during
Lexical analysis
Syntax analysis
Syntax directed translation *
Code optimization
___________________________________________________________________________________
__
A top down parser generates
___________________________________________________________________________________
__
Which of the following does not interrupt a running process?
A device
Timer
Scheduler
Power failure *
___________________________________________________________________________________
__
In an absolute loading scheme, which loader function is accomplished by a loader ?
Re-allocation
Allocation
Linking
Loading *
___________________________________________________________________________________
__
The lexical analyzer takes_________as input and produces a stream of_______as
output.
Source program,tokens *
Token,source program
Either A and B
None of the above
___________________________________________________________________________________
__
Which of the following can be accessed by transfer vector approach of linking?
___________________________________________________________________________________
__
___________is a graph representation of a derivation.
___________________________________________________________________________________
__
The optimization which avoids test at every iteration is
Loop unrolling *
Loop jamming
Constant folding
None of these
___________________________________________________________________________________
__
Syntax directed translation scheme is desirable because
___________________________________________________________________________________
__
A parser with the valid prefix property is advantageous because it
___________________________________________________________________________________
__
Which of the following parser is most powerful?
Operator precedence
Canonical LR *
LALR
SLR
___________________________________________________________________________________
__
Inherited attribute is a natural choice in
___________________________________________________________________________________
__
Macro-processors are ______
Hardware
Compiler *
Registers
None of the above
___________________________________________________________________________________
__
In which way(s) a macroprocessor for assembly language can be implemented ?
___________________________________________________________________________________
__
�Macro� in an assembly level program is _______.
sub program *
a complete program
a hardware portion
relative coding
___________________________________________________________________________________
__
The optimization technique which is typically applied on loops is
___________________________________________________________________________________
__
Concept which can be used to identify loops is
Dominators
Reducible graphs
Depth first ordering
All of these *
___________________________________________________________________________________
__
Local and loop optimization in turn provide motivation for
___________________________________________________________________________________
__
LR stands for
Left to right
Left to right reduction
Right to left
Left to right and right most derivation in reverse *
___________________________________________________________________________________
__
Grammar of the programming is checked at ________ phase of compiler.
semantic analysis
code generation
syntax analysis *
code optimization
___________________________________________________________________________________
__
Which of the following is not an intermediate code form?
Postfix notation
Syntax trees
Three address codes
Quadruples *
___________________________________________________________________________________
__
A compiler that runs on one machine and produces code for a different machine is
called
Cross compilation *
One pass compilation
Two pass compilation
None of the above
___________________________________________________________________________________
__
The graph that shows basic blocks and their successor relationship is called
DAG
Flow chart *
Control graph
Hamiltonian graph
___________________________________________________________________________________
__
A grammar is meaningless
___________________________________________________________________________________
__
Which of the following is used for grouping of characters into tokens?
Parser
Code optimization
Code generator
Lexical analyzer *
___________________________________________________________________________________
__
An optimizer compiler
___________________________________________________________________________________
__
Pee hole optimization
Loop optimization
Local optimization
Constant folding *
Data flow analysis
___________________________________________________________________________________
__
The action of parsing the source program into proper syntactic classes is called
Syntax analysis
Lexical analysis *
Interpretation analysis
General syntax analysi