Page 1 of 1
Q.1
enter email id
*
(e.g. john@example.com)
Q.2
A top down parser generates
leftmost derivation
right-most derivation
rightmost derivation in reverse
left-most derivation in reverse
Q.3
Cross-Compiler is a compiler
which is written in a language that is different from the source language
that generates object code for its host machine
which is written in language that is same as source language
that runs on one machine but produces object code for another machine
Q.4
In a compiler,grouping of characters into tokens is done by
scanner
parser
code generator
code optimizer
Q.5
Which of the following is the most general phase-structured grammar
Regular
Context-free
Context-sensitive
none
Q.6
Synthesized attribute can easily be simulated by an
LL grammar
Ambiguous grammar
LR grammar
none
Q.7
Which of the following is the most powerful parser
SLR
LALR
Canonical LR
operator precedence
Q.8
LR(k) grammar
can only examine a maximum of k input symbols
can be used to identify handles
can be used to identify the production associated with a handle
All of the above
Q.9
Recursive Descent parsing is an example of
top-down parsing
bottom-up parsing
predictive parsing
None of the above
Q.10
Shift reduce parsers are
top-down parsers
bottom-up parsers
both
none
Page 1 of 1