CS606-MidTerm-2005.pdf
Verified academic study resource for CS606 (Compiler Design & Construction) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 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
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Tags
- MIDTERM
Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS606.
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)
Frequently asked questions
Where can I download CS606-MidTerm-2005.pdf for free?
You can preview and download "CS606-MidTerm-2005.pdf" (CS606 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs606-midterm-2005-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 Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), 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
www.vu786.com
CS606 Compiler Construction
Mid Term Examination – Spring 2005
Time Allowed: 90 Minutes
Maximum Time Allowed: (1.5 Hour)
Please read the following instructions carefully before
attempting any of the questions:
1. The duration of this examination is 90 Mins.
2. This examination is closed book, closed notes, closed neighbors.
3. Do not ask any questions about the contents of this examination from
anyone.
a. If you think that there is something wrong with any of the
questions, attempt it to the best of your understanding.
b. If you believe that some essential piece of information is
missing, make an appropriate assumption and use it to solve
the problem.
4. Some of the examination consists of multiple-choice questions.
Choose only one choice as your answer.
a. If you believe that two (or more) of the choices are correct for a
particular question, choose the best one.
b. On the other hand, if you believe that all of the choices provided
for a particular question are wrong then select the one that
appears to you as being the least wrong.
**WARNING: Please note that Virtual University takes serious
action against unfair means. Anyone found involved in
cheating will get an `F` grade in this course.
Total Marks: 55 Total Questions: 4
Question No. 1 Marks : 20
Given the following grammar and input string "bool id , id , id"
1. Decl Type IdList
2. Type bool | int | float
3. IdList IdList , id | id
a. show the leftmost derivation of the input string
b. show the parse tree of the input string
c. create a new equivalent grammar that has left recursion removed
d. show the parse tree for the above input string on the new grammar
Question No. 2 Marks : 10
Find the First and Follow sets for the following grammars:
1. Exp – Exp | (Exp) | Var ExpTail
2. ExpTail – Exp |
3. Var id VarTail
4. VarTail (Exp) |
Question No. 3 Marks : 15
Consider the following grammar of lists. Note that there are four different terminals: "(",
")", "a", and ","
1. S ()
2. | a
3. | (A)
4. A S
5. | A,S
a) Show that the grammar is not LL(1) hint: you should be able to do this by
computing some of the
FIRST sets
b) Rewrite the grammar so that it is suitable for recursive decent parsing
c) If you were going to build a table driven top-down parser for this grammar
from (b), how big
would the table be? (how many entries would it have)
Question No. 4 Marks : 10
Use the subset construction to create a DFA that is equivalent to the following NFA that
uses the alphabet a,b. Show your work.
Note: The states with '*' are final states.
More CS606 files
- CS606 - MIdterm Solved MCQs With References.docx (DOC · Midterm)
- CS606 MIDTERM CURRENT PAPER OBJECTIVE 2023 SOLVED BY PRINCE (PDF · Midterm)
- CS606 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS606 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS606 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS606 MIDTERM FILE 3 SOLVED BY TEAM HADI-1.pdf (PDF · Midterm)
- CS606 MIDTERM FILE 3 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS606 MIDTERM FILE 4 SOLVED BY TEAM HADI-1.pdf (PDF · Midterm)