CS402 Mcq's FinalTerm 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 (Final-Term Solved Past Paper & Examination Pack) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 pages across 4 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
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Tags
MCQ, FINALTERM

Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS402, regardless of midterm scores.

What this file covers — CS402 syllabus roadmap

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. 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 Mcq's FinalTerm By Vu Topper RM.pdf for free?

You can preview and download "CS402 Mcq's FinalTerm By Vu Topper RM.pdf" (CS402 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-mcq-s-finalterm-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 Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (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 Final Term
Solve By Vu Topper RM
       85% To 100% Marks

For More Help Contact What’s app 03224021365

Question No:1                 (Marks:1)            Vu-Topper RM
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

Question No:2                    (Marks:1)             Vu-Topper RM
The CFG S--> aSa | bSb | a | b | ^ represents ___________ language.
  A. EQUAL
  B. ODD-ODD
  C. EVEN-EVEN
  D. PALINDROME

Question No:3                   (Marks:1)          Vu-Topper RM
The structure given below is called _________
S -> aaBm
A -> Asia
B -> sub
   A. RE
   B. TG
   C. CFG
   D. PDA

Question No:4                (Marks:1)             Vu-Topper RM
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

Question No:5                 (Marks:1)          Vu-Topper RM
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

Question No:6                   (Marks:1)                Vu-Topper RM
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

Question No:7                     (Marks:1)            Vu-Topper RM
The language of all strings partition ∑* into ___________ class(es).
  A. Two
  B. Five
  C. Four
  D. Three

Question No:8                    (Marks:1)              Vu-Topper RM
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

  For More Help Contact What’s app 03224021365

Question No:9                  (Marks:1)                Vu-Topper RM
The CFG that generates the regular language is called _______.
  A. finite automata
  B. regular expression
  C. regular grammar               Google
  D. non-regular grammar

Question No:10                   (Marks:1)           Vu-Topper RM
Prime is a ______________ language.
   A. Finite
   B. Regular       Page 75
   C. Non-regular
   D. Both context free and regular

Question No:11                   (Marks:1)             Vu-Topper RM
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

Question No:12               (Marks:1)               Vu-Topper RM
"CFG" stands for __________________.
  A. Context Free Graph
  B. Context Finite Graph
  C. Context Free Grammar         Page 87
  D. Context Finite Grammar

Question No:13                   (Marks:1)           Vu-Topper RM
In pref(Q in R), Q is _______ to/than R.
   A. Equal
   B. Smaller
   C. Greater
   D. Not equal         Page 79

  For More Help Contact What’s app 03224021365

Question No:14                     (Marks:1)               Vu-Topper RM
The operators like (* , +) in the parse tree are considered as ________.
  A. Terminals            Page 93
  B. Productions
  C. Intermediates
  D. non-terminals

Question No:15                     (Marks:1)            Vu-Topper RM
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

Question No:16                   (Marks:1)                 Vu-Topper RM
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)

Question No:17                   (Marks:1)             Vu-Topper RM
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 More Help Contact What’s app 03224021365

Question No:18                   (Marks:1)               Vu-Topper RM
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

Question No:19                   (Marks:1)               Vu-Topper RM
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
   C. Always impossible
   D. May be good

Question No:20                    (Marks:1)           Vu-Topper RM
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

Question No:21                  (Marks:1)               Vu-Topper RM
The product of two regular languages is __________.
  A. Infinite
  B. Regular        Page 78
  C. non-regular
  D. closure of a regular language

  For More Help Contact What’s app 03224021365

Question No:22                     (Marks:1)               Vu-Topper RM
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

Question No:23                  (Marks:1)             Vu-Topper RM
The production of the form: nonterminal --> one nonterminal is called
the __________
   A. Unit production          Page 100
   B. NULL production
   C. Terminal production

More CS402 files

All CS402 files · Midterm Prep 2026 · MCQs Bank