CS402 Sample Paper Fall 2025.docx

Verified academic study resource for CS402 (Theory of Automata) under the Computer Science at Virtual University of Pakistan. This DOC document (Mega Solved MCQs Question Bank) covers Full Course Curriculum 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
DOC
Type
MCQ Bank
Coverage
Full Course Curriculum

Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.

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 Sample Paper Fall 2025.docx for free?

You can preview and download "CS402 Sample Paper Fall 2025.docx" (CS402 DOC, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-sample-paper-fall-2025-docx) with 100% free high-speed downloads and zero registration requirements.

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

This document covers Full Course Curriculum 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

Sample Paper
 FINALTERM  EXAMINATION
Fall 2025
CS402 - Theory of Automata

Student Must Attempt All Given Questions
No question choice is available

Time: 90 min
Marks: 60

Question No: 1      (Marks: 01) - Please choose the correct option

What is “y” in pumping lemma version 1?
    A. It is a non-null string                                                     (from lec no. 26 and page no.73)
    B. It is a null-able string
    C. It is a non-null string with initial state
    D. It is a null-able string with initial state

Reason:
In Pumping Lemma (Version 1 for Regular Languages), the string is divided as:
w = xyz
with these conditions:
    • ∣y∣> 0 → y must be non-empty (non-null)
    • ∣xy∣≤ p
    • xyiz∈L for all i ≥ 0
There is no condition about the initial state in the definition of y.

Question No: 2      (Marks: 01) - Please choose the correct option

Which of the following is true about Myhill Nerode Theorem.
    A. L partitions ∑ * into distinct classes                            (from lec no. 27 and page no.75)
    B. L partitions ∑ * into same classes
    C. L partitions ∑ * into distinct functions
    D. L partitions ∑ * into same functions

Question No: 3      (Marks: 01) - Please choose the correct option

Using De-Morgan's law for sets, which of the following is correct for L1 and L2
    A. (L1 c ∪ L2 c ) c = (L1 c ) c ∩ (L2 c ) c                      (from lec no. 24 and page no.67)
    B. (L1 c ∪ L2 c ) = (L1 c ) c ∩ (L2 c ) c
    C. (L1 c ∪ L2 c ) c = (L1 c ) ∩ (L2 c )
    D. (L1 ∪ L2 ) c = (L1 c ) c ∩ (L2 c ) c

Reason

Question No: 4      (Marks: 01) - Please choose the correct option
What is the minimum number of states an FA must have to recognize a language L if there are n distinguishable strings in Σ*?
    A. Less than n states
    B. Exactly n states
    C. More than n states
    D. At least n states                                       (from lec no. 19 and page no.53)

Reason

Number of states in minimal FA = number of distinguishable strings (equivalence classes)

Question No: 5      (Marks: 01) - Please choose the correct option

Which of the following machine do not have an ability to accept a Language?
    A. Moore machine
    B. Finite automata
    C. Non-deterministic Finite automata
    D. Transition graph

Reason

    • Moore & Mealy → Output machines (do NOT accept languages)
    • DFA & NFA → Language accepting machines

Question No: 6      (Marks: 01) - Please choose the correct option

Which of the following is used to make an incrementing machine?
    A. Moore machine
    B. Mealy machine
    C. Finite automata
    D. Turing machine

Question No: 7      (Marks: 01) - Please choose the correct option

What is the 1's complement of 10101100?
    A. 10101000
    B. 00101000
    C. 01101110
    D. 01010011

Question No: 8      (Marks: 01) - Please choose the correct option

What is the purpose of an incrementing machine?
    A. Addition of binary numbers
    B. Subtraction of binary numbers
    C. Multiplication of binary numbers
    D. Division of binary numbers

Question No: 9      (Marks: 01) - Please choose the correct option

What can be built using a complementing machine and an incrementing machine?
    A. Addition of binary numbers
    B. Subtraction of binary numbers
    C. Multiplication of binary numbers
    D. Division of binary numbers
Question No: 10      (Marks: 01) - Please choose the correct option
 Moore and Mealy machines are said to be equivalent for an input string if:
    A. They print the same output string
    B. They have the different output string
    C. They have the same transition table
    D. They have the same transition diagram
Question No: 11      (Marks: 01) - Please choose the correct option

What happens to the output character of a state if there is no incoming transition at that state in a Mealy machine?
    A. It is ignored
    B. It is printed
    C. It is converted to a Moore machine
    D. It is converted to a loop

Question No: 12      (Marks: 01) - Please choose the correct option
 Which of the following is true about non regular language?
    A. A language that can be expressed by a regular expression
    B. A language that cannot be expressed by any regular expression
    C. A language that can only be expressed by a finite automaton
    D. A language that can only be expressed by a Mealy machine

Question No: 13      (Marks: 01) - Please choose the correct option

What is the purpose of Pumping Lemma?
    A. To prove that a language is non regular
    B. To prove that a language is regular
    C. To prove that a language is finite regular
    D. To prove that a language is infinite regular

Question No: 14      (Marks: 01) - Please choose the correct option

Which of the following language is regular?
    A.  a(a+b)*b
    B. anbn
    C. anbncn
    D. anbncndn

Question No: 15      (Marks: 01) - Please choose the correct option

If a problem have no decision procedure, then that problem is called ________ problem.
    A. Decidable
    B. Undecidable
    C. Regular
    D. Infinite

Question No: 16      (Marks: 01) - Please choose the correct option

If X is a regular language, and Y is any language (regular/non-regular), then Pref(Y in X) is a _________ language.
    A. Non defined
    B. Non-regular
    C. regular
    D. non-existing

Question No: 17      (Marks: 01) - Please choose the correct option

To test whether FA accepts any word, we have to test at least one word of length that is _________ to its total number of states. If one word will be accepted, then FA accepts a word.
    A. less than
    B. greater than
    C. equal to
    D. not equal to

Question No: 18      (Marks: 01) - Please choose the correct option

Consider an FA having X states and a word w. If the FA accepts a word w, such that:
X ≤ length (w) < 2X, then FA accepts ___________ language.
    A. Finite regular
    B. Finite non-regular
    C. Infinite non-regular
    D. Infinite regular

Question No: 19      (Marks: 01) - Please choose the correct option

More CS402 files

All CS402 files · Midterm Prep 2026 · MCQs Bank