CS606-Midterm-Grand-Solved-Quiz.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
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-Grand-Solved-Quiz.pdf for free?

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

               LMS handling service are
                     available
                         PAID
               Assignment, QUIZ, GDBZ and

GRAND QUIZ      GRAND QUIZ SERVICE are
                       available

                     0304-1659294
0304-1659294
JUNAID MALIK

AL-JUNAID INSTITUTE GROUP
                CS606 SOLVED GRAND QUIZZ
1. The input specification file to flex consists of --------section.
       a) One
       b) Two
       c) Three
       d) Four
2. Lexer and scanner are two different phases of compiler
       a) True
       b) False
3. In compiler linear analysis is also called.
       a) Lexical analysis
       b) Scanning
       c) Both lexical analysis and Scanning
       d) None of the given
4. Which of the following statement is not true
       a) The language accepted by finite automata are the language
          denoted by regular expression.
       b) For every DFA there is regular expression denoting its language.
       c) For a regular expression, there does exist NFA with L(r) any transit
          that accepts.
       d) None of the given option
5. A B C D
   B h B|episilon
   C C g|G|Ch|i
   D A B |episilon
   First of A is--------------.
       a) h, g,i
       b) g
       c) h
       d) none of the given option.
6. Top down parsing expends a ---------form the start symbol to the leaves.

AL-JUNAID INSTITUTE GROUP
      a) Parse tree
      b) Abstract syntax tree
      c) Parse tree
      d) All of the given
7. A top down parse start with the ----------of the parse tree.
      a) Root
      b) Leaf
      c) Middle
      d) None of the given
8. Can a DFA simulate NFA ?
      a) No
      b) Yes
      c) Sometimes
      d) depends on NFA
9. Bottom up parsing is also called ----------.
      a) LR parsing
      b) LT parsing
      c) LS parsing
      d) SS parsing
10.The ----------is optimized for hardware it is to run on.
      a) C++ coding
      b) C coding
      c) Assembly code
      d) None
11.Abstract syntax tree summarizes----------- without the detail of derivation.
      a) Theory
      b) Grammatical structure
      c) Data
      d) None
12.LR parsing ---------- a string to the start symbol by inverting production.
      a) Reduces
      b) Shifts

AL-JUNAID INSTITUTE GROUP
       c) Adds
       d) None of given
13.Alternative to backtrack in top down parser is------------.
       a) Context free grammar
       b) Tree
       c) Look ahead
       d) None of given
14.Typical compilation means programs written in high-level language to low
   –level---------------.
       a) Object code
       b) Byte code
       c) Unicode
       d) Both object and byte code
15.The -------------checks the stream of words and their parts of speech for
   grammatical correctness.
       a) Parse
       b) Scanner
       c) Compiler
       d) None of the given
16.A grammar must be----------before use for predictive parsing.
       a) Right factored
       b) Left factored
       c) factored
       d) none of the given
17.Parser does not distinguish between valid and invalid sequences of token.
       a) True
       b) False
18. In compilation process hierarchical analysis is also called------.
       a) Parsing
       b) Syntax analysis
       c) Both Parsing and Syntax analysis
       d) None of given

AL-JUNAID INSTITUTE GROUP
19. The pair <role,word> is given the name-----
       a) Word
       b) Token
       c) Syntax
       d) None of the given
20.The back map intermediates(IR) into target
       a) Object code
       b) Machine code
       c) Source code
       d) Linker
21.-------------is evaluated to yield a value.
       a) Command
       b) Expression
       c) Declaration
       d) Declaration and Command
22.Front end of a two pass compiler is consists of scanner.
       a) True
       b) False
23.The ----------returns a sequence of matching token at the output (or an
   error ) and it always returns the longest matching tokens .
       a) Scanner
       b) Lexer
       c) Lexical analysis
       d) All of the given
24. Parser takes token from scanner and tries to generate ---------.
       a) Binary search tree
       b) Parse tree
       c) Syntax trace
       d) None of the given
25. --------avoid hardware stalls and interlock.
       a) Register allocation
       b) Instruction scheduling

AL-JUNAID INSTITUTE GROUP
      c) Instruction selection
      d) None of the given
26.The handle-finding mechanism is the key to efficient---------------parsing.
      a) Top-down
      b) Bottom-up
      c) Predictive
      d) None of the given
27. The input specification file to flex consists of          sections:
    Three
28. Leaser and scanner are two different phases of compiler.
    False
29. In compiler linear analysis is also called.
    Both lexical analysis and scanning
30. Which of the following statements is NOT true?
    For a regular expression r, there does not exist NFA with L(r) any transit that accept.
31. 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
32. Top- down parsing expands a           from the start symbol to the leaves.
    All of the given
33. A top-down parser start with the          of the parse tree.
    Root
34. Can a DFA simulate NFA?
    YES
35. Bottom-up parsing is also called            .
    LR parsing
36. The            is optimized for hardware it is to run on.
    Assembly code
37. Abstract syntax tree summarizes               without the details of derivation.
    Grammatical structure
38. LR parsing             a string to the start symbol by inverting productions.
    Reduces
39. Alternative to backtrack in top-down parser is            .
    Look ahead
40. Typical compilation means programs written in high-level languages to low-level           .
    Object code

AL-JUNAID INSTITUTE GROUP
41. The         checks the stream of words (tokens) and their parts of speech for grammatical
    correctness.
    Compiler
42. A grammar must be         before use for predictive parsing.
    Left factored

More CS606 files

All CS606 files · Midterm Prep 2026 · MCQs Bank