CS606 Final Term Solved MCQs with References by Moaaz
- Type
- Final term past paper
- Course
- CS606 Compiler Construction
- Size
- PDF 430 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 1, 2, 3 of 23. Download the file for all 23 pages.
If X is a terminal in A--> aX•?, then this transition corresponds to a shift of ____ from input to top of parse stack.
X A a
A canonical collection of sets of items for an augmented grammar, C is constructed as -----
The first set in C is the closure of {[S' --> .S]}, where S is starting symbol of original grammar and S' is the starting non-terminal of augmented grammar. The first set in C is the closure of {[S' --> .S]}, where S is starting symbol of original grammar and S' is the starting non-terminal of original grammar. The first set in C is the closure of {[S' --> .S]}, where S is starting symbol of original grammar and S is the starting non-terminal of augmented grammar. None of these
An ----- does not need to examin the entire stack for a handle, the state symbol on the top of the stack contains all the information it needs.
LR parser RL parser BU parser Suppose ? begins with symbol X which may be a terminal (token) or non-terminal. The item can be written as A? Xa•?.
True False
YACC parser generator builds up
SLR parsing table Canonical LR parsing table LALR parsing table
LR(1) parsing is --- base parsing.
DFA CFG PDA
The LR(1) parsers can not recognize precisely those languages in which one-symbol lookahead suffices to determine whether to shift or reduce.
True False
Yacc contains built-in support for handling ambiguous grammars resulting in shift-reduce conflicts. By default these conflicts are solved by performing the ________.
Shift action Reduce action Shift and reduce actions De-allocation of memory S --> A | xb A --> aAb | x This grammar contains a reduce-reduce conflict.
True
False
S --> a | B B --> Bb | E The non-terminal _______ is left recursive.
B
a E
Following statement represents: if x relop y goto L
abstract jump Conditional jump While loop
When generating a lexical analyzer from a ________ description, the item sets (states) are constructed by two types of “moves”: character moves and e moves.
Character Grammar Token Sentence
Left factoring is enough to make a grammar LL(1).
True False
Related CS606 files
All CS606 files →- CS606 Final Term Current Papers 2022 by Masters Final term PDF 2.3 MB
- CS606 Final Term Current Papers 2022-2023 by Masters Final term PDF 3.1 MB
- CS606 Final Term Solved MCQs by Malik Final term PDF 963 KB
- CS606 Final Term Lectures 19-45 by Masters Final term PDF 2.4 MB
- CS606 Official Handouts Official handout PDF 1.4 MB Free
- CS606 Final Term Quiz 3 by Team Aiza Quiz PDF 899 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.