CS606 SAMPLE PAPER 2023 SOLVED BY PRINCE ALVI.pdf
Verified academic study resource for CS606 (Compiler Design & Construction) under the Computer Science at Virtual University of Pakistan. This PDF document (Mega Solved MCQs Question Bank) covers Full Course Curriculum spanning approximately 180 pages across 8 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
- MCQ Bank
- Coverage
- Full Course Curriculum
- Tags
- SOLVED
Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.
What this file covers — CS606 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
- 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 SAMPLE PAPER 2023 SOLVED BY PRINCE ALVI.pdf for free?
You can preview and download "CS606 SAMPLE PAPER 2023 SOLVED BY PRINCE ALVI.pdf" (CS606 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs606-sample-paper-2023-solved-by-prince-alvi-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 Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, 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 PRINCE ALVI
Sample Paper
FINAL-TERM EXAMINATION
Fall 2022
CS606 – Compiler Construction
Time: 90 min
Marks: 60
Section A: Objective Part
[40 sample MCQs each of Mark (01) –
You need to attempt any 33 questions from these]
Question No: 1 (Marks: 01) - Please choose the correct option.
The basic purpose of a compiler is to convert a/an _____________ language code into a low-level
machine code.
1. high-level
2. medium-level
3. low-level
4. bottom-level
Question No: 2 (Marks: 01) - Please choose the correct option.
An interpreter translates code line by line, while a/an _____________ translates all code at once.
1. linker
2. loader
3. compiler
4. debugger
Question No: 3 (Marks: 01) - Please choose the correct option.
A two-pass compiler consists of a front-end and a/an ____________.
1. forward-end
2. next-end
3. middle-end
For any query feel free to ask princealvi9222@gmail.com
SOLVED BY PRINCE ALVI
4. back-end
Question No: 4 (Marks: 01) - Please choose the correct option.
A three-pass compiler consists of a front-end, a/an ____________ and a back-end.
1. forward-end
2. next-end
3. middle-end
4. back-end
Question No: 5 (Marks: 01) - Please choose the correct option.
What is the output of a scanner?
1. IR
2. Binary
3. Tokens
4. Parse Tree
Question No: 6 (Marks: 01) - Please choose the correct option.
The following statement contains ____________ tokens.
int x = 10 ;
1. three
2. four
3. five
4. six
Question No: 7 (Marks: 01) - Please choose the correct option.
Which of the following phase of the compiler is called Lexical Analyzer?
1. Scanner
2. Parser
3. Optimizer
4. Scheduler
For any query feel free to ask princealvi9222@gmail.com
SOLVED BY PRINCE ALVI
Question No: 8 (Marks: 01) - Please choose the correct option.
Which part of a compiler can detect "missing semicolon" in source code?
1. Scanner
2. Parser
3. Register
4. Scheduler
Question No: 9 (Marks: 01) - Please choose the correct option.
In a compiler, a parser takes tokens as input and generates ____________ as output.
1. source code
2. machine code
3. binary code
4. IR code
Question No: 10 (Marks: 01) - Please choose the correct option.
What is the meaning of following regular expression?
R|S
1. Either R or S
2. Both R and S
3. Only R, not S
4. Not R, only S
Question No: 11 (Marks: 01) - Please choose the correct option.
The regular expression that allows all lower-case alphabets is ____________.
1. [a.z]
2. [a-z]
3. [a+z]
4. [a,z]
Question No: 12 (Marks: 01) - Please choose the correct option.
For any query feel free to ask princealvi9222@gmail.com
SOLVED BY PRINCE ALVI
An FA can be encoded as a table, which is called a/an ____________ table.
1. truth
2. symbol
3. transition
4. hash
Question No: 13 (Marks: 01) - Please choose the correct option.
What does DFA stand for?
1. Deterministic Finite Array
2. Deterministic Finite Approach
3. Deterministic Finite Algorithm
4. Deterministic Finite Automaton
Question No: 14 (Marks: 01) - Please choose the correct option.
What is the purpose of the final states in a DFA?
1. To debug the execution of the automaton.
2. To sort the strings into different categories.
3. To assign a score to each string based on its length.
4. To determine whether a string is accepted or rejected.
Question No: 15 (Marks: 01) - Please choose the correct option.
If a grammar defines ________________________ is considered as an ambiguous grammar.
1. a unique parse tree for every string
2. a unique parse tree for different strings
3. multiple parse trees for the same string
4. multiple parse trees for different strings
Question No: 16 (Marks: 01) - Please choose the correct option.
The flex input file (i.e., specification file) consists of ____________ sections.
For any query feel free to ask princealvi9222@gmail.com
SOLVED BY PRINCE ALVI
1. one
2. two
3. three
4. four
Question No: 17 (Marks: 01) - Please choose the correct option.
How many tuple/s are there in a typical CFG (i.e., Context Free Grammar)?
1. one
2. two
3. three
4. four
Question No: 18 (Marks: 01) - Please choose the correct option.
In a parse tree, the interior nodes contain ____________.
1. root
2. terminals
3. non-terminals
4. leaves
Question No: 19 (Marks: 01) - Please choose the correct option.
In arithmetic, multiplication has ____________ priority over addition.
1. same
2. lower
3. higher
4. equal
Question No: 20 (Marks: 01) - Please choose the correct option.
The part of a compiler that can detect syntax errors is the ____________.
1. scanner
2. parser
For any query feel free to ask princealvi9222@gmail.com
SOLVED BY PRINCE ALVI
3. register allocation
4. instruction scheduling
Question No: 21 (Marks: 01) - Please choose the correct option.
There are basically two parsing techniques: top-down and ____________.
1. bottom-up
2. bottom-down
3. bottom-next
4. bottom-previous
Question No: 22 (Marks: 01) - Please choose the correct option.
If A → abc, then FIRST (A) = ?
1. $
2. a
3. b
4. c
Question No: 23 (Marks: 01) - Please choose the correct option.
If A → abc, then FOLLOW (A) = ?
1. $
2. a
3. b
4. c
Question No: 24 (Marks: 01) - Please choose the correct option.
More CS606 files
- CS606 MCQs JUNAID-1.pdf (PDF · MCQ Bank)
- CS606 MCQs JUNAID.pdf (PDF · MCQ Bank)
- CS606 Solved Subjective by SAHER.pdf (PDF · MCQ Bank)
- 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)