Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged goclasses-toc-practice-questions
2
2 votes
1
1 answer
132
132 views
GO Classes DPP | GATE CS | Theory of Computation | Terminal-only Rules
Consider the right-linear grammar,$$\begin{aligned}A &\to fB \mid gA \\B &\to gA \mid fC \mid f \\C &\to gA \mid fC \mid f\end{aligned}$$When this grammar is converted in...
GO Classes
132
views
asked
Sep 5
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-364
goclasses-toc-practice-questions
grammar
finite-automata
numerical-answers
+
–
2
2 votes
1
1 answer
97
97 views
GO Classes DPP | GATE CS | Theory of Computation | State Variable Method
Which of the following statements are correct for converting a finite automaton into an equivalent right-linear grammar?Each automaton state becomes a non-terminal. The s...
GO Classes
97
views
asked
Sep 5
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-364
goclasses-toc-practice-questions
grammar
finite-automata
multiple-selects
+
–
2
2 votes
1
1 answer
88
88 views
GO Classes DPP | GATE CS | Theory of Computation | NFA to Grammar
Consider the NFA given below: Which right-linear grammar is obtained by the standard NFA-to-grammar construction?$q_0 \to aq_1$,$q_1 \to aq_0 \mid bq_1 \mid \epsilon$ $q_...
GO Classes
88
views
asked
Sep 5
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-364
goclasses-toc-practice-questions
grammar
finite-automata
+
–
1
1 vote
1
1 answer
104
104 views
GO Classes DPP | GATE CS | Theory of Computation | Grammar to NFA
Consider the right-linear grammar,$$\begin{aligned}S &\to aB \mid bS \mid \epsilon \\B &\to aS \mid bB\end{aligned}$$Which NFA is obtained by the standard grammar-to-NFA ...
GO Classes
104
views
asked
Sep 5
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-364
goclasses-toc-practice-questions
grammar
finite-automata
+
–
3
3 votes
1
1 answer
152
152 views
GO Classes DPP | GATE CS | Theory of Computation | Grammar to NFA
Consider the right-linear grammar,$$\begin{aligned}S &\to aT \\T &\to abcS \mid b\end{aligned}$$If this grammar is converted into an NFA with one input symbol per transit...
GO Classes
152
views
asked
Sep 5
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-364
goclasses-toc-practice-questions
grammar
finite-automata
numerical-answers
+
–
1
1 vote
1
1 answer
169
169 views
GO Classes DPP | GATE CS | Theory of Computation | Regex from Grammar
Let $G$ have start symbol $q_0$ and productions :$$\begin{aligned}q_0 &\to \epsilon \mid abq_0 \mid cq_1\\q_1 &\to ab\end{aligned}$$Which regular expression denotes $L(G)...
GO Classes
169
views
asked
Sep 3
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-363
goclasses-toc-practice-questions
regular-expression
regular-grammar
+
–
1
1 vote
1
1 answer
108
108 views
GO Classes DPP | GATE CS | Theory of Computation | Regular CFL Inclusion
Which of the following statements are always true?Every language generated by a regular grammar is regular. Every regular language can be generated by a regular grammar. ...
GO Classes
108
views
asked
Sep 3
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-363
goclasses-toc-practice-questions
regular-language
regular-grammar
+
–
1
1 vote
1
1 answer
89
89 views
GO Classes DPP | GATE CS | Theory of Computation | Right-Linear Grammar
Consider the grammar with start variable $A$ and productions :$$\begin{aligned}A &\to aB \mid bA \\B &\to bA \mid aC \mid a \\C &\to bA \mid aC \mid a\end{aligned}$$Which...
GO Classes
89
views
asked
Sep 3
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-363
goclasses-toc-practice-questions
regular-grammar
multiple-selects
+
–
1
1 vote
1
1 answer
87
87 views
GO Classes DPP | GATE CS | Theory of Computation | Language of Grammar
Consider the grammar $G$ with productions :$$\begin{aligned}S &\to aB \mid \epsilon \\B &\to Sbb\end{aligned}$$Which option is correct?$L(G)=\{a^n b^{2n}\mid n\ge 0\}$ an...
GO Classes
87
views
asked
Sep 3
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-363
goclasses-toc-practice-questions
grammar
+
–
1
1 vote
1
1 answer
88
88 views
GO Classes DPP | GATE CS | Theory of Computation | Grammar Classification
Consider the grammar $G$ with start variable $A$ and productions $:$$$\begin{aligned}A &\to aB \mid bC \\B &\to aB \mid \epsilon \\C &\to aD \mid A \mid bC \\D &\to aD \m...
GO Classes
88
views
asked
Sep 3
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-363
goclasses-toc-practice-questions
grammar
multiple-selects
+
–
2
2 votes
1
1 answer
119
119 views
GO Classes DPP | GATE CS | Theory of Computation | Ambiguous CFG
Consider the following grammar$$\begin{aligned}S &\to AA \\A &\to AAA \mid bA \mid Ab \mid a\end{aligned}$$Which of the following strings can be used as a witness to show...
GO Classes
119
views
asked
Sep 2
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-362
goclasses-toc-practice-questions
context-free-grammar
+
–
1
1 vote
1
1 answer
85
85 views
GO Classes DPP | GATE CS | Theory of Computation | CFG Recursive Nesting
Which CFG generates the set of all properly balanced strings of parentheses, including $\epsilon$, the parentheses must be properly nested. Some sample strings in the lan...
GO Classes
85
views
asked
Sep 2
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-362
goclasses-toc-practice-questions
context-free-grammar
+
–
1
1 vote
1
1 answer
88
88 views
GO Classes DPP | GATE CS | Theory of Computation | Language of CFG
Let's imagine that you're going for a walk with your dog, but this time don't have a leash. Let $\Sigma = \{y,d\}$, where $y$ means that you take a step forward and $d$ m...
GO Classes
88
views
asked
Sep 2
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-362
goclasses-toc-practice-questions
context-free-grammar
+
–
2
2 votes
1
1 answer
90
90 views
GO Classes DPP | GATE CS | Theory of Computation | Language of CFG
Let $\Sigma = \{1,+,=\}$ then which of the following CFG generates the language $L = \{1^m+1^n=1^{m+n} \mid m,n \in \mathbb{N}\}$. For example, the strings $111+1=1111$ a...
GO Classes
90
views
asked
Sep 2
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-362
goclasses-toc-practice-questions
context-free-grammar
+
–
3
3 votes
1
1 answer
94
94 views
GO Classes DPP | GATE CS | Theory of Computation | CFG Construction
Let $\Sigma = \{a,b\}$ and $L = \{w \in \Sigma^* \mid w$ is not a palindrome$\}$, i.e, the language of strings that are not the same when read forwards and backwards. For...
GO Classes
94
views
asked
Sep 2
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-362
goclasses-toc-practice-questions
context-free-grammar
+
–
4
4 votes
2
2 answers
208
208 views
GO Classes DPP | GATE CS | Theory of Computation | Language of CFG
Consider the CFG$$\begin{aligned}S &\to VS \mid cT \\T &\to VT \mid cU \\U &\to \epsilon \mid VU \\V &\to a \mid b\end{aligned} $$Which language is generated by this gram...
GO Classes
208
views
asked
Sep 1
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-361
goclasses-toc-practice-questions
context-free-grammar
context-free-language
+
–
2
2 votes
1
1 answer
115
115 views
GO Classes DPP | GATE CS | Theory of Computation | Union of CFLs
Which CFG generates the language $L = \{a^m b^n \mid 2m=n \text{ or } m=2n\}$?$S \to aSbb \mid aaSb \mid \epsilon$ $S \to X \mid Y$$X \to aXbb \mid \epsilon$$Y \to aaYb \...
GO Classes
115
views
asked
Sep 1
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-361
goclasses-toc-practice-questions
context-free-grammar
context-free-language
+
–
2
2 votes
1
1 answer
123
123 views
GO Classes DPP | GATE CS | Theory of Computation | Context Free Grammar
Which CFG generates the language $L = \{a^i b^j c^k \mid i+k=j\}$?$S \to AB$ $A \to aAb \mid \epsilon$ $B \to bBc \mid \epsilon$ $S \to aSb \mid bSc \mid \epsilon$ $S \to...
GO Classes
123
views
asked
Sep 1
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-361
goclasses-toc-practice-questions
context-free-grammar
+
–
3
3 votes
1
1 answer
97
97 views
GO Classes DPP | GATE CS | Theory of Computation | Recursive CFG
Which CFG generates the language $L = \{(a^*b)^i c^i \mid i 0\}$?$S \to AbSc \mid Abc$$A \to aA \mid \epsilon$ $S \to AbS \mid Abc$ $A \to aA \mid \epsilon$ $S \to AbcS ...
GO Classes
97
views
asked
Sep 1
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-361
goclasses-toc-practice-questions
context-free-grammar
+
–
1
1 vote
1
1 answer
109
109 views
GO Classes DPP | GATE CS | Theory of Computation | CFG Construction
Let $\Sigma = {a,b,c}$. Which CFG generates the language $L = \{w \in \Sigma^* \mid w$ contains $aa$ as a substring$\}$?$S \to XaaX, ~~X \to aX \mid bX \mid cX \mid \epsi...
GO Classes
109
views
asked
Sep 1
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-361
goclasses-toc-practice-questions
context-free-grammar
+
–
6
6 votes
1
1 answer
372
372 views
GO Classes DPP | GATE CS | Theory of Computation | Regex String Count
Let $P,Q$ and $R$ be regular expressions such that the number of strings generated by $P$ is $p$, $Q$ is $q$ and $R$ is $r$. What is the number of strings generated by th...
GO Classes
372
views
asked
Jul 11
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-320
goclasses-toc-practice-questions
regular-expression
+
–
6
6 votes
2
2 answers
384
384 views
GO Classes DPP | GATE CS | Theory of Computation | NFA to Regex
Select the equivalent regular expression for the given $\epsilon$-NFA.$(01)^*1(01)$ $(0+1)^*1(0+1)$ $((0+1)^*+1)(0+1)$ $(01)^*+1+(01)$
GO Classes
384
views
asked
Jul 11
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-320
goclasses-toc-practice-questions
regular-expression
epsilon-nfa
+
–
4
4 votes
2
2 answers
294
294 views
GO Classes DPP | GATE CS | Theory of Computation | Regex Interpretation
$(1(0+1)^*1)^*$ denotes all strings that start and end with $1$.True False
GO Classes
294
views
asked
Jul 11
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-320
goclasses-toc-practice-questions
regular-expression
+
–
5
5 votes
1
1 answer
213
213 views
GO Classes DPP | GATE CS | Theory of Computation | Regular Language
Which of the following languages are regular?$L_1 = \{x \mid x$ has two $0$s separated by the number of positions that is a multiple of $4\}$ $L_2 = \{x \mid x$ is binary...
GO Classes
213
views
asked
Jul 11
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-320
goclasses-toc-practice-questions
regular-language
+
–
4
4 votes
1
1 answer
275
275 views
GO Classes DPP | GATE CS | Theory of Computation | NFA state count
Let $w$ be any string of length $n$ in $\{0,1\}^*$. Let $L$ be the set of all prefixes of $w$. Minimum number of states in an NFA that accepts $L$ is?$n-1$ $n$ $n+1$ $2n-...
GO Classes
275
views
asked
Jul 11
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-320
goclasses-toc-practice-questions
finite-automata
+
–
4
4 votes
2
2 answers
258
258 views
GO Classes DPP | GATE CS | Theory of Computation | Regular Language
Which of the following languages is non-regular? $(w^R$ is the reverse of string $w)$$L_1 = \{ww^R \mid w \in \{0,1\}^*\}$ $L_2 = \{ww^Rx \mid w,x \in \{0,1\}^*\}$ $L_3...
GO Classes
258
views
asked
Jul 10
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-319
goclasses-toc-practice-questions
regular-language
+
–
4
4 votes
3
3 answers
324
324 views
GO Classes DPP | GATE CS | Theory of Computation | DFA Minimization
The minimum state automaton equivalent to the DFA below has how many states?
GO Classes
324
views
asked
Jul 10
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-319
goclasses-toc-practice-questions
minimal-state-dfa
numerical-answers
+
–
4
4 votes
1
1 answer
209
209 views
GO Classes DPP | GATE CS | Theory of Computation | Regular language
Which of the following languages is non-regular? $L_1 = \{x \mid x \in \{a,b\}^*$ and $x$ has even number of $b\}$ $L_2 = \{x \mid x \in \{a,b,c\}^*$ and $x$ has no $c$ ...
GO Classes
209
views
asked
Jul 10
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-319
goclasses-toc-practice-questions
regular-language
+
–
2
2 votes
2
2 answers
273
273 views
GO Classes DPP | GATE CS | Theory of Computation | Minimal DFA
Let $\Sigma = \{a\}$. Consider the language $L = \{a^{nk} \mid k 0,\ n$ is a positive integer constant$\}$. What is the minimum number of states in a DFA that recognises...
GO Classes
273
views
asked
Jul 10
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-319
goclasses-toc-practice-questions
finite-automata-dfa
+
–
3
3 votes
1
1 answer
222
222 views
GO Classes DPP | GATE CS | Theory of Computation | DFA Comparison
Suppose $\Sigma = \{0,1\}$, $L_1 = \{w \mid w$ does not contain the string $01\}$ and $L_2 =\{w \mid w$ contains the string $01\}$. Let the corresponding DFAs for $L_1$ a...
GO Classes
222
views
asked
Jul 10
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-319
goclasses-toc-practice-questions
finite-automata-dfa
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
next »