CS606 Final Term Solved MCQs by SAHER.pdf
Verified academic study resource for CS606 (Compiler Design & Construction) under the Computer Science at Virtual University of Pakistan. This PDF document (Final-Term Solved Past Paper & Examination Pack) 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
- Type
- Final-Term
- Coverage
- Final-Term Exam Scope (Lectures 23 to 45)
- Tags
- MCQ, 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 MCQs by SAHER.pdf for free?
You can preview and download "CS606 Final Term Solved MCQs by SAHER.pdf" (CS606 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs606-final-term-solved-mcqs-by-saher-pdf) 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 Solved MCQs by SAHER
(VISIT VURANK FOR MORE)
_________
1)
The regular expressions a*|b* and (a|b)* describe the _____set of strings.
Same
Different
Onto
2) Consider the following grammar, S --> aTUe T --> Tbc/b U --> d And suppose that string “abbcde” can
be parsed bottom-up by the following reduction steps:
(i) aTbcde
(ii) aTde
(iii) aTUe
(iv) S
So, what can be a handle from the following?
The (a) in (aTUe) not confirm
The (a) in (aTUe)
The (d) in (aTUe)
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. Select correct option:
1. Synthesized page no : 92
2. Complete
3. Free
4. Bounded
Consider the following grammar, S --> aTUe T --> Tbc/b U --> d And suppose that string “abbcde”
can be parsed bottom-up by the following reduction steps: (i) aTbcde (ii) aTde (iii) aTUe (iv) S So,
what can be a handle from the following? Select correct option:
1. The whole string, (aTUe) Page no : 68
2. The whole string, (aTbcde)
3. The whole string, (aTde)
4. None of the given
8)
The ______translation statements can be conveniently specified in
YACC Select correct option:
1. Syntax-directed Page no : 120
2. Image-directed
3. Sign-directed 4. None of the given.
9)
We use ----- to mark the bottom of the stack and also the right end of the input when considering
the Stack implementation of Shift-Reduce Parsing. Select correct option:
1. Epsilon
2. #
3. $ Page no : 65
4. None of the given
10)
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. Select correct option:
1. FIRST/FIRST
2. FIRST/SECOND
3. SECOND/FIRST
4. None of the given
11)
When generating a lexical analyzer from a token description, the item sets (states) are constructed by
two types of “moves”: character moves and ____ moves. Select correct option:
1. E (empty string) Page no : 18
2. #
3. @
4. none of given
12)
Bottom-up parsers handle a _________________ class of
grammars. Select correct option:
1. large Page no : 63
2. small
3. medium
4. none of the given
13)
Let a grammar G = (Vn, Vt, P, S) is modified by adding a unit production S’--> S to the grammar and
now starting non-terminals becomes S’ and grammar becomes G’ = (Vn U {S’}, Vt, P U{S’ --> S}, S’).
The Grammar G’ is called the ----------Select correct option:
1. Augmented Grammar Page no : 76
2. Lesser Grammar
3. Anonymous Grammar
4. none of given
14)
The LR (1) items are used as the states of a finite automaton (FA) that maintains information about the
parsing stack and progress of a shift-reduce parser.
Select correct option:
1. True Page no: 74
2. false
Consider the following grammar, S --> aTUe T --> Tbc/b U --> d And suppose that string “abbcde”
can be parsed bottom-up by the following reduction steps: (i) aTbcde (ii) aTde (iii) aTUe (iv) S So
what can be a handle from the following? Select correct option:
1. The second (b) in (abbcde)
2. The first (b) in (abbcde)
3. The substring (cd) in (abbcde)
4. None of the given
16) S --> A | xb
A --> aAb | x This grammar contains a reduce-reduce
conflict. Select correct option:
True
False
17)
Yacc contains built-in support for handling ambiguous grammars resulting in _______
conflicts. Select correct option:
Shift-reduce
Shift-Shift
Shift-second
None of the given
19)
When generating a lexical analyzer from a token description, the item sets (states) are
constructed by two types of “moves”: character moves and ____ moves. Select correct
option:
E (empty string) Repeated
#
@
None of the given
20)
Attributes whose values are defined in terms of a node’s own attributes, node’s siblings and node’s
parent are called __________ . Select correct option:
Inherited attributes Page no : 92
Physical attributes
Logical attributes
Un-synthesized attributes
21)
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. Select
correct option:
Two page no : 136
Three
Four
Five
22)
The following two items A -> P • Q B -> P • Q can co-exist in an ______
item set. Select correct option:
LR
LS
LT
PR
23)
Goto L statement
represent Select
correct option:
Unconditional jump Page no : 107
24)
Three-address codes are often implemented as a ________.
Select correct option:
Set of quadruples Page no : 104
25)
Attributes of a node whose values are defined wholly in terms of attributes of node’s children and from
constants are called ________.
Synthesized attributes Page no : 92
26)
The error handling mechanism of the yacc parser generator pushes the input stream back when
inserting ‘missing’ tokens.
Select correct option:
Answer:
True 27)
The notation _______ instructs YACC to push a computed attribute value on the stack.
Select correct option:
Answer: $$ Page no : 98
28)
Flow of values used to calculate synthesized attributes in the parse tree is:
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)