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
PDF
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

  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 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-2) 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- COMPILER
                               CONSTRUCTION
                                (SOLVED MCQs)
                            FROM MIDTERM PAPERS
                               LECTURE (1-22)

BC190202640@vu.edu.pk     For More Visit: vulmshelp.com
Junaidfazal08@gmail.com
                                                          JUNAID MALIK
                                                          (0304-1659294)

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

  0304-1659294                                                            1

AL-JUNAID TECH INSTITUTE
Question No 5
           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

  0304-1659294                                                                 2

AL-JUNAID TECH INSTITUTE
    Regular language
    Acceptor
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

  0304-1659294                                                       3

AL-JUNAID TECH INSTITUTE
    Both non-terminals and terminals
    Neither non-terminals nor terminals
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

  0304-1659294                                                       4

AL-JUNAID TECH INSTITUTE
    Register allocation
Question No 17
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

  0304-1659294                                                               5

AL-JUNAID TECH INSTITUTE
Question No 21
In a transition table cells of the table contain the           state.
       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

   0304-1659294                                                                6

AL-JUNAID TECH INSTITUTE
Question No 25
In Flex specification file different sections are separated by
                  .
      %%
      &&
      ##
      \\

Question No 26
Left factoring of a grammar is done to save the parser from           .
      Location tracking
      Front tracking
      Back tracking

More CS606 files

All CS606 files · Midterm Prep 2026 · MCQs Bank