Automata Questions with Answers Set-2

This post contains a computer network related to 20 multiple-choice questions (Automata SET-2) that help you to go through the subject and prepare you for Automata-related questions in competitive exams.

Automata MCQ Test Series Set-2

  • Total Number of Questions: 20

  • Each question carries equal marks i.e 1

  • No Negative Marking

Page 1 of 2

1. The set of all recursively enumerable languages is
A.
B.
C.
D.
2. Which one of the following statements is FALSE?
A.
B.
C.
D.
3.

Consider the following context-free grammar over the alphabet $\sum = \left\{ a,b,c \right\}$ with S as the start symbol:

$S\to abST |abcT$
$T\to bT |b$

Which one of the following represents the language generated by the above grammar?

A.
B.
C.
D.
4.

For $\Sigma = {a,b}$, let us consider the regular language L= $\left\{ x|x = a^{2+3k}or x = B^{10+12k},k\ge 0 \right\}$ Which one of the following can be a pumping length (the constant guaranteed by the pumping lemma) for L? 

A.
B.
C.
D.
5. Which of the following languages is generated by the given grammar?

$S\to aS|bS|\varepsilon$
A.
B.
C.
D.
6.

Consider the following grammar :

$ P\rightarrow xQRS $

$ Q\rightarrow yz|z $

$ R\rightarrow w|\epsilon $

$ S\rightarrow y $

Which is FOLLOW(Q)?

A.
B.
C.
D.
7. Which of the following decision problems are undecidable?
  1. Given NFAs $N_{1} and N_{2}, is L(N_{1}) \cap L(N_{2}) = \phi$
  2. Given a CFG G = $(N,\sum, P, S)$ and a string x $\in \sum^{*}$ , does x $ \in $L(G) ?
  3. Given CFGs $G_{1}$ and $G_{2}$ is L$(G_{1})$ =  L $(G_{2})$ ?
  4. Given a TM M, is L(M) = $\phi$
A.
B.
C.
D.
8.

Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive 0s and two consecutive 1s?

A.
B.
C.
D.
9.

Which one of the following languages over $\Sigma$ = {a,b} is NOT context-free? 

A.
B.
C.
D.
10. Consider the following language:

I. $(a^{m}b^{n}c^{p}d^{q}|m+p = n+q, $ where $ m,n,p,q\ge 0)$

II. $(a^{m}b^{n}c^{p}d^{q}|m=n $ and $ p = q, $ where  $ m,n,p,q\ge 0 )$

III. $(a^{m}b^{n}c^{p}d^{q}| m= n = p $ and $ p \neq q $, where $ m,n,p,q\ge 0)$

IV. $(a^{m}b^{n}c^{p}d^{q}|mn = p+q,$ where $ m,n,p,q\ge 0)$

Which of the languages above are context-free?
A.
B.
C.
D.

 

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments