CS402 Quiz-4 By Vu Topper RM.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-4 By Vu Topper RM.pdf for free?

You can preview and download "CS402 Quiz-4 By Vu Topper RM.pdf" (CS402 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-quiz-4-by-vu-topper-rm-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 Theroy Of Automata
   Update MCQS For Quiz-4 File
  Solve By Vu Topper RM

         85 To 100% Marks

For More Help Contact What’s app 03224021365

Consider the following CFG:
S->a|Xb|aYa
X->Y|^        (NOTE: ^ means NULL)
Y->b|X
Which Non-terminals are nullable?
  A. X
  B. Y
  C. Z
  D. S,X and Y

The CFG S--> aSa | bSb | a | b | ^ represents ___________ language.
  A. EQUAL
  B. ODD-ODD
  C. EVEN-EVEN
  D. PALINDROME

The structure given below is called _________
S -> aaBm
A -> Asia
B -> sub
   A. RE
   B. TG
   C. CFG
   D. PDA

One language can have ______ CFG(s).
  A. Only one
  B. At most one
  C. At least one
  D. More than one

  For More Help Contact What’s app 03224021365

Consider the Following CFG: (NOTE: ^ means NULL)
S-Xa
XaX|bX|^
Above give a CFG can be represented by RE
  A. a*b*a
  B. a*b*
  C. (a+b)*a
  D. a(a+b)*a

The tree which produces all the strings of a language is called
__________.
  A. Derivation tree
  B. Ambiguous tree
  C. Total language tree              Page 96
  D. Non ambiguous tree

The language of all strings partition ∑* into ___________ class(es).
  A. Two
  B. Five
  C. Four
  D. Three

There is at least one production in CFG that has one _________ on its
left side.
   A. Terminal
   B. Non terminal           Page 87
   C. Unit production
   D. Null production

The CFG that generates the regular language is called _______.
  A. finite automata
  B. regular expression
  C. regular grammar               Google

  For More Help Contact What’s app 03224021365

  D. non-regular grammar

Prime is a ______________ language.
   A. Finite
   B. Regular       Page 75
   C. Non-regular
   D. Both context free and regular

Which of the following cannot be represented by a regular expression?
 A. Language of odd-odd
 B. Language of even-even
 C. String of 0’s with an odd length
 D. String of 0’s with a prime length

"CFG" stands for __________________.
  A. Context Free Graph
  B. Context Finite Graph
  C. Context Free Grammar         Page 87
  D. Context Finite Grammar

In pref(Q in R), Q is _______ to/than R.
   A. Equal
   B. Smaller
   C. Greater
   D. Not equal         Page 79

The operators like (* , +) in the parse tree are considered as ________.
  A. Terminals            Page 93
  B. Productions
  C. Intermediates
  D. non-terminals

  For More Help Contact What’s app 03224021365

A problem is said to be _________ if there exists an algorithm that
provides the solution in __________ number of steps.
   A. effectively solvable, finite       Page 80
   B. effectively solvable, infinite
   C. effectively unsolvable, finite
   D. effectively unsolvable, infinite

Which of the following refers to the set of strings of letters that when
concatenated to the front of some word in Q produces some word in R?
  A. Pref(Q in R)          Page 78
  B. Postf(R in Q)
  C. Postf(Q in R)
  D. Pref(R in Q)

If a CFG has a null production, then it is ______________.
   A. Called NULL CFG
   B. Called Chmosky Normal Form (CNF)
   C. Possible to construct another CFG without null production
      accepting the same language with the exception of the word ^
   D. Not possible to construct another CFG without null production
      accepting the same language with the exception of the word ^

For a machine with N number of states, the total number of strings to be
tested, defined over an alphabet of m letters, is _____________.
   A. Nm
   B. Mn
   C. Nm +Nm+1+ N m+2 +… + N2m-1
   D. mN +mN+1+ mN+2 +… +m2N-1

In large FA with thousands of states and millions of directed edges,
without an effective procedure it is ________ to find a path from initial
to final state.
   A. Impossible          Page 81
   B. Always easy

  For More Help Contact What’s app 03224021365

  C. Always impossible
  D. May be good

The basic approach of Myhill Nerode theorem is similar to the concept
of:
    A. Union of FAs
    B. Closure of FAs
    C. Concatenation of FAs
    D. Distinguishable and indistinguishable strings

The product of two regular languages is __________.
  A. Infinite
  B. Regular        Page 78
  C. non-regular
  D. closure of a regular language

If there is no final state of two FAs then their ______ also have no
_____ state
    A. union,final            Page 83
    B. final, union
    C. initial, union
    D. union, initial

The production of the form: nonterminal --> one nonterminal is called
the __________
   A. Unit production          Page 100
   B. NULL production
   C. Terminal production
   D. Non-Terminal production

To examine whether a certain FA accepts any words, it is required to
seek the paths _______ state.
   A. FromFinal to initial
   B. From Initial to final      Page 81

  For More Help Contact What’s app 03224021365

  C. From Final to final back
  D. From Initial to initial back

The production S --> SS | a | b | ^ can be expressed by Regular
expression _________.
  A. (ab)*
  B. (a+b)
  C. (a+b)*        Page 88
  D. (a+b)+

If Q = {xx, xyxxxy }, and R = {xyxyxyxxyy, xyxyyyxx} then Pref( Q in
R) = ____________
   A. Xx
   B. Yy
   C. Xyxyyy
   D. Xyxyxy

In polish notation, (o-o-o) is the abbreviation of _________.
   A. Operand -Operand – Operand
   B. Operand - Operand- Operator
   C. Operand - Operator – Operand
   D. Operator -Operand – Operand               Page 94

In a CFG, the non-terminals are denoted by _________.
   A. Numbers
   B. Small letters
   C. Capital letters
   D. Small letters and numbers

Even-Even language partitions ∑* into ___________ distinct classes.
  A. Two
  B. Five
  C. Four
  D. Three

  For More Help Contact What’s app 03224021365

The CFG S → aSb|ab|Λ is used to express the language _________.
  A. Even
  B. Equal
  C. Prime
  D. Palindrome

In the null production N --> ^, N is a _______.
   A. word
   B. terminal
   C. Semi word
   D. Non terminal           Page 99

In CFG, symbols that cannot be replaced by anything are called
__________.
   A. Terminals         Google
   B. Productions
   C. non-terminals
   D. null productions

The production of the form: Non-terminal-> ^ is said to be ______
production.

More CS402 files

All CS402 files · Midterm Prep 2026 · MCQs Bank