cs606-finalterm-mcqs-with-reference-solved-by-arslan.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-finalterm-mcqs-with-reference-solved-by-arslan.pdf for free?
You can preview and download "cs606-finalterm-mcqs-with-reference-solved-by-arslan.pdf" (CS606 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs606-finalterm-mcqs-with-reference-solved-by-arslan-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 MCQ(S) Jan
From FinalTerm Papers 14, 2018
BY Arslan
V-U For Updated Files Visit Our Site : Www.VirtualUstaad.blogspot.com Updated.
Final-Term Papers Solved MCQS with Reference
1. _____ convert the relocatable machine code into absolute machine code by linking library and relocatable object
files.
Assembler
Loader/link-editor
Compiler
Preprocessor
2. Parsers take ____ as input from lexical analyzer.
Linker
Token
Instruction
None of the given
3. The regular expression ______denotes, the set of all strings of a’s and b’s of length two
a*
(a*|b*)*
(a*b*)*
(a|b)(a|b)
4. _________ is a regular expression for the set of all strings over the alphabet {a} that has an even number of a’s.
aa*
(aa)*
aa*a
a(aa)*
5. _______ Phase supports macro substitution and conditional compilation.
Semantic
Syntax
Preprocessing Click Here For More Detail
None of given
6. In LL(1) parsing algorithm, ____ contains a sequence of grammar symbols.
Stack PG # 62
Link List
Array
None of the given.
7. Consider the grammar
ABCD
BhB|€
CCg|g|Ch|i
D AB | £
First of A is __________.
h, g, i
g
h
None of the given.
8. _______ parsers never shifts into an error state.
LS
LT
LR
LP
9. In parser, the two LL stand for ________ .
Left-to-right scan of input
left-most derivation
Left-to-right scan of input and left-most derivation PG # 54
None of the given
10. _____ is elaborated to produce bindings.
Declaration Click Here For More Detail
Expression
Command
None of the given
11. A lexical analyzer generated by ____ is essentially a FSA.
Dex
Mex
Fex
Lex
12. A lexical analyzer generated by lex is essentially a PDA (Push Down Automaton).
True
False
13. The actions (shift, reduce) in a SLR(1) parser depend on a look ahead symbol ( ______ ) .
Current input token
Next Input Token
Previous output Token
Previous Input Token.
14. The following grammar contains a ______ conflict. S → A | xb
Shift-Reduce
First-Reduce
Shift-First
Reduce-Reduce
15. S A | xb
A aAb | x
This grammar contains a __________ conflict.
Shift-Reduce
First-Reduce
Shift-First
Reduce-Reduce
16. Considering the following grammar:
S → AB
A → € | aA
B → b | bB
1
2
3
4
17. Simple code generation considers one AST node at the time. When the target is a stack machine, the code can be
generated in one ______ traversal of the AST.
Depth-first
Breadth-first
First-first
Shift-Reduce
18. ________ is a register allocation technique that always finds the minimal number of registers needed for a
procedure.
Dangling reference
Graph coloring
Left Factoring
Right Recursion
19. Graph coloring is a register allocation technique that operates at individual basic blocks.
True
False
20. Graph coloring is a register allocation heuristic that usually finds the minimal number of registers needed for a
procedure.
True
False
21. S a S | Sa | c
This grammar is ambiguous.
True
False
22. When generating code at the basic block level, the dependency graph must be converted to target code. By
identifying ________, instruction selection and instruction ordering can be performed efficiently in a single pass.
Ladder sequences
Physical sequences
Logical sequences
Token sequences
23. __________ can be considered a small compiler since it transforms a source language (assembly) into a less
abstract target language (binary object code)
Parser
Assembler
Lexical analyzer
Scanner
24. When memory allocator operates on chunks which include some administrative part and a block of user data. The
administrative part includes _____ flag for marking the chunk as free or in-use.
One
Two
Three
Four
25. A parser transforms a stream of tokens into an _______.
AST
IST
EST
ATS
26. The parser generator yacc can handle ________ grammars
LL(1)
LT(1)
LS(1)
LF(1)
27. The parser generator yacc can handle LL(1) grammars.
True
False
28. The yacc parser generator can handle LALR(1) grammars.
True
False
29. 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
Depth-second
Breadth-second
30. Attributes whose values are defined in terms of a node’s own attributes, node’s siblings and node’s parent are
called __________.
Inherited attributes PG # 100
Physical attributes
Logical attributes
Un-synthesized attributes
31. A linker combines multiple object files into a ______ executable object.
Single
Double
Triple
Quadruple
32. The notation _______ instructs YACC to push a computed attribute value on the stack.
$$ PG # 106
&&
##
--
33. The following two items
A→P•Q
B→P•Q
can co-exist in an ______ item set
LR
LS
LT
PR
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)