cs606_Final_Term_Quizez_and_MCqz_Solved_with_Refer.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)
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_Quizez_and_MCqz_Solved_with_Refer.pdf for free?
You can preview and download "cs606_Final_Term_Quizez_and_MCqz_Solved_with_Refer.pdf" (CS606 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs606-final-term-quizez-and-mcqz-solved-with-refer-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
Solved by: Sahar (well wisher) Class BSCS 6th Semester
Subject CS606 (COMPILER Solution Type: Final Term Solved MCQZ and Quizez
including Papers of
CONSTRUCTION)
Year : 2013,2012,2011,2010,2009…
2006
Institute: Virtual University of Pakistan
Final term QUIZEZ
Year 2013
1)
The regular expressions a*|b* and (a|b)* describe the _____set of strings.
Same
Different
Onto
2)
A canonical collection of sets of items for an augmented grammar, C is constructed as -----
For each set / in C and each grammar symbol X where goto (C, X) is empty and not in C add the set goto (C, X)
to C.
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. Page no : 72
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.
3)
S --> a | B
B --> Bb | E The non-terminal _______ is left recursive.
Answer: B
4)
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)
5)
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
6)
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
7)
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.
Select correct option:
1. SLR(1)
2. LRS(1)
3. RLS(1)
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
Page 2 of 18
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:
Page 3 of 18
1. True Page no: 74
2. false
Back patching to translate flow-of-control statements in ____ pass.
Select correct option:
1. one Page no : 111
2. two
3. three
4. all of the given
15)
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-secondMore 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)