1.
Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states. The relationship between n1 and n2 is:
2.
In a bottom-up evaluation of a syntax directed definition, inherited attributes can
3.
Which of the following statements is false?
4.
Which of the following derivations does a top-down parser use while parsing an input string? The input is assumed to be scanned in left to right order.
5.
Given the following expression grammar:
E -> E * F | F + E | F
F -> F - F | id
which of the following is true?
6.
Which one of the following is True at any valid state in shift-reduce parsing?
7.
In the context of abstract-syntax-tree (AST) and control-flow-graph (CFG), which one of the following is True?
8.
Among simple LR (SLR), canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the most powerful, in that order?
9.
Which of the following is the most powerful parsing method?
10.
Which of the following statement is true?