cs402-final-term-mcqs-solved-with-references-by-moaaz.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 compiled by Moaaz Siddhu) 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)
Compiled by
Moaaz Siddhu
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-mcqs-solved-with-references-by-moaaz.pdf for free?

You can preview and download "cs402-final-term-mcqs-solved-with-references-by-moaaz.pdf" (CS402 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-final-term-mcqs-solved-with-references-by-moaaz-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- Theory of Automata
                                        Solved MCQS                       Feb 22,2013
                                    From Final term Papers
   MC100401285            Moaaz.pk@gmail.com      Mc100401285@gmail.com     PSMD01

                             FINALTERM EXAMINATION
                                       Fall 2012
                               CS402- Theory of Automata
Question No: 1 ( Marks: 1 ) - Please choose one
If Σ = {aa, bb} , then Σ* will not contain
►aaabbb
►aabbbb
►aabbaa
►bbaabbbb

Question No: 2 ( Marks: 1 ) - Please choose one
Below given FA has __________ RE.

►a(a+b)*      (Page 14)
► (a(a+b)*)*
►a(a+b)*a
►a(a+b)*a + b(a+b)*b

Question No: 3 ( Marks: 1 ) - Please choose one
“One language can have _________ TG‟s”.
►Only one
►Only two
►More than one
►Only three

                                                                              1

Question No: 4    ( Marks: 1 ) - Please choose one

Above given TG represents the language i.e.
►EVEN-EVEN          (Page 22)
►PALINDROME
►FACTORIAL
►None of these

Question No: 5 ( Marks: 1 ) - Please choose one
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       (Page 25)

Question No: 6 ( Marks: 1 ) - Please choose one
Even-palindrome is a _______ language.
►Non-regular click here for detail
►Regular
►Regular but infinite
►Regular but finite

Question No: 7 ( Marks: 1 ) - Please choose one
If L is a regular language then, Lc is also a _____ language.
     ► Regular (Page 66)
     ► Non-regular
     ► Regular but finite
     ► None of the given

Question No: 8 ( Marks: 1 ) - Please choose one
Pumping lemma is generally used to prove that:
   ► A given language is infinite
   ► A given language is not regular      Click here for detail
   ► Whether two given regular expressions of a regular language are equivalent or not
   ► None of these

                                                                                                  2

Question No: 9 ( Marks: 1 ) - Please choose one
If 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

Question No: 10 ( Marks: 1 ) - Please choose one
In CFG, the symbols that can‟t be replaced by anything are called________.

    ► Terminal (Page 87)
    ► Non-Terminal
    ► Production
    ► All of given

Question No: 11 ( Marks: 1 ) - Please choose one
Which of the following is a regular language?

    ► String of odd number of zeroes         Click here for detail
    ► 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

Question No: 12 ( Marks: 1 ) - Please choose one
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 

Question No: 13 ( Marks: 1 ) - Please choose one
An alphabet of Σ is valid if

►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         (Page 4)
►No letter of Σ appears at end or middle of any other letter

                                                                                                      3

Question No: 14 ( Marks: 1 ) - Please choose one
Which of the following statement is true

►The length of the output string is greater than length of input string in moore machine. Click here for detail
►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.

Question No: 15 ( Marks: 1 ) - Please choose one
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 (Page 101)
►Ambiguous Form
►Left Aligned Form
►Right Aligned Form

Question No: 16 ( Marks: 1 ) - Please choose one
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

Question No: 17 ( Marks: 1 ) - Please choose one
where the input string is placed before it is run, is called _______
►Date tape
►Input Tape (Page 105)
►Output Tape
►Magnetic tape

Question No: 18 ( Marks: 1 ) - Please choose one
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 click here for
detail

                                                                                                     4

Question No: 19 ( Marks: 1 ) - Please choose one
The process of finding the derivation of the word generated by particular grammar is called _____

►Processing
►Parsing (Page 136)
►Programming
►Planning

Question No: 20 ( Marks: 1 ) - Please choose one
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

Question No: 21 ( Marks: 1 ) - Please choose one
Consider the following TM

►Above TM accepts the non-CFL {a b c}
►Above TM accepts the non-CFL {a n b n a n }       (Page 142)
►Above TM accepts the non-CFL {a n b n  2 a n }

Question No: 22 ( Marks: 1 ) - Please choose one
Alphabet Σ = {a, bc, cc} has number of letters

►One
►Two

More CS402 files

All CS402 files · Midterm Prep 2026 · MCQs Bank