CS402_FINAL1.doc
Verified academic study resource for CS402 (Theory of Automata) under the Computer Science at Virtual University of Pakistan. This DOC 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
- DOC
- Type
- Final-Term
- Coverage
- Final-Term Exam Scope (Lectures 23 to 45)
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
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- 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_FINAL1.doc for free?
You can preview and download "CS402_FINAL1.doc" (CS402 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-final1-doc-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
Q1
Let s be a set of strings then (s+)* is equal to___
(a) S+
(b) S*
(c) (S+)+
(d) None of these
Q2
In TG there may exist more than one path for certain string.
(a) True
(b) False
(c) Depends on the language
(d) None of these
Q3
Pumping Lemma II says that length(x) + length(y) should be
(a) Less than number of states
(b) Less than or equal to number of states
(c) Greater than number of states
(d) Greater than or equal to number of states
Q4
Consider the following sequence.
(a) The PDA must not begin with the sequence
(b) The PDA may begin with the sequence
(c) The PDA must begin with the sequence
(d) The PDA may not begin with the sequence
Q5
For every CFGs we can make corresponding:
(a) FA
(b) TG
(c) PDA
(d) Regular Grammar
Q6
A Total Language Tree has
(a) All languages over ∑
(b) All strings over ∑
(c) All words of all languages over ∑
(d) All words of one language over ∑
Q7
A regular language:
(a) Must be finite
(b) Must be infinite
(c) Can be finite or infinite
(d) Must be finite and cannot be infinite
Q8
If a language can be expressed by a regular expression, then its complement cannot be expressed by a regular expression. This statement is:
(a) True
(b) False
(c) Depends on language
(d) None of the given optios
Q9
(a) Begins and ends with different letters
(b) Begins and ends with same letters
(c) Have length greater than 1
(d) None of these
Q10
(a) Ending in a
(b) Starting with a
(c) Ending & starting with same letter.
(d) All of these
Q11
Let A = {0, 1}. The number of possible strings of length ‘n’ that can be formed by the elements of the set A is
(a) n!
(b) n2
(c) nm
(d) 2n
Q12
Which of the following are regular?
(a) String of odd number of zeroes
(b) Set of all palindromes made up of 0’s and 1’s
(c) String of 0’s whose length is a prime number
(d) All of these
Q13
Which of the following pairs of regular expressions are not equivalent?
(a) (ab)* and a*b*
(b) x(xx)* and (xx)*x
(c) x+ and x*x+
(d) All of these
Q14
If L is a regular language then :
(a) It must have some Regular expression
(b) it must have an equivalent Non-regular language
(c) It should be possible to represent this language through Moore Machine
(d) All of these.
Q15
Choose the incorrect (FALSE) statement
(a) A Mealy machine generates no language as such
(b) All of these
(c) A Mealy machine has no terminal state
(d) For a given input string, length of the output string generated by a Moore machine is not more than the length of the output string generated by that of a Mealy machine
Q16
Pumping lemma is generally used for proving
(a) A given grammar is infinite
(b) A given grammar is not regular
(c) Whether two given regular expressions are equivalent
(d) None of these
Q17
There exist more than one derivations of a certain word in ambiguous grammer.
(a) True
(b) False
(c) Depend on language
(d) None of the give option
Q18
Regular languages are closed under Union and Concatenation.
(a) True
(b) False
(c) Depends on language
(d) Depends on alphabets of language.
Q19
Choose the incorrect statement:
(a) (a+b)*aa(a+b)* generates Regular language.
(b) The set of B, consisting of all strings made up of only a’s and b’s having equal number of a’s and b’s defines a regular language
(c) Every language that can be expressed by FA can also be expressed by RE
(d) None of these
Q20
We can also represent an FA using different states e.g. Accept state, Reject state, Read State etc.
This _____________ state behaves as final state of an FA.
(a) Accept
(b) Reject
(c) Pop
(d) Push
Q21
CFG given below
S bS|Sb|aa
represents language __________
(a) b*aa
(b) aab*
(c) b*aab*
(d) b*(aa)*b*
Q22
Converting the given "CFG in CNF", is the first rule of _____
(a) CNK algorithm
(b) CYK algorithm
(c) CKY algorithm
(d) KYC algorithm
Q23
Can a turing machine contain just a single state?
(a) Yes
(b) Yes when the reject state is not compulsory
(c) No
(d) Yes but only in the limited situations.
Q24
RE for the above given FA is __________________.
(a) (0+1)* (00) (0+1)* +(0+1)*(11) (0+1)* OR (0+1)* (00 + 11) (0+1)*
(b) (0+1)* (00)* (0+1)* +(0+1)*(11)*(0+1)*
(c) (0+1) (00 + 11) (0+1)
(d) (0+1)* (00 + 11)* (0+1)*
Q25
In drawing FA3 (which is equal to FA1 + FA2), a state will be declared final if
(a) It corresponds to any of the final state in FA1 and FA2
(b) It corresponds to final states of both FA1 and FA2
(c) Depends on language
(d) None of the given
Q26
If the given CFG contains a production of the form S, then __________
(a) The corresponding CFL is not empty.
(b) The corresponding CFL is empty.
(c) The corresponding CFL is not empty if the language is regular
(d) The corresponding CFL is empty and non regular.
Q27
To determine whether a string is generated by the given CFG __________
(a) CYK algorithm is used
(b) CIK algorithm is used
(c) CNK algorithm is used
(d) CNM algorithm is used
Q28
CYK algorithm was invented by John Cocke and later was published by ____
(a) Talik Khon and Daniel H
(b) Tandao Kasami and Daniel H
(c) Tandao Dagger and Daniel H
(d) None of these
Q29
Above given FA is drawn using
(a) Graph structure
(b) Tree structure
(c) It is not a Finite Automaton
(d) None of these
Q30
Which of the following statement is correct?
(a) The length of output string is greater than length of input string in moore machine.
(b) The length of output string is greater than length of input string in mealy machine.
(c) The length of output string is equal to length of input string in moore machine.
(d) The length of output string is less than length of input string in mealy machine.
Q31
From three strings given below, identify palindrom: [1]
Λ , abb , babb.
Q32More CS402 files
- All Subjects Mid & Final 25000 Pdf Files.pdf (PDF · Final-Term)
- CS402 - Final Term Solved Mcqs with references 2013 Paper By (PDF · Final-Term)
- CS402 - Final Term Solved Mcqs with references By Moaaz.pdf (PDF · Final-Term)
- CS402 - Final Term Solved Subjective with references By Moaa (PDF · Final-Term)
- CS402 - Final Term Solved Subjective with references By Moaa (PDF · Final-Term)
- CS402 Current Final Term Papers 2018 To 2020.pdf (PDF · Final-Term)
- CS402 Current Solved Subjective Final Term By JUNAID.pdf (PDF · Final-Term)
- CS402 Current Solved Subjective Final Term By JUNAID.pdf (PDF · Final-Term)