CS402 Quiz-3 & 4 by Attiq Kundi-updated on 30-01-2023.pdf

Verified academic study resource for CS402 (Theory of Automata) under the Computer Science at Virtual University of Pakistan. This PDF document (Live Quiz Dumps & Solved Objective Bank) covers Quizzes & Objective Exam Scope 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
PDF
Type
Quiz
Coverage
Quizzes & Objective Exam Scope

Quiz questions often repeat with modified parameter values in both Midterm and Final exams. Practice with our 45-second timed simulator to master exam pacing.

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 Quiz-3 & 4 by Attiq Kundi-updated on 30-01-2023.pdf for free?

You can preview and download "CS402 Quiz-3 & 4 by Attiq Kundi-updated on 30-01-2023.pdf" (CS402 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-quiz-3-4-by-attiq-kundi-updated-on-30-01-2023-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 Quizzes & Objective Exam Scope 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

                              CS-402
                            Final Term
                             Quiz-3,4
                          by Attiq Kundi
            SUBSCRIBE “Knowledge For Us” ON YOU TUBE
            To get more 100 % CORRECT MCSQ PDF files

                                          CS402

Up Dated on 30-01-2023

If the intersection of two regular languages is regular then the complement of the
intersection of these two languages is __________.

Regular

The language of all strings partition ∑* into ___________ class(es).

Two

The language of all strings not beginning with ‘b’ partitions ∑* into ___________distinct
classes.

Two

If Q = {xx, xyxxxy }, and R = {xyxyxyxxyy, xyxyyyxx} then Pref( Q in R) = ____________

xyxyyy

A language ending with ‘b’ partitions ∑* into ___________distinct classes.

Three

If R is regular language and Q is any language (regular/ non-regular), then Pref( _______in
_______) is regular.

Q,R

The reverse of the string sbfsbb over { sb, f, b }

Bsbfsb

The basic approach of Myhill Nerode theorem is similar to the concept of:

concatenation of FAs

If there is no final state of two FAs then their ______ also have no _____ state

union, final

If an FA has N states then it must accept the word of length

N

For a machine with N number of sta., the total number of strings to be tested, defined over
an alphabet of m letters, is

mN +mN+1+ mN,-2 ,m2N-1

Which of the following is not a true theorem?

Pseudo theorem

The language "PRIME” is an example of language.

non regular

The product of two regular languages is

Regular

One language can have _______ CFG(s).

More than one

Which of the following is a non-regular language?

Prime

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 no

In large FA with thousands of states and millions of directed edges, without an effective
procedure it is ______ to find a path from initial to final state.

Impossible

A problem that has decision procedure is called problem.

Decidable problem

Which one of the following languages is a non regular language?

Palindrome

Using Myhill Nerode theorem we partition sigma star into distinct

Classes

In pumping lemma theorem (x y"n z) the range of n is

n=1. 2, 3, 4.......

The values of input (say a & b) do not remain same in one cycle due to

NOT gate

The operators like (*" +) in the parse tree are considered as

Terminals

Even-Even language partitions ∑* into _________ distinct classes.

Four

The strings or words which do not belong to a language are called _________ of that
language.

Complement

The production S —> SS lalbl^ can be expressed by Regular expression

(a+b)+

if L1 and L2 are two regular languages. then they expressed by FAs.

can be

The grammatical rules which involve meaning of words are called

Semantics

Set of all palindromes over (a,b) is:

Regular and finite

The language of all strings not beginning with partitions “b" into distinct classes.

Two

The CFG is said to be ambiguous if there exist at least one word of its language that can be
generated by production trees.

More than one

The CFG S —> aSb|abl^ is used to express the language

Palindrome

A non regular language can be represented by

None of the given options

In large FA with thousands of states and millions of directed edges, without an effective
procedure it is ________ to find a path from initial to final state.

Impossible

In polish notation, (o-o-o) is the abbreviation of _________.

Operator - Operand – Operand

If an FA has N states then it must accept the word of length

N

Using Myhill Nerode theorem we partition sigma star into distinct __________.

classes

If a language is regular it must generate ____________ number of distinct classes.

finite

If L1 and L2 are regular languages then which statement is NOT true?

L1/L2 is always regular

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 no

A problem that has decision procedure is called _________ problem.

decidable

If L1 and L2 are two regular languages, then they _______ expressed by FAs.

can be

A language that can be expressed by RE, is said to be a _______ language.

regular

The values of input (say a & b) do not remain same in one cycle due to

NOT gate

Prime is a ______________ language.

non-regular

If an effectively solvable problem has answer in YES or NO, then the solution is called
_________.

decision procedure

To write the expression from the tree, it is required to traverse from ___________.

Left side of the tree

If there is no final state of two FAs then their ______ also have no _____ state

union,final

In CFG, symbols that cannot be replaced by anything are called __________.

terminals

Finite Automaton (FA) must have __________ number of states while a language has
_________ words.

finite, infinite

The language “PRIME” is an example of ________ language.

non regular

Using Myhill Nerode theorem we partition sigma star into distinct __________.

classes

Even-Even language partitions ∑* into ___________ distinct classes.

four

What will be the 9’s complement of the number 872?

127

In pref(Q in R), Q is _______ to/than R.

Not equal

There is at least one production in CFG that has one _________ on its left side.

Non terminal

In pumping lemma theorem (x y^n z) the range of n is

n=1, 2, 3, 4……….

A language ending with ‘b’ partitions ∑* into ___________distinct classes.

three

The operators like (* , +) in the parse tree are considered as ________.

terminals

For a machine with N number of states, the total number of strings to be tested, defined
over an alphabet of m letters, is _____________.

mN +mN+1+ mN+2 +… +m2N-1

In a CFG, the non-terminals are denoted by _________.

Capital letters

If an FA accepts a word then there must exist a path from __________.

Incase of Myhill Nerode theorem, if a language L partitions sigma star into distinct classes

More CS402 files

All CS402 files · Midterm Prep 2026 · MCQs Bank