Theory of Computation questions

Q32

GATE CS 2015 CS-3Regular LanguagesMCQ1 mark−1/3 if wrong
Let LL be the language represented by the regular expression Σ∗0011Σ∗\Sigma^* 0011 \Sigma^* where Σ={0,1}\Sigma = \{0, 1\}. What is the minimum number of states in a DFA that recognizes L‾\overline{L} (complement of LL)?
Show answer without attempting

Answer: B

Q41

GATE CS 2015 CS-3ComputabilityMCQ2 marks−2/3 if wrong
Language L1L_1 is polynomial time reducible to language L2L_2. Language L3L_3 is polynomial time reducible to L2L_2, which in turn is polynomial time reducible to L4L_4. Which of the following is/are true?

I.if L4∈P, then L2∈PII.if L1∈P or L3∈P, then L2∈PIII.L1∈P, if and only if L3∈PIV.if L4∈P, then L1∈P and L3∈P\begin{array}{rl} \text{I.} & \text{if } L_4 \in P \text{, then } L_2 \in P \\ \text{II.} & \text{if } L_1 \in P \text{ or } L_3 \in P \text{, then } L_2 \in P \\ \text{III.} & L_1 \in P \text{, if and only if } L_3 \in P \\ \text{IV.} & \text{if } L_4 \in P \text{, then } L_1 \in P \text{ and } L_3 \in P \end{array}
Show answer without attempting

Answer: C

Q44

GATE CS 2015 CS-3Context Free LanguagesMCQ2 marks−2/3 if wrong
Which of the following languages are context-free?

L1={ambnanbm∣m,n≥1}L2={ambnambn∣m,n≥1}L3={ambn∣m=2n+1} \begin{array}{l} L_1 = \{a^m b^n a^n b^m \mid m, n \ge 1\} \\ L_2 = \{a^m b^n a^m b^n \mid m, n \ge 1\} \\ L_3 = \{a^m b^n \mid m = 2n + 1\} \end{array}
Show answer without attempting

Answer: B

Q28

GATE CS 2015 CS-1ComputabilityMCQ1 mark−1/3 if wrong
For any two languages L1L_1 and L2L_2 such that L1L_1 is context-free and L2L_2 is recursively enumerable but not recursive, which of the following is/are necessarily true?

I. L1‾\overline{L_1} (complement of L1L_1) is recursive
II. L2‾\overline{L_2} (complement of L2L_2) is recursive
III. L1‾\overline{L_1} is context-free
IV. L1‾∪L2\overline{L_1} \cup L_2 is recursively enumerable
Show answer without attempting

Answer: D

Q49

GATE CS 2015 CS-1Regular LanguagesNAT2 marks
Consider the DFAs M and N given above. The number of states in a minimal DFA that accepts the language L(M)∩L(N)L(M) \cap L(N) is ________.
Question figure
Show answer without attempting

Answer: 1

Q50

GATE CS 2015 CS-1Context Free LanguagesMCQ2 marks−2/3 if wrong
Consider the NPDA ⟨Q={q0,q1,q2},Σ={0,1},Γ={0,1,⊥},δ,q0,⊥,F={q2}⟩\langle Q = \{q_0, q_1, q_2\}, \Sigma = \{0, 1\}, \Gamma = \{0, 1, \bot\}, \delta, q_0, \bot, F = \{q_2\} \rangle, where (as per usual convention) QQ is the set of states, Σ\Sigma is the input alphabet, Γ\Gamma is the stack alphabet, δ\delta is the state transition function, q0q_0 is the initial state, ⊥\bot is the initial stack symbol, and FF is the set of accepting states. The state transition is as follows:

Which one of the following sequences must follow the string 101100 so that the overall string is accepted by the automaton?
Question figure
Show answer without attempting

Answer: B

Q20

GATE CS 2015 CS-2ComputabilityMCQ1 mark−1/3 if wrong
Consider the following statements.

I. The complement of every Turing decidable language is Turing decidable
II. There exists some language which is in NP but is not Turing decidable
III. If L is a language in NP, L is Turing decidable

Which of the above statements is/are true?
Show answer without attempting

Answer: D

Q26

GATE CS 2015 CS-2ComputabilityMCQ1 mark−1/3 if wrong
Consider two decision problems Q1,Q2Q_1, Q_2 such that Q1Q_1 reduces in polynomial time to 3-SAT and 3-SAT reduces in polynomial time to Q2Q_2. Then which one of the following is consistent with the above statement?
Show answer without attempting

Answer: A

Q45

GATE CS 2015 CS-2Regular LanguagesNAT2 marks
The number of states in the minimal deterministic finite automaton corresponding to the regular expression (0+1)∗(10)(0 + 1)^*(10) is ___________.
Show answer without attempting

Answer: 3

Q46

GATE CS 2015 CS-2Regular LanguagesMCQ2 marks−2/3 if wrong
Which of the following languages is/are regular?

L1L_1: {wxwR∣w,x∈{a,b}∗ and ∣w∣,∣x∣>0}\{wxw^R \mid w, x \in \{a, b\}^* \text{ and } |w|, |x| > 0\}, wRw^R is the reverse of string ww
L2L_2: {anbm∣m≠n and m,n≥0}\{a^n b^m \mid m \neq n \text{ and } m, n \geq 0\}
L3L_3: {apbqcr∣p,q,r≥0}\{a^p b^q c^r \mid p, q, r \geq 0\}
Show answer without attempting

Answer: A

Q60

GATE CS 2015 CS-2Regular LanguagesMCQ2 marks−2/3 if wrong
Consider the alphabet Σ={0,1}\Sigma = \{0, 1\}, the null/empty string λ\lambda and the sets of strings X0X_0, X1X_1, and X2X_2 generated by the corresponding non-terminals of a regular grammar. X0X_0, X1X_1, and X2X_2 are related as follows.

X0=1X1X_0 = 1 X_1
X1=0X1+1X2X_1 = 0 X_1 + 1 X_2
X2=0X1+{λ}X_2 = 0 X_1 + \{\lambda\}

Which one of the following choices precisely represents the strings in X0X_0?
Show answer without attempting

Answer: C

0/110 correct0 marks

Related topics in GATE CS