Theory of Computation questions

Q6

GATE CS 2018 CSRegular LanguagesMCQ1 mark−1/3 if wrong
Let N be an NFA with nn states. Let kk be the number of states of a minimal DFA which is equivalent to N. Which one of the following is necessarily true?
Show answer without attempting

Answer: D

Q7

GATE CS 2018 CSComputabilityMCQ1 mark−1/3 if wrong
The set of all recursively enumerable languages is
Show answer without attempting

Answer: B

Q35

GATE CS 2018 CSContext Free LanguagesMCQ2 marks−2/3 if wrong
Consider the following languages:

I. {ambncpdq∣m+p=n+q, where m,n,p,q≥0}\{a^m b^n c^p d^q \mid m + p = n + q, \text{ where } m, n, p, q \ge 0\}
II. {ambncpdq∣m=n and p=q, where m,n,p,q≥0}\{a^m b^n c^p d^q \mid m = n \text{ and } p = q, \text{ where } m, n, p, q \ge 0\}
III. {ambncpdq∣m=n=p and p≠q, where m,n,p,q≥0}\{a^m b^n c^p d^q \mid m = n = p \text{ and } p \neq q, \text{ where } m, n, p, q \ge 0\}
IV. {ambncpdq∣mn=p+q, where m,n,p,q≥0}\{a^m b^n c^p d^q \mid mn = p + q, \text{ where } m, n, p, q \ge 0\}

Which of the languages above are context-free?
Show answer without attempting

Answer: B

Q36

GATE CS 2018 CSComputabilityMCQ2 marks−2/3 if wrong
Consider the following problems. L(G)L(G) denotes the language generated by a grammar GG. L(M)L(M) denotes the language accepted by a machine MM.

(I) For an unrestricted grammar GG and a string ww, whether w∈L(G)w \in L(G)
(II) Given a Turing machine MM, whether L(M)L(M) is regular
(III) Given two grammars G1G_1 and G2G_2, whether L(G1)=L(G2)L(G_1) = L(G_2)
(IV) Given an NFA NN, whether there is a deterministic PDA PP such that NN and PP accept the same language.

Which one of the following statements is correct?
Show answer without attempting

Answer: D

Q52

GATE CS 2018 CSRegular LanguagesNAT2 marks
Given a language LL, define LiL^i as follows:

L0={ε}L^0 = \{\varepsilon\}
Li=Li−1⋅L for all i>0L^i = L^{i-1} \cdot L \text{ for all } i > 0

The order of a language LL is defined as the smallest kk such that Lk=Lk+1L^k = L^{k+1}.
Consider the language L1L_1 (over alphabet 0) accepted by the following automaton.

The order of L1L_1 is _____.
Question figure
Show answer without attempting

Answer: 2

0/50 correct0 marks

Related topics in GATE CS