CS402 Midterm MCQS Solved With References By Moaaz.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 compiled by Moaaz Siddhu) 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
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Compiled by
Moaaz Siddhu
Tags
MCQ, SOLVED, 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 Midterm MCQS Solved With References By Moaaz.pdf for free?

You can preview and download "CS402 Midterm MCQS Solved With References By Moaaz.pdf" (CS402 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs402-midterm-mcqs-solved-with-references-by-moaaz-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

                               CS402- Theory of Automata                                Dec 03,2012
                                               Solved MCQS
                                            From Midterm Papers
    MC100401285           Moaaz.pk@gmail.com             Mc100401285@vu.edu.pk              PSMD01

                                        MIDTERM EXAMINATION
                                               Spring 2010
                                        CS402- Theory of Automata

Question No: 1 ( Marks: 1 ) - Please choose one
Σ={a,Aa,Abb}, then string aAaAbbAa has ________ length.
   ► One
   ► Two
   ► Three
                                                Virtual Study Solutions
   ► Four       (Page 4)                 www.virtualstudysolutions.blogspot.com
Question No: 2 ( Marks: 1 ) - Please choose one
Languages generated by kleene star are always ______________.
   ► Finite
   ► Infinite      (Page 7)
   ► Sometimes finite & sometimes infinite
   ► None of the these

Question No: 3 ( Marks: 1 ) - Please choose one
Let S = {aa, bb} be a set of strings then s* will have
    ►Λ        (Page 7)
    ► abba
    ► aabbbaa
    ► bbaab

Question No: 4 ( Marks: 1 ) - Please choose one
If r1 = (aa + bb) and r2 = ( a + b) then the language (aa + bb)* will be generated by
     ► (r1)(r2)
     ► (r1 + r2)
     ► (r2)*
     ► (r1)*       (Page 10)

                                                                                              1

Question No: 5       ( Marks: 1 )               - Please choose one
                     a, b

  x                                                y

                         a, b

Above given FA can be represented by
   ► ((a+ b) (a + b))*    (Page 13)
   ► (a + b)(a + b)*
   ► (a + b)(a + b)
   ► (a + b)*(a + b)*

Question No: 6       ( Marks: 1 ) - Please choose one
                                          a,b

               a,b
  1                                      2+

Above given FA accepts ___________ strings defined over Σ={a , b}
   ► All (Page 15)
   ► Some
   ► All but not null
   ► None of these

Question No: 7 ( Marks: 1 ) - Please choose one
If a language can be expressed through FA, then it can also be expressed through TG.
      ► True      (Page 25)
      ► False
      ► Depends on language
      ► None of the above

Question No: 8       ( Marks: 1 )               - Please choose one
  .b                                      a                          a
                              b
           b                                            a
  2-                     4+               1-                    3+

                     b                                      a
                                  a                                      b

                         5            a                         6            b

Above given TG has ____________________ RE.
   ► a+b+a(a + b)*a + b(a + b)*b
   ► a(a + b)*a + b(a + b)*b
   ► both are given
   ► none of the given

                                                                                       2

Question No: 9     ( Marks: 1 )           - Please choose one
  .b                                       a                         a
                              b
              b                                      a
  2-                     4+                1-                   3+

                     b                                      a
                                  a                                      b

                         5            a                         6            b

Above given FA accepts the language in which strings
   ► Begins with and ends in same letter
   ► Begins with and ends in different letter
   ► Has length more than 2
   ► None of the given

Question No: 10 ( Marks: 1 ) - Please choose one
GTG can have _______________ final state.
   ►0
   ►1
   ► More than 1
   ► All of the given   Click here for detail

Question No: 11 ( Marks: 1 ) - Please choose one
In GTG, if a state has more than one incoming transitions from a state. Then all those incoming transitions can
be reduced to one transition using _____________ sign

       ►-
       ►+    (Page 27)
       ►*
       ► None of the given

Question No: 12 ( Marks: 1 ) - Please choose one
“One language can be expressed by more than one NFA”. This statement is ______________.

       ► False
       ► True    (Page 41)
       ► Depends on NFA
       ► None of the given

                                                                                                   3

Question No: 13                ( Marks: 1 ) - Please choose one
                  aa+bb                           aa+bb
                                     ab+ba
  3-         Λ      1                              2
                                     ab+ba
                       Λ

              4+
If above given TG is drawn like

                   aa+bb

  3           Λ            1             X
  -
                           Λ

               4
               + written in place of X.
Then what will be
      ► (ab+ba)(aa+bb)(ba+ab)
      ► (ab+ba)(aa+bb)(ab+ba)
      ► (ab+ba)(aa+bb)*(ab+ba)                         (Page 31)
      ► (ab+ba)(aa+bb)(ab+ba)*

Question No: 14                ( Marks: 1 )       - Please choose one
                       2         ^
                                             4+
         a

                                     a
 1-                a                         a

       ^, b
                    3            b                a
                                             5

Above given structure is an ________.
   ► FA
   ► NFA
   ► NFA -^ (Page 42)
   ► TG

                                                                        4

Question No: 15 ( Marks: 1 ) - Please choose one
One FA has 3 states and 2 letters in the alphabet. Then FA will have ___________ number of transitions in the
diagram
    ►4
    ►5
    ►7
    ► 6 (Page 14)

More CS402 files

All CS402 files · Midterm Prep 2026 · MCQs Bank