CS402 Final Term Solved MCQs By JUNAID.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, SOLVED, 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 Final Term Solved MCQs By JUNAID.pdf for free?

You can preview and download "CS402 Final Term Solved MCQs By JUNAID.pdf" (CS402 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-final-term-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 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

AL-JUNAID INSTITUTE GROUP

1. If Σ = {aa, bb} , then Σ* will not contain
 aaabbb
 aabbbb
 aabbaa
 bbaabbbb
2. “One language can have _________ TG‟s”.
 Only one
 Only two
 More than one
 Only three
3. According to 1st part of the Kleene‟s theorem, If a language can be
   accepted by an FA then it can be accepted by a ________ as well.
 FA
 CFG
 GTG
 TG
4. Even-palindrome is a _______ language.
 Non-regular
 Regular
 Regular but infinite
 Regular but finite
5. If L is a regular language then, Lc is also a _____ language.
 Regular (Page 66)
 Non-regular
 Regular but finite

AL-JUNAID INSTITUTE GROUP
 None of the given
6. Pumping lemma is generally used to prove that:
 A given language is infinite
 A given language is not regular
 Whether two given regular expressions of a regular language are
   equivalent or not
 None of these
7. the FA has N states, then test the words of length less than N. If no
   word is accepted by this FA, then it will _________ word/words.
 accept all
 accept no (Page 85)
 accept some
 reject no
8. In CFG, the symbols that can’t be replaced by anything are
   called________.
 Terminal (Page 87)
 Non-Terminal
 Production
 All of given
9. Which of the following is a regular language?
 String of odd number of zeroes
 Set of all palindromes made up of 0‟s and 1‟s
 String of 0‟s whose length is a prime number
 All of these
10.      Which of the following pairs of regular expressions are
   equivalent?
 1(001)* and (10)*10
 x(xx)* and (x)*x
 X  and X*
 X  and X* X 
11.      An alphabet of Σ is valid if

AL-JUNAID INSTITUTE GROUP
 No letter of Σ appears in middle of any other letter
 No letter of Σ appears at end of any other letter
 No letter of Σ appears at start of any other letter
 No letter of Σ appears at end or middle of any other letter
12.       Which of the following statement is true
 The length of the output string is greater than length of input
   string in moore machine.
 The length of the output string is greater than length of input string in
   mealy machine.
 The length of the output string is equal to length of input string in
   moore machine.
 The length of the output string is less than length of input string in
   mealy machine.
13.       If a CFG has only productions of the form nonterminal → string
   of two nonterminals or nonterminal → one terminal then the CFG is
   said to be in ________
 Chomsky Normal Form
 Ambiguous Form
 Left Aligned Form
 Right Aligned Form
14.       We can also represent an FA using different states e.g Accept
   state; Reject state, Read state etc. The ________ state behaves as final
   state of an FA
 Accept (Page 105)
 Pop
 Push
 Reject
15.       where the input string is placed before it is run, is called _______
 Date tape
 Input Tape (Page 105)
 Output Tape

AL-JUNAID INSTITUTE GROUP
 Magnetic tape
16.      An FSM can be considered as TM
 Of finite tape length, rewinding capability and unidirectional tape
   movement
 Of finite tape length, without rewinding capability and bidirectional
   tape movement
 Of finite tape length, rewinding capability and bidirectional tape
   movement
 Of finite tape length, without rewinding capability and
   unidirectional tape movement
17.      The process of finding the derivation of the word generated by
   particular grammar is called _____
 Processing
 Parsing (Page 136)
 Programming
 Planning
18.      The first rule of converting the given “CFG in CNF”, is _______
 CNK algorithm
 CYK algorithm (Page 135) Algorithm 4 (The CYK algorithm)
 CKY algorithm
 KYC algorithm
19.      Alphabet Σ = {a, bc, cc} has number of letters
 One
 Two
 Three
 Four
20.      We cannot write regular expressions for all _______.
 FA‟s
 TG‟s
 NFA‟s
 CFG’s (Page 97)

AL-JUNAID INSTITUTE GROUP
21.      For every Context Free Grammar (CFG), we can make the
   corresponding ______.
 FA
 TG
 PDA
 Regular Grammar
22.      Pumping Lemma II says that length(x) + length(y) should be
   ______.
 Less than number of states (Page 75)
 Equal to number of states
 Greater than number of states
 Greater than or equal to number of states
23.      Chomsky normal form (CYK) algorithm was proposed by
   ______.
 John cock (Page 135)
 James Cock
 Daniel I.A.
 John Weiss
24.      The language of Palindromes defined over an alphabet set {a, b}
   can be recognized by ______.
 FA
 NFA
 TG
 PDA
25.      Which of the following is the first phase of compiler on the basis
   of functionality?
 Parser
 Lexical analyzer
 Scanner
 Interpreter
26.      (Σ* - L) represent the _______ of a language L.

AL-JUNAID INSTITUTE GROUP
 Complement (Page 66)
 Kleene‟s closure
 Union
 intersection
27.      If we have two transition graphs then their union will be
   expressed by
 taking a common start state and joining them by two null
   transitions (Page 65)
 just connecting both start states by null transitions
 connecting final state of first TG to the initial state of second TG
 connecting the final state of first TG to the final state of second TG
28.      ______ and _______ are removed in order to make a CFG in
   Chomsky Normal Form(CNF).
 Null, nullable productions
 Nullable , unit productions
 Null, unit productions (Page 102)
 String of length 0, null
29.      If L1 and L2 are expressed by regular languages then L1 + L2 is
   also a_________ Language.
 Regular (Page 10)
 Ir-regular
 PDA
 Hybrid
30.      Which of the following is a regular Context Free Grammar:
 S → abS| baS | ^ ab(ab+ba)*ba + ba(ab+ba)*ab
 S → aSb| baS | ^
 S → abS| bSa | ^
 S → aSb| Sa | ^
31.      A read state can have _______ outgoing edge/ edges.
 1
 2

AL-JUNAID INSTITUTE GROUP
   3
   Any number of (Page 111)
  32.     Who did not invent the Turing machine?
   Alan Turing

More CS402 files

All CS402 files · Midterm Prep 2026 · MCQs Bank