Theory of Computation questions

Q14

GATE CS 2023 CSRegular LanguagesMCQ1 mark−1/3 if wrong
Consider the Deterministic Finite-state Automaton (DFA) A\mathcal{A} shown below. The DFA runs on the alphabet {0,1}\{0, 1\}, and has the set of states {s,p,q,r}\{s, p, q, r\}, with ss being the start state and pp being the only final state.

Which one of the following regular expressions correctly describes the language accepted by A\mathcal{A}?
Question figure
Show answer without attempting

Answer: C

Q24

GATE CS 2023 CSRegular LanguagesMSQ1 mark
Which of the following statements is/are CORRECT?
More than one option can be correct.
Show answer without attempting

Answer: A, C, D

Q39

GATE CS 2023 CSContext Free LanguagesMCQ2 marks−2/3 if wrong
Consider the context-free grammar GG below
<br>S→aSb∣X<br>X→aX∣Xb∣a∣b<br>\begin{align*}<br>S & \to aSb \mid X \\<br>X & \to aX \mid Xb \mid a \mid b<br>\end{align*}
where SS and XX are non-terminals, and aa and bb are terminal symbols. The starting non-terminal is SS.

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

Answer: B

Q40

GATE CS 2023 CSContext Free LanguagesMCQ2 marks−2/3 if wrong
Consider the pushdown automaton (PDA) PP below, which runs on the input alphabet {a,b}\{a, b\}, has stack alphabet {⊥,A}\{\bot, A\}, and has three states {s,p,q}\{s, p, q\}, with ss being the start state. A transition from state uu to state vv, labelled c/X/γc/X/\gamma, where cc is an input symbol or ϵ\epsilon, XX is a stack symbol, and γ\gamma is a string of stack symbols, represents the fact that in state uu, the PDA can read cc from the input, with XX on the top of its stack, pop XX from the stack, push in the string γ\gamma on the stack, and go to state vv. In the initial configuration, the stack has only the symbol ⊥\bot in it. The PDA accepts by empty stack.

Which one of the following options correctly describes the language accepted by PP?
Question figure
Show answer without attempting

Answer: A

Q63

GATE CS 2023 CSRegular LanguagesNAT2 marks
Consider the language LL over the alphabet {0,1}\{0, 1\}, given below:
L={w∈{0,1}∗∣w does not contain three or more consecutive 1’s}.L = \{w \in \{0, 1\}^* \mid w \text{ does not contain three or more consecutive 1's}\}.
The minimum number of states in a Deterministic Finite-State Automaton (DFA) for LL is ____________.
Show answer without attempting

Answer: 4

0/50 correct0 marks

Related topics in GATE CS