CS402 QUIZ-2 LEC (29 to 40) By JUNAID.pdf

Verified academic study resource for CS402 (Theory of Automata) under the Computer Science at Virtual University of Pakistan. This PDF document (Live Quiz Dumps & Solved Objective Bank) covers Quizzes & Objective Exam Scope spanning approximately 180 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS402 – Theory of Automata
Faculty
Computer Science
Format
PDF
Type
Quiz
Coverage
Quizzes & Objective Exam Scope

Quiz questions often repeat with modified parameter values in both Midterm and Final exams. Practice with our 45-second timed simulator to master exam pacing.

What this file covers — CS402 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)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download CS402 QUIZ-2 LEC (29 to 40) By JUNAID.pdf for free?

You can preview and download "CS402 QUIZ-2 LEC (29 to 40) By JUNAID.pdf" (CS402 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-quiz-2-lec-29-to-40-by-junaid-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS402 file?

This document covers Quizzes & Objective Exam Scope across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS402 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 CS402 solved past papers and handouts verified for 2026 exams?

Yes. All CS402 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

  CS402-Thory of AuTomATA
     QuIZ-2 LEC ( 29 To 40)
SoLvEd by JuNAId mALIK ANd TEAm

                                  [School]
                              [Course title]

AL-JUNAID INSTITUTE GROUP
    ALL answers are verified if found any
    mistake then Correct ACCORDINGLY
1. To write the expression from the tree,it is required to travel from____
       Top to bottom of the tree
       Left side of the tree
       Bottom to top of the tree
       Right side of the tree
2. In conversion from of PDA, no two___states exit in a row without___state.
       PUSH, READ
       POP, READ
       PUSH, START
       POP, REJECT
3. The CFG-SaSa|a|b|^represents____language.
       EVEN-EVEN
       PALINDROME
       EQUAL
       ODD-ODD
4. The CFG that generates the regular language is called____
       Regular expression
       Finite automata
       Regular grammar
       Non-regular grammar
5. Null production is a____
       Word
       String
       Terminal
       All of the given option
6. The CFG is said to be ambiguous if there exist at least one word of its
   language that can be generated by___ production trees
       One
       Two

AL-JUNAID INSTITUTE GROUP
        More than one
        At most one
7. The structure given below is called
   S->aA|bB
   A->aS|a
   B->bS|b
        RE
        TG
        CFG
        PDA
8. Identify the TRUE statement.
        A PDA is Non-deterministic, if there are more than one READ state
          in PDA
        A PDA is never non-deterministic
        Like TG,A PDA can also be non- deterministic
        A PDA is Non-deterministic, if there are more than one REJECT state
          in PDA
9. In new format of an FA (discussed in Leacture 37)._____state is like a final
   state of an FA
        ACCEPT
        REJECT
        START
        READ
10.In new format of an FA (discussed in Leacture 37)._____state is like a Initial
   state of an FA
 ACCEPT
 REJECT
 START
 READ
11.Consider the Following CFG (NOTE:^means NULL)
   S->Xa
   X->aX|bx|^
   Above given CFG can be represented by RE___
        A*b*

AL-JUNAID INSTITUTE GROUP
        A*b*a
        (a+b)*a
        a(a+b)*a
12.The major problem in the earliest computers was____
        TO state the contents in the registers
        To display mathematically formula
        To Load contents from the register
        To calculate the mathematically formula
13.Identify the correct statement from the following:
        There always exists a corresponding PDA for every CFG
        There does not exist a corresponding PDA for every CFG
        For a CFG to convert to PDA the CFG should have at least 3
          Nonterminal
        For a CFG to convert to PDA the CFG should have at least 5
          Nonterminal
14.The PDA is called non-deterministic PDA when there are more than one out
   going edges from___state.
        START or READ
        POP or REJECT
        READ or POP
        PUSH or POP
15.Identifying the FALSE statement about following CFG.
   S->SB|AB
   A->CC
   B->b
   C->a
        CFG generated NULL string
        CFG is not in CNF
        CFG has 8 Nonterminal
        All of the given option
16.In nondeterministic PDA, a string is supposed to be accepted if there exists
   at least one path traced by the string, leading to____state.
        ACCEPT

AL-JUNAID INSTITUTE GROUP
        REJECT
        START
        READ
17.In a CFG the non-terminal that occurs first from the left in the working
   string.is said to be___
        Least Significant nonterminal
        Most Significant Nonterminal
        Left most nonterminal
        Left most derivate
18.Identifying the TRUE statement about following CFG.
   S->SB|AB
   A->CC
   B->b
   C->a
               The given CFG is in CNF
               The given CFG has 8 terminals
               The given CFG is in CNF
               The given is not in CNF

19.The derivation of word w, generated by a CFG,such that at each step, a
   production is applied to the left most nonterminal in the following string is
   said to be_____
       Left most derivation
       Right most derivation
       Left most Terminal
       Right most Terminla
20.“CFG” stand for_____
       Context Free Graph
       Context Free Grammar
       Context Finite Graph
       Context Finite Grammar
21.The production of the from Non-terminal->^ is said to be ____production.
       NULL

AL-JUNAID INSTITUTE GROUP
          UNIT
          Chomsky from production
          CNF
  22.In nondeterministic PDA, a string is supported to be accepted if there exists
     at least one path traced by the string, leading to___state, leading to___state.
          ACCEPT
          REJECT
          START
          READ
  23.One GTG can generate _______Language
          More than one
          Only one
          Only two
          Only three
  24.In STACK
          The Element PUSHed and firs is POPed firs
          The element PUSHed first is POPed in the last
          The element PUSHed in last is POPed in last
          None of given option
  25.Before the PDA is converted into conversion form, a new state___is define
     which is placed in the middle of any edge.
          REJECT
          HERE
          START
          STOP
  26._____state are called the halt states
          ACCEPT and REJECT
          ACCEPT and READ
          ACCEPT AND START
  27.       ACCEPT AND WRITEIf the intersection of two regular languages
     is regular, then the complement of the intersection of these two
     languages is __________.

Regular

AL-JUNAID INSTITUTE GROUP
   28.      The language of all strings partition ∑* into ___________
      class(es).

Two

   29.      The language of all strings not beginning with ‘b’ partitions ∑*
      into ___________distinct classes.

Two

More CS402 files

All CS402 files · Midterm Prep 2026 · MCQs Bank