1) Consider the following grammar:
A→aBD h
B→cC
C→bC / e
D→EF
E→ g / e
F →f / e
- f. e
- c
- e
- a
2) Parser that capitalizes on the LL (1) property are called ___________
- Predicative parser
- Middle parser
- Bottom-up parser
- Non-predictive parser
3) If there are syntax errors in the program, the __________ will detect and reports them accordingly
- Parser
- MS Word
- Tokenizer
- Scanner
4) Bottom-up parser can handle _________ class of grammars
- Tiny
- Medium
- Large
- Small
5) The predicative parser uses an ________stack to keep track of pending non-terminals
- Infinite
- Unlimited
- Implicit
- Explicit
6) A ______________ parser operate by repeatedly locating handles on the frontier of the partial parse tree performing reductions that they specify
- Top-Down
- Bottom-up
- Predictive
- Descent parsing
7) The syntax of C and C++ is derived heavily from _____________
- Fortran
- Algol-60
- Java
- Pascal
8) Consider the following grammar:
A→aBD h
B→cC
C→bC / e
D→EF
E→ g / e
F →f / e
- h
- $
- f. h
- h
9) Register allocation by graph coloring uses a register interferences graph _______ nodes in the graph are joined by ana edge when the live ranges of the values they represent overlap.
- Three
- Four
- Five
- Two
10) Following statement represents
if x relop y goto L
- While Loop
- Abstract jump
- None of the given
- Conditional jump