CS402_01_MID_Spring2009-1 By study with hamza 25 (subscribe).pdf
Verified academic study resource for CS402 (Theory of Automata) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 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
- Type
- Study Resource
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS402.
What this file covers — CS402 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
Frequently asked questions
Where can I download CS402_01_MID_Spring2009-1 By study with hamza 25 (subscribe).pdf for free?
You can preview and download "CS402_01_MID_Spring2009-1 By study with hamza 25 (subscribe).pdf" (CS402 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-01-mid-spring2009-1-by-study-with-hamza-25-subscribe-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 Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), 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
www.fpair.com
MIDTERM EXAMINATION
Spring 2009
CS402- Theory of Automata (Session - 1)
Question No: 1 ( Marks: 1 ) - Please choose one
Alphabet S = {a,bc,cc} has _______ number of letters.
One
Two
Three
Four
Question No: 2 ( Marks: 1 ) - Please choose one
In which of the following language Rev(s)=s
EQUAL
INTEGER
PALINDROME
FACTORIAL
Question No: 3 ( Marks: 1 ) - Please choose one
If S = {ab, bb}, then S* will not contain
abbbab
bbba
bbbbab
ababbb
Question No: 4 ( Marks: 1 ) - Please choose one
www.fpair.com
www.fpair.com
a,b
1– 2+
a,b
Above given FA generates the language having strings of _________
ODD length
EVEN length
Equal number of a’s and b’s
None of these
Question No: 5 ( Marks: 1 ) - Please choose one
a+b a+b
aa+bb
- +
Above given GTG accepts the language in which strings
Contains double a or double b
Contains both a and double b
Depends on the alphabet
None of these
Question No: 6 ( Marks: 1 ) - Please choose one
aa+bb aa+bb
ab+ba
3- 1 2
ab+ba
4+
If above given TG is drawn like
www.fpair.com
www.fpair.com
aa+bb
3 1 X
-
4
Then what will +
be written in place of X.
(ab+ba)(aa+bb)(ba+ab)
(ab+ba)(aa+bb)(ab+ba)
(ab+ba)(aa+bb)*(ab+ba)
(ab+ba)(aa+bb)(ab+ba)*
Question No: 7 ( Marks: 1 ) - Please choose one
FA3 expresses r1r2. Then initial state of FA3 will consist of
Initial state of FA2
Initial state of FA1
Initial states of both FA1 & FA2
Depends on FA’s
Question No: 8 ( Marks: 1 ) - Please choose one
FA3 expresses r1r2. Then there will be at least one final state of FA3 that consist
of final state of FA1 and initial state of FA2.
True
False
Depends on language
None of these
www.fpair.com
www.fpair.com
Question No: 9 ( Marks: 1 ) - Please choose one
Two machines are said to be equivalent if they print the same output string when
the different input string is run on them
True
False
Depends on language
May be or may not be
Question No: 10 ( Marks: 1 ) - Please choose one
Running the string abbabbba on this Moore machine. The outputs will
be________
q1/0 b q2/1
a a b
q0/1 a
b a
1
b q3/1
b
a
2
q3/0
101111010
01111010
01011110
01010101
Question No: 11 ( Marks: 1 ) - Please choose one
www.fpair.com
www.fpair.com
2 a
4
a
a
a,b a,b
1– 6+
b
b
a,b a,b
3 b 5 aaa,bbb
- +
Above given TG’s are ______________.
None of these
Equivalent
Non-equivalent
TG’s are not valid
Question No: 12 ( Marks: 1 ) - Please choose one
TG can have more than one initial state.
True
False
Depends on alphabets
None of these
Question No: 13 ( Marks: 1 ) - Please choose one
a
a
–– +
a b
b
b
Above given FA accepts null string.
www.fpair.com
www.fpair.com
True
False
FA is not valid
None of these
Question No: 14 ( Marks: 1 ) - Please choose one
If in an NFA, is allowed to be a label of an edge then that NFA is called _________.
Will not remain NFA
NFA with
NFA with null string
Either "NFA with null string" OR "NFA with "
Question No: 15 ( Marks: 1 ) - Please choose one
One FA has n states and m letters in the alphabet. Then FA will have _____
number of transitions in the diagram.
(n)+(m)
(m)(n) OR (n)(m)
None of the given options
(m)-(n)
Question No: 16 ( Marks: 1 ) - Please choose one
(a+b)*a(a+b)*b(a+b)* is the RE of language defined over S={a,b} having at least one a
and one b
True
False
Such a language does not exist
None of the given options
www.fpair.com
www.fpair.com
Question No: 17 ( Marks: 1 )
Is the following statement trure?
A regular language can not be infinite.
Question No: 18 ( Marks: 1 )
Can you say that for a certain string there may be more than one paths in a TG?
Question No: 19 ( Marks: 2 )
If a language can be accepted by an FA then it can be accepted by a TG as well.
What are the other two statements of kleenes’s theorem?
Question No: 20 ( Marks: 3 )
More CS402 files
- (cs402).docx (DOC · Study Resource)
- CS402 BY S KHAN ACADEMY-1.pdf (PDF · Study Resource)
- CS402-FAQ-AutomataTheory.pdf (PDF · Study Resource)
- CS402-MID-fall-2010-08-12-2010.pdf (PDF · Study Resource)
- CS402.Sol By F . Files preparation. Group.pdf (PDF · Study Resource)
- CS402_MID_SPRING2007_S4.pdf (PDF · Study Resource)
- CS402_Quiz_2026-01-05.pdf (PDF · Study Resource)
- cs402 .pdf (PDF · Study Resource)