cs606-solved-midterm-mega-quiz-and-subjective-files.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
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
SUBJECTIVE, SOLVED, 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

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. 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-solved-midterm-mega-quiz-and-subjective-files.pdf for free?

You can preview and download "cs606-solved-midterm-mega-quiz-and-subjective-files.pdf" (CS606 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs606-solved-midterm-mega-quiz-and-subjective-files-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

             CS606 All Midterm Papers Quizez + Mcqz and subjective
                             Solved by Well wisher

LR parsers can handle ________________ grammars.
 Left-recursive    Page no: 163
 file-recursive
 End-recursive
 Start-recursive
_____ convert the reloadable machine code into absolute machine code by
linking library and reloadable object files.
Assembler
Loader/link-editor
Compiler
Preprocessor

Consider the grammar A --> B C D
B --> h B | epsilon
C --> C g | g | C h | i
D --> A B | epsilon

Follow of B is _____________ .

h
g, h, i, $
g, i
g

Consider the grammar A --> B C D
B --> h B | epsilon
C --> C g | g | C h | i
D --> A B | epsilon
Follow of C is _____________ .
g, h, i, $ Page no : 47
g, h, $
h, i, $
h, g, $

An important component of semantic analysis is __________________ .
code checking
type checking page no : 6
flush checking
None of the given
In PASCAL ___________ represent the inequality test.
:=
=
<>
None of the given
Lexical Analyzer generator ________________ is written in Java.
Flex
Jlex                   Page no : 26
Complex
None of given
____________avoid hardware stalls and interlocks.
Register allocation
Instruction scheduling Page no : 10
Instruction selection
None of given
Consider the following grammar,
A --> B C D
B --> h B | episilon
C --> C g | g | C h | i
D --> A B | episilon
First of A is _______________ .
h, g, i
g
h
None of the given
Recursive ____________ parsing is done for LL(1) grammar.
Decent            Page no : 47
Ascent
Forward
Backward
One of the core tasks of compiler is to generate fast and compact executable
code.

True
False

Left factoring of a grammar is done to save the parser from back tracking.
True               Page no:61
False
Responsibility of ______________ is to produce fast and compact code.
Instruction selection                 Page no: 9
Register allocation
Instruction scheduling
None of given
________________ algorithm is used in DFA minimization.
James’s
Robert’s
Hopcroft’s                           Page no:25
None of given
Compilers are sometimes classified as.
Single pass
 Multi pass
 Load and go
 All of the given

In multi pass compiler during the first pass it gathers information
about ___________________ .
Select correct option:
Declaration
Bindings
Static information
None of the given **

Question # 9 of 10 ( Start time: 06:40:30 PM ) Total Marks: 1
Flex is an automated tool that is used to get the minimized DFA (scanner).
Select correct option:
True
False

In compilation process Hierarchical analysis is also called
Select correct option:
Parsing
Syntax analysis
Both Parsing and Syntax analysis
None of given

 For each language to make LL(1) grammar, we take two steps, 1st is removing
left recurrence and 2nd is applying fin sequence.

True
False
_____________is evaluated to yield a value.

Command
Expression
Declaration
Declaration and Command
LR parsers can handle ________________ grammars.
  Left-recursive     page no : 63
 file-recursive
 End-recursive
 Start-recursive
Optimal registers allocation is an NP-hard problem.
True
False                Page no : 10
Parser takes tokens from scanner and tries to generate _______________ .

Binary Search tree
Parse tree
Syntax trace           Page no : 6
None of the given
Front end of two pass compiler takes_________________ as input.
Source code           Page no: 5
Intermediate Representation (IR)
Machine Code
None of the Given
In DFA minimization we construct one _______________ for each group of
states from the initial DFA.
State                 Page no : 25
NFA
PDA
None of given
In Three-pass compiler _____________ is used for code improvement or
optimization.

Front End

Middle End           Page no : 10
Back End
Both Front end and Back end
________________ of a two-pass compiler is consists of Instruction selection,
Register allocation and Instruction scheduling.
Back end             Page no : 9
Front end
Start
None of given
NFA is easy to implement as compared to DFA.
 True
False                   Page no : 19
We can get an LL(1) grammar by ________________ .
 Removing left recurrence
Applying left factoring
Removing left recurrence and Applying left factoring
None of the given
Parser always gives a tree like structure as output
 True                     page no : 37
False
Intermediate Representation (IR) stores the value of its operand in
Registers
Memory
Hard disk
Secondary storage
In Back End module of compiler, optimal register allocation
uses_______________ .
 O(log n)
O(n log n)
N P-Complete             Page no : 10
None of the given
                                   CS 606 Quizez

Can a DFA simulate NFA?
Yes
No
Sometimes
Depend upon nfa

____________________ phase which supports macro substitution and conditional
compilation.
Semantic
Syntax
Preprocessing
None

Which of the statement is true about Regular Languages?
Regular Languages are the most popular for specifying tokens.
Regular Languages are based on simple and useful theory.
Regular Languages are easy to understand.
All of the given

Lexer and scanner are two different phases of compiler
True
False        Page no :13

Lexical Analyzer generator ________________ is written in Java.
Flex
Jlex         Page no :26
Complex
None of the given

In a transition table cells of the table contain the ________ state.
Reject state
Next state           Page no 18
Previous state
None of the given

The transition graph for an NFA that recognizes the language ( a | b)*abb will have
following set of states.
{0}
{0,1}
{0,1,2}
{0,1,2,3}           not sure

Front end of two pass compiler takes_________________ as input.

Source code
Intermediate representation
Machine code
None

Functions of Lexical analyzer are?
Removing white space
Removing constants, identifiers and keywords
Removing comments
All of the given

Question # 1 of 10 ( Start time: 07:25:59 PM ) Total Marks: 1

Front-end of a two pass compiler is consists of Scanner.

Select correct option:

True
False

Question # 2 of 10 ( Start time: 07:26:40 PM ) Total Marks: 1

LL(1) parsing is called non-predictive parsing.

Select correct option:

True
False

More CS606 files

All CS606 files · Midterm Prep 2026 · MCQs Bank