CS402 Grand Quiz Mega file Made by Ans Mughal.files preparation Group.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
Tags
GRAND-QUIZ

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 Grand Quiz Mega file Made by Ans Mughal.files preparation Group.pdf for free?

You can preview and download "CS402 Grand Quiz Mega file Made by Ans Mughal.files preparation Group.pdf" (CS402 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-grand-quiz-mega-file-made-by-ans-mughal-files-preparation-group-pdf-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 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

      CS402 Grand Quiz (Screenshots) Mega File

 1. The minimum length of the strings(except null string) of a language that

      starts and ends in the same letter will be:

 1

 2

 3

 4

 2. If S = {ab,bb} then S* will not contain ________.

 abbbab

 bbba

 bbbbab

 ababbb

 3. Which of the following machine has only one initial state and no final

      state?

 Moore machine

 Finite state machine

 Deterministic finite state machine

 Non deterministic finite state machine

 4. Which of the following diagram is very rigid in order to express any

    language?

 TG

 NFA^

 GTG

 FA

 5. If S = {a}, then S+ will be _____

    {a, aaa, aaaa, aaaaa,…}

    {a, aa, aaa, aaaa,…}

    {a, aaa, aaaaa, aaaaaaa,…}

    {aa, aaaa, aaaaaa, aaaaaaaa,…}

 6. Let L be the language of all strings. defined over ∑ = {0,1}. ending in 111.

    Which of the following strings are indistinguishable with respect to L with

    z being 11?

    111, 101

    100, 101

    110, 101

    010, 101

 7. Melay machine can have ------- final states.

   Zero

   One

   More than one but finite

   More than one but infinite

 8. In Moore machine, output is produced over the change of:

   Transitions

   States

   Transitions and states

   None of the mentioned

 9. Given the language L = {ab, aa, baa}, which of the following strings are in

    L*?

  1) abaabaaabaa

  2) aaaaaaaaa

  3) baaaaabaaaab

  4) baaaaabaa

 1, 2 and 3

 2, 3 and 4

 1, 2 and 4

 1, 3 and 4

 10.Let L be the language of all strings, defined over ∑ = {0,1}, ending in 10.

    Which of the following strings are distinguishable with respect to L with z

    being 0?

   111, 101

   001, 101

   111, 111

   010, 101

 11.Let’s 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)

   (xx+yy)+(x+y)*

   (xx+yy)+(x+y)

   ((xx+yy)+(x+y))*

 12.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

  one transition at certain state

  more than one transitions at certain state

  none of the given options

13.The state where there is no way to leave after entry called _____

  Davey John locker

  initial state

  final state

  non-final state

14.Which one of the following word is not accepted by the given regular

   expression?

  aaabab

  aaaababb

  abbaab

  aabbabb

15.The minimum length of the strings(except null string) of a language that

   starts and ends in different letters will be:

  1

  2

   3

   4

 16.According to theory of automata there are _____ types of languages

   One

   Two

   Three

   Four

 17.Which one of the following word is not accepted by the given regular

    expression?

  (a+b)*(aaa+bbb)(a+b)*

 ababaaaab

 bababbbba

 baabaabba

 abbaaabba

 18.Regular languages are closed under the following operations.

   Union only

   Concatenation, Closure only

   Union, Concatenation and Closure

   Regular languages are not closed under any operation.

 19.If S = {x}, then S* will be ________.

  {^,x,xxx,xxxx,xxxxx,…}

  {^,x,xx,xxx,xxxx,…}

  {^,x,xxx,xxxxx,xxxxxxx,…}

  {^,xx,xxxx,xxxxxx,xxxxxxxx,…}

20.There can be more than _____ FA for a certain language but for _____ FA

   there is only one language associated with it:

  one, one

  one, two

  two, three

  two, one

21.There is one compulsion that each state must have an on outgoing edge for

   every input variable in:

  Finite Automata

  Transition Graph

  Both Finite Automata and Transition Graph

  Transition Table

22.FA is also called

   TG

   GTG

   NFA

   DFA

 23.In the context of make NFA for the concatenation of FA1 and FA2 (Both

      FAs accepting null string), which of the following option is correct?

   Final states in both FAs

   Initial states in both FAs

   FA2 having initial state only

   FA2 having final state only

 24.If r1 and r2 are regular expression then (r1 * r2) is _______

   FA

   TG

   GTG

   RE

 25.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

 2

 3

 4

 26.Keeping in view the language of all strings ending with ‘a’, for which

      symbol we will take a loop on the final state of its transition diagram?

   a

   b

   c

   d

 27.Which of the following statements is true about NFA with Null String?

   Infinite states

   Infinite set of letters

   Infinite set of transitions

   Transition of null string is allowed at any stage

 28.Introducing new start state in case of multiple start states is the step no.

      ____ of proving Kleene’s theorem part ||.

   1

   2

   3

   4

29. Which of the following diagrams expresses languages more simply?

  FA

  NFA

  TG

  GTG

30.The language of all strings defined over alphabet set = {a, b} that does not

   end with ‘a’ actually ends with:

  b

  b and ^

  ^

  ^ and a

31. Let L be the language of all strings, defined over ∑ = {0,1}, ending in 10.

   Which of the following strings are indistinguishable with respect to L with

   z being 0?

  100, 101

  111, 101

  110, 101

  010, 101

32. Let S = {aa, bb}, then S* will have the ____ string.

     ^

     abba

     aabbbaa

     bbaab

33. In NFA having no transition at certain state, FA can be built by

   introducing:

     Empty state

     Combination of states

     Initial state

     Final state

34. Formal is also known as _____

     Syntactic language

     Semantic language

     Informal language

     None of these

More CS402 files

All CS402 files · Midterm Prep 2026 · MCQs Bank