CS402 MID MCQS BY ASFAND YARR.docx

Verified academic study resource for CS402 (Theory of Automata) under the Computer Science at Virtual University of Pakistan. This DOC 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
DOC
Type
MCQ Bank
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
MCQ, MIDTERM

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

  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)

Frequently asked questions

Where can I download CS402 MID MCQS BY ASFAND YARR.docx for free?

You can preview and download "CS402 MID MCQS BY ASFAND YARR.docx" (CS402 DOC, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-mid-mcqs-by-asfand-yarr-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 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

ALL CISCO ASSIGNMENT,MATH ASSIGNMENTS,OR ANY OTHER ASSIGNMENT ,QUIZEZ,GDB,LMS HANDLING,SAB PAID AVAILABLE HAI,CONTACT: 03065538955
CS402 MID MCQS FILES BY ASFAND YARRTop of Form
SOURCE: ALL OVER THE INTERNET
MIDTERM SOLVED MCQS
NOTE: SOME MCQS WERE NOT CONFRIMED THAT’S WHY THEY ARE LEFT UNMARKED.
VU ALL FILES: VUALLFILESPASTPAPERMID&FINALQUIZ
HOW TO DOWNLOAF VU ALL FILES: HOW TO DOWNLOAD ALL FILES
VU FILESHARING GROUP: FILE SHARING GROUP
VU QUIZ GROUP: QUIZ GROUP
THIS FILE WILL BE UPDATED TIME TO TIME. IF U WANT UPDATED FILES THEN JOIN GROUP ABOVE MENTIONED

Sr.No
MCQS
ANSWER
1.
Which of the following steps replaces multiple incoming transition edges with a
single one proving Kleene’s theorem part II?
3
2.
Let FA1 accepts many strings and FA2 accepts no strings, then FA1+FA2 will be
equal to:
FA1
3.
Let L be the language of all strings, defined over ∑ =(0,1), ending in 10. Which of
the following strings are indistinguishable w.r.t L with z being 0?
(111,101 )or (010,101)
4.
If r1=(aa+bb)and r2=(a+b) then the language (aa+bb)(a+b) will bhe generated
by
(r)(r2)
5.
Introducing a new start state in the case of multiple states is step no.	of
proving Kleen’s theorem part II.
1
6.
The language having even numbers of a’s and even number of b’s defined over
S={a,b} is called
EVEN-EVEN
7.
In NFA having no transition at a certain state, FA can be built by introducing :
Empty state
8.
For every three regular expression R, S, and T. the language denoted by R(S U T)
and (RS)U(RT) are the
Same
9.
Which of the following string belongs to the language of the regular expression
(aa*b)?
aabaab
10.
If L1’ and L2’ are regular languages, then L1, L2 will be
Regular
11.
Suppose the language L1 has 2 L2 has 2 states. If we have a machine M that
accepts L1∩L2. Then the total number of states in M is equal to
4
12.
If L is a regular language, then (L’)’ U L will be:
L
13.
In Mealy machine, the output depends on
Present state and Present
output
14.
Strings x,y,z belongs to ∑* such that xz ∈ L but yz ∉ L where L ⊆ ∑* are:
Distinguishable
15.
Mealy machine to increase the output string in magnitude by 1 is called:
Incrementing machine
16.
Suppose we have FA3 (which is to FA1+FA2) then the final state of FA3 will be
declared final if:
It corresponds to any of the
final states of FA1 or FA2
17.
If we have the finite language and the number of states in the FA is n then the maximum number of letter in each word of the language that will be accepted
by the given FA will be :
n+1
18.
Which of the following state is introduced while developing NFA for the closure
of FA?
An initial state which should
be final as well
19.
Length of EVEN-EVEN language is
Even
20.
If FA1 corresponds to (a+b)* then FA1 must accept	strings/strings.
Every
21.
In FA, initial stage is represented by :
Drawing an arrowhead
before the state
22.
Which one of the following machine is represented as a pictorial representation with states and directed edges labeled by an input letter along with an output
character?
Mealy machine
23.
Length of machine “AbBAbcd“ defined over ∑=(Ab,B,c,d) is	.
Five
24.
An FA is a collection of:
Finite states , finite transition
and finite input letter
25.
Given the language L={ab, aa, baa}, which of the following strings are in L*?
    i) abaabaaabaa
    ii) aaaabaaaa
    iii) baaaaabaaaab
    iv) baaaaabaa
1,2 & 4
26.
In the context to make NFA for the concentration of FA1 and FA2 (FA1 accepting
null string) which of the following option is correct?
Final states in both FAs
27.
Every	is a	as well, but the converse may not be true.
FA, TG
28.
NFA with null string has	initial state(s).
One
29.
While finding RE corresponding to a TG, we connect the new start state with the
old start state by	transition.
Null
30.
If S=(x). then S* will be	.
{^,x,xx,xxx,xxxx….}
31.
The minimum length of string (except null string) of a language that starts and
ends in the same letter will be:
1 or 2
32.
If S={ab, bb} , then S* will not contain	.
bbba
33.
Which of the following machine has only one initial state?
Moore machine
34.
Which of the following diagram is very rigid in order to express any language?
FA
35.
Let L be the language of all strings, defined over ∑ =(0,1), ending in 111. Which
of the following strings are indistinguishable w.r.t L with z being 11?
111,101
36.
Mealy machine can have	final states.
Zero
37.
In Moore machine , output is produced over the change of:
States
38.
Lets we have two regular expressions R1 ={xx+yy}and R2={x+y} . Which one of
the following is the correct regular expression for the union of R1 and R2?
(xx+yy)+(x+y)
39.
FA corresponding to an NFA can be built by introducing a state corresponding to
the combination of states, for a letter having
No transition at certain state
40.
The situation there is no way to leave after entry is called
Davey john locker
41.
Which one of the following word is not accepted by the given regular
expression?
Abbaab
42.
According to the theory of automata, there are	types of languages.
Two
43.
Which of the following word is not accepted by the given regular expression?
Baabaabba
44.
Regular languages are closed under the following operations.
Union, Concentration,
Closure
45.
There can be more than	FA for a certain language but for	FA there is
only one language associated with it.
One, one
46.
There is no compulsion that each state must have an on outdoing edge for every
input variable in:
Transition graph
47.
FA is also called	.
DFA
48.
If r1 and r2 are regular expressions then (r1*r2) is
RE
49.
Which of the following is the minimal number of states for a finite automaton
accepting the language of all strings defined over any alphabet set?
1
50.
Keeping view language of all strings ending with ‘a’ for which symbol we will take
a loop on the final state of its transition diagram?
A
51.
Which of the following statements is true about NFA with Null String?
Transition of null string is
allowed in any stage
52.
Which one of the following diagrams expresses languages more simply?
GTG
53.
The language of all strings defined over alphabet set={a,b} that does not end

More CS402 files

All CS402 files · Midterm Prep 2026 · MCQs Bank