CS606 MIDTERM SOLVED MCQS By JUNAID.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
- MCQ, 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
- 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 SOLVED MCQS By JUNAID.pdf for free?
You can preview and download "CS606 MIDTERM SOLVED MCQS By JUNAID.pdf" (CS606 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs606-midterm-solved-mcqs-by-junaid-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
AL-JUNAID TECH INSTITUTE
Question No 1
LL(1) parsing is called ___________________ parsing.
Predictive
Non-predictive
Post-predictive
Post determine
Question No 2
One kind of predictive parser is the ______________________.
Recursive descent parses
Bottom-up parser
Natural parser
Multilingual parser
Question No 3
Front-end of a two pass compiler consists of ____________________.
Code optimizer
Scanner
Parser
Assembler
Question No 4
The algorithm for _____________________ conversion is called
Thompson’s Construction.
DFA to RE
RE to DFA
RE to NFA
CFG to NFA
Question No 5
0304-1659294 1
AL-JUNAID TECH INSTITUTE
________ convert the relocatable machine into absolute machine code by
linking library and relocatable object files.
Assembler
Loader/link editor
Compiler
Preprocessor
Question No 6
The __________________ parser uses a stack to hold the frontier.
Top-down
Bottom-up
Predicative
LL(1) parsers
Question No 7
______________ is the process of discovering a derivation for some sentence
of a language.
Compiling
Scanning
Parsing
Interpretation
Question No 8
A ______________ accepts a string if we can follow transitions labeled with
characters in the string from start state to some accepting state.
Finite automata…………………(For More Visit)
Regular expression
Regular language
Acceptor
0304-1659294 2
AL-JUNAID TECH INSTITUTE
Question No 9
The general idea behind NFA-to-DFA construction is that each _______ state
corresponds to a set of _______ states.
DFA, NFA
NFA, DFA
NFA, FA
CFG, NFA
Question No 10
Optimal registers allocation is ____________ problem.
NP-hard
NP-complete
Polynomial complete
Multinomial complete
Question No 11
Majority of the algorithms employed in the back-end are
______________________.
Polynomial time
NP-Complete
Np
None of the given
Question No 12
In predictive parsing table, the rows are _______________________.
Non-terminals
Terminals
Both non-terminals and terminals
Neither non-terminals nor terminals
0304-1659294 3
AL-JUNAID TECH INSTITUTE
Question No 13
Predictive parser accepts _____________ grammars.
LL(n+)
LL(j-)
LL(k)
LL(K++)
Question No 14
________ and __________ actions are used by bottom-up parsing.
Break and reduce
Shift and break
Shift and reduce
Shift and expand
Question No 15
If the right-hand side of a production has k symbols, it has _________
placeholder positions.
k
k+1
k+2
k+3
Question No 16
Lexical analyzer function is not ___________________.
Removing white space
Removing constants, identifies and keywords
Removing comments
Register allocation
Question No 17
0304-1659294 4
AL-JUNAID TECH INSTITUTE
Reduce action _________ zero or more symbols from the stack.
Pushes
Pops
Both pushes and pops
Adds
Question No 18
Parser determines if the input is ___________ well formed.
Programmatically
Logically
Syntactically
Mechanically
Question No 19
Grammar with the _____________ property is called predictive grammar.
LL(3)
LL(2)
LL(1)
LL(n+)
Question No 20
The executable code typically runs as a ____________ in an Operating
System Environment.
Process
Threads
Routine
Function
Question No 21
In a transition table cells of the table contain the ________ state.
0304-1659294 5
AL-JUNAID TECH INSTITUTE
Reject State
Next State
Previous State
Same State
Question No 22
In parser the two LL stand(s) for ____________________.
Left-to-right scan of input
Left-most derivation
Left-to-right scan of input and left-most derivation
Right to left scan of input
Question No 23
The _______________ builds intermediate Representation (IR) for source
program.
Scanner
Parser
Compiler
Loader
Question No 24
Left factoring of a grammer is done to save the parser from
_________________.
Location tracking
Front tracking
Back tracking
Random tracking
Question No 25
In Flex specification file different sections are separated by
______________.
0304-1659294 6
AL-JUNAID TECH INSTITUTE
%%
&&
##
\\
Question No 26
Left factoring of a grammar is done to save the parser from ___________.
Location tracking
Front tracking
Back tracking
Random tracking
Question No 27
Lexer and scanner are _________ phase of compiler.
Same
Different
Backend
Middle end
Question No 28
Back End of two-pass compiler uses _____________ algorithm.
O(n)
(n log n)
NP Complete
O(n2)
Question No 29
The ____________ contains a lot of unneeded information.
Parse tree
0304-1659294 7
AL-JUNAID TECH INSTITUTE
Abstract syntax tree
Complete tree
Abstract syntax tree
Question No 30
A ______________ start at the leaves and grows toward root of the parse
tree.
Top-down parser
Bottom-up parser
Vertical parser
Horizontal parser
Question No 31More 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)