CS606-FINAL-TERM-SOLVED-SUBJECTIVE-WITH-REFERENCE-BY-MOAAZ.doc
Verified academic study resource for CS606 (Compiler Design & Construction) under the Computer Science at Virtual University of Pakistan. This DOC document (Final-Term Solved Past Paper & Examination Pack compiled by Moaaz Siddhu) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS606 – Compiler Design & Construction
- Faculty
- Computer Science
- Format
- DOC
- Type
- Final-Term
- Coverage
- Final-Term Exam Scope (Lectures 23 to 45)
- Compiled by
- Moaaz Siddhu
- Tags
- SUBJECTIVE, SOLVED, FINALTERM
Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS606, regardless of midterm scores.
What this file covers — CS606 syllabus roadmap
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)
Frequently asked questions
Where can I download CS606-FINAL-TERM-SOLVED-SUBJECTIVE-WITH-REFERENCE-BY-MOAAZ.doc for free?
You can preview and download "CS606-FINAL-TERM-SOLVED-SUBJECTIVE-WITH-REFERENCE-BY-MOAAZ.doc" (CS606 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs606-final-term-solved-subjective-with-reference-by-moaaz-doc) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS606 file?
This document covers Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS606 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS606 solved past papers and handouts verified for 2026 exams?
Yes. All CS606 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
CS606- compiler instruction
Solved MCQS
From Midterm Papers
Feb 25,2013
MC100401285
Moaaz.pk@gmail.com Mc100401285@gmail.com
PSMD01
Final Term MCQ’s and Quizzes
CS606- compiler instruction
Question No: 1 ( Marks: 1 ) - Please choose one
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
None of the given
Question No: 1 ( Marks: 1 ) - Please choose one
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
Question No: 1 ( Marks: 1 ) - Please choose one
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
None of the given
Question No: 1 ( Marks: 1 ) - Please choose one
Suppose ? begins with symbol X which may be a terminal (token) or non-terminal. The item can be written as A? Xa•?.
True
False
Question No: 1 ( Marks: 1 ) - Please choose one
YACC parser generator builds up
SLR parsing table
Canonical LR parsing table
LALR parsing table
None of the given
Question No: 1 ( Marks: 1 ) - Please choose one
LR(1) parsing is --- base parsing.
DFA
CFG
PDA
None of the given
Question No: 1 ( Marks: 1 ) - Please choose one
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
Question No: 1 ( Marks: 1 ) - Please choose one
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
Question No: 1 ( Marks: 1 ) - Please choose one
S --> A | xb A --> aAb | x This grammar contains a reduce-reduce conflict.
True
False
Question No: 1 ( Marks: 1 ) - Please choose one
S --> a | B
B --> Bb | E The non-terminal _______ is left recursive.
B
a
E
None of the given
Question No: 1 ( Marks: 1 ) - Please choose one
Following statement represents: if x relop y goto L
abstract jump
Conditional jump
While loop
None of the Given
Question No: 1 ( Marks: 1 ) - Please choose one
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
Question No: 1 ( Marks: 1 ) - Please choose one
Left factoring is enough to make a grammar LL(1).
True
False
Question No: 1 ( Marks: 1 ) - Please choose one
Register allocation by graph coloring uses a register interference graph. _________ nodes in the graph are joined by an edge when the live ranges of the values they represent overlap.
Two p116
Three
Four
Five
Question No: 1 ( Marks: 1 ) - Please choose one
S --> A B A --> e | aA B --> e | bB - FIRST(S) contains ___ elements.
3
4
5
6
Question No: 1 ( Marks: 1 ) - Please choose one
The notation _______ instructs YACC to push a computed attribute value on the stack.
$$ Page no : 98
&&
##
--
Question No: 1 ( Marks: 1 ) - Please choose one
Simple code generation considers one AST node at a time. If the target is a register machine, the code can be generated in one _____ traversal of the AST, possibly introducing temporaries when running out of registers.
Depth-first
Breadth-first
Top-Down
Bottom-Up
Question No: 1 ( Marks: 1 ) - Please choose one
Grammars with LL(1) conflicts can be made LL(1) by applying left-factoring, substitution, and left-recursion removal. Left-factoring takes care of ________conflicts.
FIRST/FIRST
FIRST/SECOND
SECOND/FIRST
None of the given
Question No: 1 ( Marks: 1 ) - Please choose one
In an attribute grammar each production rule(N--> a) has a corresponding attribute evaluation rule that describes how to compute the values of the _______attributes of each particular node N in the AST.
1. Synthesized page no : 92
2. Complete
3. Free
4. Bounded
5.
Question No: 1 ( Marks: 1 ) - Please choose one
When constructing an LR(1) parser we record for each item exactly in which context it appears, which resolves many conflicts present in _______parsers based on FOLLOW sets.
1. SLR(1)
2. LRS(1)
3. RLS(1)
4. None of the given
Question No: 1 ( Marks: 1 ) - Please choose one
The ______translation statements can be conveniently specified in YACC
1. Syntax-directed Page no : 120
2. Image-directed
3. Sign-directed
4. None of the given.
1.
Question No: 1 ( Marks: 1 ) - Please choose one
Backpatching to translate flow-of-control statements in ____ pass.
1. one
2. two
3. three
4. all of the given
5.
Question No: 1 ( Marks: 1 ) - Please choose one
Alternative of the backtrack in parser is Look ahead symbol in _________ .
Input
Output
Input and Output
None of the given
Question No: 1 ( Marks: 1 ) - Please choose one
Typical compilation means programs written in high-level languages to low-level ____________.
Object code
Byted code
Unicode
Both Object Code and byte code
Question No: 1 ( Marks: 1 ) - Please choose one
In PASCAL ___________ represent the inequality test.
:
:=
=
<>
None of the given
Question No: 1 ( Marks: 1 ) - Please choose one
LR parsing ______________ a string to the start symbol by inverting productions.
Reduces
Shifts
Adds
None of the given
More CS606 files
- All Subjects Mid & Final 25000 Pdf Files.pdf (PDF · Final-Term)
- CS606 Finalterm Solved MCQs by Moaaz.pdf (PDF · Final-Term)
- CS606 FINAL TERM FILE 1 SOLVED BY TEAM HADI-1.pdf (PDF · Final-Term)
- CS606 FINAL TERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)
- CS606 FINAL TERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)
- CS606 FINAL TERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)
- CS606 FINAL TERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)
- CS606 Final Term Current Papers 2022 by Masters.pdf (PDF · Final-Term)