Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged grammar
0
0 votes
1
1 answer
60
60 views
GO Classes DPP | GATE CS | Theory of Computation | Grammar Classification
Consider the grammar $$S\rightarrow aS\mid Sb\mid b$$ Which of the following statements are correct?The given grammar is a Type $3$ grammar. The given grammar is a Type $...
GO Classes
60
views
asked
Sep 24
Theory of Computation
goclasses
goclasses-cs-dpp
theory-of-computation
goclasses-cs-dpp-day-380
goclasses-toc-practice-questions
grammar
multiple-selects
+
–
2
2 votes
1
1 answer
141
141 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
141
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
105
105 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
105
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
93
93 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
93
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
112
112 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
112
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
167
167 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
167
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
92
92 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
92
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
92
92 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
92
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
+
–
1
1 vote
0
0 answers
169
169 views
Neso Academy Lectures | Compiler Design | LR Parsing
We know that the class of languages of LR(0), SLR(1), LALR(1), CLR(1) is the class of DCFLs, with the only exception being that...An LR(0) language is a DCFL that has the...
Tin_ku
169
views
asked
Aug 2
Compiler Design
compiler
compiler-design
parsing
lr-parser
grammar
+
–
0
0 votes
1
1 answer
101
101 views
UGC NET CSE | December 2025 | Part 2 | Question: 52
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason RAssertion A: $L=\left\{a^{n} b^{n} c^{n}: n \geq 0\right\}$ is accepte...
Shubham Sharma 2
101
views
asked
Apr 19
Theory of Computation
ugcnetcse-dec2025
theory-of-computation
context-sensitive
linear-bounded-automata
grammar
+
–
1
1 vote
0
0 answers
85
85 views
UGC NET CSE | December 2025 | Part 2 | Question: 58
Match the LIST-I with LIST-IILIST-IGrammarLIST-IIAll productions are the formA.Regular GrammarI.$\mathrm{A} \rightarrow \mathrm{aX}$, where $\mathrm{a} \in \mathrm{T}$ an...
Shubham Sharma 2
85
views
asked
Apr 19
Theory of Computation
ugcnetcse-dec2025
theory-of-computation
grammar
regular-grammar
context-free-grammar
+
–
0
0 votes
0
0 answers
264
264 views
UGC NET CSE | June 2025 | Part 2 | Question: 72
Which of the following Grammars is/are only Context Free?$\begin{array}{|l|l|l|l|} \hline \textbf{I} & \begin{array}{l} S \rightarrow A b \\ a S \rightarrow a A \\ A \ri...
Shubham Sharma 2
264
views
asked
Sep 10, 2025
Theory of Computation
ugcnetcse-june2025
theory-of-computation
grammar
context-free-grammar
context-free-language
+
–
0
0 votes
1
1 answer
195
195 views
UGC NET CSE | June 2025 | Part 2 | Question: 77
Match List I with List II$\begin{array}{|ll|ll|} \hline & \textbf{List I} & & \textbf{List II} \\ \hline \text{A.} & \text{Type } 3 \text{ Grammar} & \text{I.} & \mathrm...
Shubham Sharma 2
195
views
asked
Sep 10, 2025
Theory of Computation
ugcnetcse-june2025
theory-of-computation
grammar
+
–
0
0 votes
2
2 answers
334
334 views
UGC NET CSE | January 2025 | Part 2 | Question: 70
Match the $\textbf{LIST-I}$ with $\textbf{LIST-II}$$\begin{array}{|l|l|l|l|} \hline & \textbf{ LIST-I } & & \textbf{ LIST-II } \\ \hline \text{A.} & \text{Type} - 0 \text...
Shubham Sharma 2
334
views
asked
Sep 10, 2025
Theory of Computation
ugcnetcse-jan2025
theory-of-computation
grammar
context-sensitive
context-free-grammar
regular-grammar
+
–
0
0 votes
0
0 answers
264
264 views
UGC NET CSE | January 2025 | Part 2 | Question: 92
A machine is represented by states $Q$ , input alphabet $\sum$, transition function $\hat{\mathrm{o}}$. Initial state $\mathrm{q}_{0}$ and final state $F$. The machine ac...
Shubham Sharma 2
264
views
asked
Sep 10, 2025
Theory of Computation
ugcnetcse-jan2025
theory-of-computation
regular-grammar
grammar
automata
regular-language
+
–
0
0 votes
1
1 answer
333
333 views
UGC NET CSE | August 2024 | Part 2 | Question: 1
Consider the Grammar:\[\begin{array}{l} \mathrm{S} \rightarrow \mathrm{~A} \\ \mathrm{~A} \rightarrow \$ \mathrm{~B} \$ \mid \mathrm{id} \\ \mathrm{~B} \rightarrow \mathr...
Shubham Sharma 2
333
views
asked
Sep 9, 2025
Compiler Design
ugcnetcse-aug2024
grammar
parsing
compiler-design
lr-parser
+
–
0
0 votes
1
1 answer
294
294 views
UGC NET CSE | August 2024 | Part 2 | Question: 2
Consider the Grammar:$\begin{array}{l}\mathrm{T} \rightarrow \mathrm{Q} x \\\mathrm{Q} \rightarrow \mathrm{RS} \\\mathrm{R} \rightarrow \mathrm{y} \mid \varepsilon \\\mat...
Shubham Sharma 2
294
views
asked
Sep 9, 2025
Theory of Computation
ugcnetcse-aug2024
compiler-design
first-and-follow
grammar
+
–
0
0 votes
0
0 answers
167
167 views
UGC NET CSE | August 2024 | Part 2 | Question: 52
Arrange the following Language Classes in ascending order according to their expressive power, as defined by Chomsky hierarchy:Context-free languagesContext-sensitive lan...
Shubham Sharma 2
167
views
asked
Sep 9, 2025
Theory of Computation
ugcnetcse-aug2024
grammar
context-free-language
context-sensitive
regular-language
theory-of-computation
+
–
1
1 vote
1
1 answer
209
209 views
UGC NET CSE | August 2024 | Part 2 | Question: 56
Which of the following are context free language?$\left\{\mathrm{w}^{\mathrm{i}} \mathrm{x}^{\mathrm{j}} \mathrm{y}^{\mathrm{k}} \mathrm{z}^{l} \mid \mathrm{i}+\mathrm{k}...
Shubham Sharma 2
209
views
asked
Sep 9, 2025
Theory of Computation
ugcnetcse-aug2024
theory-of-computation
context-free-language
grammar
+
–
0
0 votes
2
2 answers
216
216 views
UGC NET CSE | December 2023 | Part 2 | Question: 21
Let $\text{L}=\{a b, a a, b a a\}$. Which of the following strings are not in $\text{L}^{*}$.$\mathrm{abaabaaabaa}$$\mathrm{aaaabaaaa}$$\mathrm{baaaaabaaaab}$$\mathrm{baa...
Shubham Sharma 2
216
views
asked
Sep 9, 2025
Theory of Computation
ugcnetcse-dec2023
regular-language
theory-of-computation
grammar
+
–
2
2 votes
0
0 answers
199
199 views
UGC NET CSE | December 2023 | Part 2 | Question: 24
Consider a Grammar $\mathrm{E} \rightarrow \mathrm{E}+\mathrm{n}\mid \mathrm{E} \times \mathrm{n} \mid \mathrm{n}$ for a sentence $\mathrm{n}+\mathrm{n} \times \mathrm{n}...
Shubham Sharma 2
199
views
asked
Sep 9, 2025
Compiler Design
ugcnetcse-dec2023
grammar
parsing
compiler-design
+
–
1
1 vote
2
answers
2 answers
712
712 views
Grammar for {a^nb^mc^p | n ≠ m or m ≠ p}
Is {aⁿbᵐcᵖ | n ≠ m or m ≠ p} CFL? If so what is the Context Free Grammar for it? If not, what is the grammar for the language?
ace0-0
712
views
asked
Aug 31, 2025
Theory of Computation
theory-of-computation
context-free-language
context-free-grammar
grammar
+
–
22
22 votes
11
11 answers
13.5k
13.5k views
GATE CSE 2025 | Set 2 | Question: 41
Consider two grammars $G_{1}$ and $G_{2}$ with the production rules given below: $G_{1} : S \rightarrow$ $if$ $E$ $then$ $S$ $|$ $if$ $E$ $then$ $S$ $else$ $S$ $|$ $a$ ...
admin
13.5k
views
asked
Feb 27, 2025
Compiler Design
gatecse2025-set2
compiler-design
grammar
multiple-selects
easy
two-marks
+
–
1
1 vote
0
0 answers
867
867 views
go classes test series
Consider the following simple context-free grammars: Grammar G₁ Grammar G2 Grammar G3S → AA → εA → bbA S → AA → εA → bAb S → AA → εA → Abb The start symbols are S, the n...
jugnu1337
867
views
asked
Nov 29, 2024
Compiler Design
grammar
compiler-design
ll-parser
goclasses
+
–
0
0 votes
2
2 answers
369
369 views
CMI2024-A: 5
Let $\Sigma=\{a, b, c\}$. What is the language generated by the following grammar?\[S:=\epsilon|a S| S b \mid c S\]$(a+b+c)^{*} b^{*}$$(a+b+c)^{*} c^{*}$$(a+c)^{*} b^{*}$...
admin
369
views
asked
Nov 25, 2024
Theory of Computation
cmi2024
grammar
context-free-grammar
theory-of-computation
+
–
1
1 vote
1
1 answer
594
594 views
CMI2023-B: 1
Let $\Sigma=\{a, b\}$ be an alphabet. A palindrome is a word which reads the same when read from left-to-right, or from right-to-left. For example, the words $a b b a, a ...
admin
594
views
asked
Nov 13, 2024
Theory of Computation
cmi2023
theory-of-computation
regular-language
context-free-language
grammar
+
–
Page:
1
2
3
4
5
6
...
17
next »