- Type
- Final term past paper
- Course
- CS606 Compiler Construction
- Size
- PDF 650 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 2, 3, 4 of 15. Download the file for all 15 pages.
Q1. Vu-Topper RM (1 marks)
The canonical collection is used to generate which of the following parsing tables?
Correct answer: Action and goto tables
Q2. Vu-Topper RM (1 marks)
What does the term "canonical collection" refer to in LR parsing?
Correct answer: A set of LR items representing the states of the parser during parsing.
Q3. Vu-Topper RM (1 marks)
In LR grammar, the R stands for ________________. A. Right shift
B. Right to left scan
C. Right most derivation D. Right hand side of grammar
Q4. Vu-Topper RM (1 marks)
The NFA of LR(0) items represents transitions between: A. LR(1) items. B. LR(0) items without considering lookahead symbols. C. Grammar symbols and their derivations. D. Non-terminal symbols and their productions.
Q5. Vu-Topper RM (1 marks)
In the grammar "T → a b c d | a b d c", the ____________ is a common prefix for non-terminal 'T'. A. c d
B. a b
C. b d D. a c
Q6. Vu-Topper RM (1 marks)
In the LR table, how are the entries other than the state containing [S' → •S, $] initialized?
Correct answer: Assigned with shift actions
Q7. Vu-Topper RM (1 marks)
Left factoring is primarily used in which type of parsing?
Correct answer: Predictive parsing
Q8. Vu-Topper RM (1 marks)
In the handle representation <A → α, k>, what does A represent?
Correct answer: The non-terminal on the left-hand side of the production rule.
Q9. Vu-Topper RM (1 marks)
The output from the algorithm for the construction of collection of canonical sets of LR(1) items is _______________.
A. CC sets of LR(1)
B. Original Grammar G C. CC sets of LR(0) D. Augmented Grammar G'
Q10. Vu-Topper RM (1 marks)
Which of the following is NOT a step in the closure procedure for an LR item?
Correct answer: Compute the FIRST set for the nonterminal symbol following the dot.
Q11. Vu-Topper RM (1 marks)
The augmented grammar has its own start symbol, while original grammar includes an additional production rule, called the augmented start production.
True
False
Q12. Vu-Topper RM (1 marks)
In Shift-Reduce parser, the handle-recognizing DFA is basically represented as a 2-dimensional table, where ____________ correspond to DFA states. A. Cells
B. Rows
C. Captions D. Columns
Related CS606 files
All CS606 files →- CS606 Final Term Solved MCQs with References Final term PDF 436 KB
- CS606 Final Term Solved Quizzes and MCQs with References Set 2 Final term PDF 516 KB
- CS606 Final Term Solved File 1 by Team Hadi Final term PDF 6 MB
- CS606 Final Term MCQs Set 2 by Waqar Siddhu Final term PDF 2.6 MB
- CS606 Final Term Highlighted Handouts Lectures 19-45 Set 2 by Masters Highlighted PDF 1.4 MB
- CS606 Short Notes Lecture 18 Quiz PDF 37 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.