MCQ Bank

CS402 — PDF
Is subject ke saare MCQs ek PDF file mein download karne ke liye request karein.
67 result(s)
CS402 Mid Term AI Solved
Q26

(Σ* - L) represent the ___ of a language L.

  • A) Complement
  • B) Kleene's closure
  • C) Union
  • D) intersection
CS402 Mid Term AI Solved
Q27

If we have two transition graphs then their union will be expressed by ___.

  • A) taking a common start state and joining them by two null transitions
  • B) just connecting both start states by null transitions
  • C) connecting final state of first TG to the initial state of second TG
  • D) connecting the final state of first TG to the final state of second TG
CS402 Mid Term AI Solved
Q28

___ and ___ are removed in order to make a CFG in Chomsky Normal Form (CNF).

  • A) Null and nullable productions
  • B) Nullable and unit productions
  • C) Null and unit productions
  • D) String of length 0 and null
CS402 Mid Term AI Solved
Q29

If L1 and L2 are expressed by regular languages then L1 + L2 is also a ___ Language.

  • A) Regular
  • B) Ir-regular
  • C) PDA
  • D) Hybrid
CS402 Mid Term AI Solved
Q31

A read state can have ___ outgoing edge/edges.

  • A) 1
  • B) 2
  • C) 3
  • D) Any number of
CS402 Mid Term AI Solved
Q32

Who did not invent the Turing machine?

  • A) Alan Turing
  • B) A. M. Turing
  • C) Turing
  • D) None of these
CS402 Mid Term AI Solved
Q33

Which statement is true?

  • A) The tape of turing machine is infinite
  • B) The tape of turing machine is finite
  • C) The tape of turing machine is infinite when the language is regular
  • D) The tape of turing machine is finite when the language is nonregular
CS402 Mid Term AI Solved
Q34

Every regular expression can be expressed as CFG but every CFG cannot be expressed as a regular expression. This statement is:

  • A) Depends on the language
  • B) None of the given options
  • C) True
  • D) False
CS402 Mid Term AI Solved
Q35

Consider the language L of strings defined over Σ = {a b} ending in a ___.

  • A) There are finite many classes generated by L so L is regular
  • B) There are infinite many classes generated by L so L is regular
  • C) There are finite many classes generated by L so L is non-regular
  • D) There are infinite many classes generated by L so L is non-regular
CS402 Mid Term AI Solved
Q37

Let A = {0 1}. The number of possible strings of length n that can be formed by the elements of the set A is ___.

  • A) n!
  • B) n^2
  • C) n^m
  • D) 2^n
CS402 Mid Term AI Solved
Q38

Choose the correct statement.

  • A) A Mealy machine generates no language as such
  • B) A Moore machine generates no language as such
  • C) A Mealy machine has no terminal state
  • D) All of these
CS402 Mid Term AI Solved
Q39

TM is more powerful than FSM because ___.

  • A) The tape movement is confined to one direction
  • B) It has no finite state control
  • C) It has the capability to remember arbitrary long sequences of input symbols
  • D) None of these
CS402 Mid Term AI Solved
Q40

Like TG a PDA can also be non-deterministic.

  • A) True
  • B) False
  • C) Only partially
  • D) None of given
CS402 Mid Term AI Solved
Q44

Which of the following is NOT a regular language?

  • A) String of 0's whose length is a perfect square
  • B) Set of all palindromes made up of 0's and 1's
  • C) String of 0's whose length is a prime number
  • D) All of the given options
CS402 Mid Term AI Solved
Q47

Left hand side of a production in CFG consists of:

  • A) One terminal
  • B) More than one terminal
  • C) One non-terminal
  • D) Terminals and non-terminals
CS402 Mid Term AI Solved
Q48

PDA is only used to represent a regular language.

  • A) True
  • B) False
  • C) Only CFL
  • D) None of given
CS402 Mid Term AI Solved
Q50

We can find a CFG corresponding to a DFA.

  • A) True
  • B) False
  • C) Only NFA
  • D) None of given
CS402 Mid Term AI Solved
Q52

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

  • A) True
  • B) False
  • C) Only sometimes
  • D) None of given
CS402 Mid Term AI Solved
Q53

Syntax tree or Generation tree or Derivation tree are same tree.

  • A) True
  • B) False
  • C) Only partially
  • D) None of given
CS402 Mid Term AI Solved
Q55

The production of the form non-terminal to one non-terminal is called unit production.

  • A) True
  • B) False
  • C) Only sometimes
  • D) None of given
© 2026 VUCTN. All rights reserved. v1.0.0