Quiz
Untitled
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (10)
1A bottom up parser generates
- ARight most derivation
- BRightmost derivation in reverse
- CLeftmost derivation
- DLeftmost derivation in reverse
2If a state does not know whether it will make a shift operation or reduction for a terminal it is called
- AShift/reduce conflict
- BReduce/shift conflict
- CShift conflict
- DReduce conflict
3When there is a reduce/reduce conflict?
- Aif a state does not know whether it will make a shift operation using the production rule i or j for a terminal
- Bif a state does not know whether it will make a shift or reduction operation during the production rule i or j for a terminal.
- Cif a state does not know whether it will make a reduction operation using the production rule i or j for a terminal
- DNone of the mentioned
4For LR(1) item [A -> b., a] the reduction by A->b is done
- AIf next symbol is a terminal
- BOnly If the next input symbol is a
- COnly if the next input symbol is A
- DOnly if the next input symbol is b
5LR parsers are attractive because
- AIt can be constructed to recognize CFG corresponding to almost all programming constructs
- BIt does not backtrack
- CBoth of the mentioned
- DNone of the mentioned
6Which of the following bottom parsing techniques are the most powerful one?
- ALR(0)
- BSLR(1)
- CLR(1)
- DLALR(1)
7Which of the following states in LR(0) automaton indicates a shift/reduce conflict?
- AA -> a.b and B -> a.B
- Ba -> ab. and B -> b.
- Ca -> a.B and B -> b.
- DA -> a.b(beta) and B -> (beta).
8Which of the following states in LR(0) automaton indicates a reduce/reduce conflict
- AA -> a.b and B -> a.B
- BA -> ab. and B -> b.
- CA -> a.B and B -> b.
- DA -> a.b(beta) and B -> (beta).
9Which of the following states in LR(1) automaton indicates a shift/reduce conflict?
- A[A -> a.b, b] and [A -> a.B, b]
- B[A -> a.b, a] and [A -> b.a, b]
- C[A -> a.b, b] and [B -> .b, b]
- D[A -> a.b(beta), $] and [B -> (beta)., b]
10Which of the following states in LI(1) automaton indicates a reduce/reduce conflict?
- A[A -> a., a] and [A -> (beta)., b]
- B[A -> a., b] and [A -> (beta)., a]
- C[A -> a., b] and [B -> (beta)., b]
- D[A -> a., $] and [B -> (beta)., a]
Information
- Description
- Quiz on Untitled, created by Austin Stockhecke on 28/11/2018.
- Author
- Austin Stockhecke
- Language
- English
- Views
- 18
- Rating
- No ratings yet Rate this quiz