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
Q1

If Σ = {aa bb} then Σ* will not contain ___.

  • A) aaabbb
  • B) aabbbb
  • C) aabbaa
  • D) bbaabbbb
CS402 Mid Term AI Solved
Q2

One language can have ___ TG's.

  • A) Only one
  • B) Only two
  • C) More than one
  • D) Only three
CS402 Mid Term AI Solved
Q3

According to 1st part of the Kleene's theorem if a language can be accepted by an FA then it can be accepted by a ___ as well.

  • A) FA
  • B) CFG
  • C) GTG
  • D) TG
CS402 Mid Term AI Solved
Q4

Even-palindrome is a ___ language.

  • A) Non-regular
  • B) Regular
  • C) Regular but infinite
  • D) Regular but finite
CS402 Mid Term AI Solved
Q5

If L is a regular language then Lc is also a ___ language.

  • A) Regular
  • B) Non-regular
  • C) Regular but finite
  • D) None of the given
CS402 Mid Term AI Solved
Q6

Pumping lemma is generally used to prove that:

  • A) A given language is infinite
  • B) A given language is not regular
  • C) Whether two given regular expressions are equivalent or not
  • D) None of these
CS402 Mid Term AI Solved
Q7

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.

  • A) accept all
  • B) accept no
  • C) accept some
  • D) reject no
CS402 Mid Term AI Solved
Q8

In CFG the symbols that can't be replaced by anything are called ___.

  • A) Terminal
  • B) Non-Terminal
  • C) Production
  • D) All of given
CS402 Mid Term AI Solved
Q9

Which of the following is a regular language?

  • A) String of odd number of zeroes
  • 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 these
CS402 Mid Term AI Solved
Q11

An alphabet of Σ is valid if ___.

  • A) No letter of Σ appears in middle of any other letter
  • B) No letter of Σ appears at end of any other letter
  • C) No letter of Σ appears at start of any other letter
  • D) No letter of Σ appears at end or middle of any other letter
CS402 Mid Term AI Solved
Q13

If a CFG has only productions of the form nonterminal to string of two nonterminals or nonterminal to one terminal, then the CFG is said to be in ___.

  • A) Chomsky Normal Form
  • B) Ambiguous Form
  • C) Left Aligned Form
  • D) Right Aligned Form
CS402 Mid Term AI Solved
Q14

We can also represent an FA using different states. The ___ state behaves as final state of an FA.

  • A) Accept
  • B) Pop
  • C) Push
  • D) Reject
CS402 Mid Term AI Solved
Q15

Where the input string is placed before it is run is called ___.

  • A) Date tape
  • B) Input Tape
  • C) Output Tape
  • D) Magnetic tape
CS402 Mid Term AI Solved
Q17

The process of finding the derivation of the word generated by particular grammar is called ___.

  • A) Processing
  • B) Parsing
  • C) Programming
  • D) Planning
CS402 Mid Term AI Solved
Q18

The first rule of converting the given CFG in CNF is ___.

  • A) CNK algorithm
  • B) CYK algorithm
  • C) CKY algorithm
  • D) KYC algorithm
CS402 Mid Term AI Solved
Q20

We cannot write regular expressions for all ___.

  • A) FA's
  • B) TG's
  • C) NFA's
  • D) CFG's
CS402 Mid Term AI Solved
Q21

For every Context Free Grammar (CFG) we can make the corresponding ___.

  • A) FA
  • B) TG
  • C) PDA
  • D) Regular Grammar
CS402 Mid Term AI Solved
Q22

Pumping Lemma II says that length(x) + length(y) should be ___.

  • A) Less than number of states
  • B) Equal to number of states
  • C) Greater than number of states
  • D) Greater than or equal to number of states
CS402 Mid Term AI Solved
Q23

Chomsky normal form (CYK) algorithm was proposed by ___.

  • A) John cock
  • B) James Cock
  • C) Daniel I.A.
  • D) John Weiss
CS402 Mid Term AI Solved
Q24

The language of Palindromes defined over an alphabet set {a b} can be recognized by ___.

  • A) FA
  • B) NFA
  • C) TG
  • D) PDA
© 2026 VUCTN. All rights reserved. v1.0.0