Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged grammar
2
votes
1
answer
301
Ace Test Series: Compiler Design - Grammar
Is the following question even valid? Shouldn't there be a production for all variables?
Is the following question even valid? Shouldn't there be a production for all variables?
Kai
399
views
Kai
asked
Nov 19, 2016
Compiler Design
ace-test-series
compiler-design
grammar
+
–
1
votes
1
answer
302
Compiler
thor
324
views
thor
asked
Nov 17, 2016
Compiler Design
compiler-design
grammar
parsing
lr-parser
ll-parser
ace-test-series
+
–
2
votes
3
answers
303
Remove Left Recursion from given grammar, if any?
smartmeet
2.1k
views
smartmeet
asked
Nov 14, 2016
Compiler Design
compiler-design
parsing
grammar
left-recursion
test-series
+
–
1
votes
1
answer
304
Ace Test Series: Compiler Design - Grammar
mcjoshi
926
views
mcjoshi
asked
Nov 10, 2016
Compiler Design
ace-test-series
compiler-design
grammar
+
–
2
votes
3
answers
305
Theory-of-computation
S-> S+S | S*S | a | € Which is false? a) G is ambiguous b) L is ambiguous c) both a and b d) none
S- S+S | S*S | a | €Which is false? a) G is ambiguous b) L is ambiguous c) both a and bd) none
Chetnawadhwa
688
views
Chetnawadhwa
asked
Nov 8, 2016
Theory of Computation
theory-of-computation
ambiguous
inherently-ambiguous
grammar
+
–
25
votes
4
answers
306
GATE CSE 2006 | Question: 85
The grammar $S\rightarrow AC\mid CB$ $C\rightarrow aCb\mid \epsilon$ $A\rightarrow aA\mid a$ $B\rightarrow Bb\mid b$ generates the language $ L=\left \{ a^{i}b^{j}\mid i\neq j \right \}$. In this grammar what is the length of the derivation (number of steps starting from $S$) to generate ... $l\neq m$ $\max (l,m) + 2$ $l + m + 2$ $l + m + 3$ $\max (l,m) + 3$
The grammar$S\rightarrow AC\mid CB$$C\rightarrow aCb\mid \epsilon$$A\rightarrow aA\mid a$$B\rightarrow Bb\mid b$generates the language $ L=\left \{ a^{i}b^{j}\mid i\neq j...
go_editor
7.3k
views
go_editor
asked
Nov 7, 2016
Compiler Design
gatecse-2006
compiler-design
grammar
normal
+
–
2
votes
2
answers
307
ambiguous grammar
Consider the following context-free grammar S → SS + | SS*| a for the string aa + a*. Is the grammar ambiguous ?
Consider the following context-free grammarS → SS + | SS*| a for the string aa + a*. Is the grammar ambiguous ?
Shashank Chandekar
4.3k
views
Shashank Chandekar
asked
Nov 3, 2016
Compiler Design
ambiguous
compiler-design
grammar
theory-of-computation
+
–
4
votes
1
answer
308
parser
What is the maximum number of reduce moves that can be taken by a bottom up parser for a grammar without epsilon and unit production (i.e., of type A →∈ and A →B ) to parse a string with n tokens? 2n – 1 2n n – 1 n/2
What is the maximum number of reduce moves that can be taken by a bottom up parser for a grammar without epsilon and unit production (i.e., of type A →∈ and A →B ) ...
Shashank Chandekar
714
views
Shashank Chandekar
asked
Nov 3, 2016
Compiler Design
compiler-design
grammar
+
–
3
votes
1
answer
309
Predictive parse table ?
Predictive parse table for following grammars: 1.S->FR R->*S/∈ F->id and 2.S->iEtSS' | a S'->eS | ∈ E->b
Predictive parse table for following grammars:1.S->FR R->*S/∈ F->idand2.S->iEtSS' | a S'->eS | ∈ E->b
Karthik Akula
3.0k
views
Karthik Akula
asked
Oct 29, 2016
Compiler Design
compiler-design
parsing
grammar
+
–
1
votes
1
answer
310
What is the main objective of custom essay writing service
The main objective of custom essay writing service is to satisfy students requirements precisely. Which is a best service that can help students to achieve high grade without having any stress or worry. They provide personalized ... of this service and will definitely get a document that is well written and fulfills all your requirements.
The main objective of custom essay writing service is to satisfy students requirements precisely. Which is a best service that can help students to achieve high grade wi...
allennicol
354
views
allennicol
asked
Oct 17, 2016
Others
grammar
+
–
1
votes
2
answers
311
MadeEasy Test Series: Compiler Design - Grammar
Given the following expression grammer: E --> E * F | F + E | F F --> F - F | id Which of the following is true?? (a) * has higher precendence than + (b) - has higher precendence than * (c) + and - have same precendence (d) + has higher precendence than *
Given the following expression grammer:E E * F | F + E | FF F - F | idWhich of the following is true??(a) * has higher precendence than +(b) - has higher precendence ...
ARUN KUMAR 3
442
views
ARUN KUMAR 3
asked
Oct 12, 2016
Theory of Computation
made-easy-test-series
compiler-design
grammar
+
–
0
votes
1
answer
312
MadeEasy Test Series: Theory Of Computation - Grammar
If a parse tree is made for a w ε L(G), when G is in Chomsky-Normal form then what would be it's least height?? Plz explain what and how...
If a parse tree is made for a w ε L(G), when G is in Chomsky-Normal form then what would be it's least height?? Plz explain what and how...
ARUN KUMAR 3
547
views
ARUN KUMAR 3
asked
Oct 12, 2016
Theory of Computation
made-easy-test-series
theory-of-computation
grammar
+
–
0
votes
1
answer
313
#compiler design
Can ambiguous grammars have precedence and associativity??
Can ambiguous grammars have precedence and associativity??
Aman Jha
296
views
Aman Jha
asked
Oct 11, 2016
Compiler Design
grammar
+
–
0
votes
0
answers
314
Grammar Simplification
Rahul Jain25
586
views
Rahul Jain25
asked
Oct 9, 2016
Theory of Computation
theory-of-computation
grammar
context-free-language
+
–
1
votes
2
answers
315
UGC NET CSE | August 2016 | Part 2 | Question: 35
Which of the following is FALSE ? The grammar $S \rightarrow aS|aSbS|\in$, where $S$ is the only non-terminal symbol, and $\in$ is the null string, is ambiguous. An unambiguous grammar has same left most and right most derivation. An ambiguous grammar can never be $LR(k)$ for any $k$. Recursive descent parser is a top-down parser.
Which of the following is FALSE ?The grammar $S \rightarrow aS|aSbS|\in$, where $S$ is the only non-terminal symbol, and $\in$ is the null string, is ambiguous.An unambig...
makhdoom ghaya
2.6k
views
makhdoom ghaya
asked
Sep 28, 2016
Theory of Computation
ugcnetcse-aug2016-paper2
theory-of-computation
grammar
+
–
0
votes
2
answers
316
UGC NET CSE | June 2010 | Part 2 | Question: 34
Which of the following is the most general phase structured grammar ? Regular Context-sensitive Context free None of the above
Which of the following is the most general phase structured grammar ?RegularContext-sensitiveContext freeNone of the above
makhdoom ghaya
1.1k
views
makhdoom ghaya
asked
Sep 16, 2016
Compiler Design
ugcnetcse-june2010-paper2
compiler-design
grammar
+
–
1
votes
0
answers
317
Parsing
Consider the Grammer S -> (S) | SS | () In the goto graph of LR(0) item, the number of inadequate states are (A). 1 (B). 2 (C). 3 (D). 4
Consider the Grammer S - (S) | SS | ()In the goto graph of LR(0) item, the number of inadequate states are(A). 1(B). 2(C). 3(D). 4
anonymous
765
views
anonymous
asked
Aug 17, 2016
Compiler Design
compiler-design
parsing
grammar
lr-parser
+
–
3
votes
0
answers
318
Identify the grammar for Hindi language
Hindi words changes according to nearby words. eg: कौआ changes to कौए, in the context of को. What is the level of grammar which can successfully represent Hindi? a) Context free b) Context Sensitive but not Context free c) Recursive enumerable but not Context Sensitive d) Recursive but not Recursive enumerable
Hindi words changes according to nearby words.eg: कौआ changes to कौए, in the context of को.What is the level of grammar which can successfully represen...
sh!va
454
views
sh!va
asked
Aug 9, 2016
Unknown Category
theory-of-computation
grammar
+
–
6
votes
1
answer
319
MadeEasy Test Series: Theory Of Computation - Grammar
I am not getting how one of it is CLG & rest 2 are regular plz someone explain this..... thnks in advance...
I am not getting how one of it is CLG & rest 2 are regularplz someone explain this.....thnks in advance...
dileswar sahu
632
views
dileswar sahu
asked
Aug 9, 2016
Theory of Computation
made-easy-test-series
test-series
theory-of-computation
grammar
+
–
3
votes
1
answer
320
UGC NET CSE | December 2014 | Part 3 | Question: 62
Match the following $:$ ... $\text{a-iv, b-i, c-ii, d-iii}$ $\text{a-i, b-iv, c-iii, d-ii}$
Match the following $:$ $\begin{array} {clcl} & \textbf{List – I} && \textbf{List – II} \\ \text{a.}& \text{Context free grammar} & \text{i.} & \text{Linear bounded a...
makhdoom ghaya
881
views
makhdoom ghaya
asked
Aug 1, 2016
Theory of Computation
ugcnetcse-dec2014-paper3
theory-of-computation
grammar
+
–
1
votes
1
answer
321
UGC NET CSE | Junet 2015 | Part 2 | Question: 33
If all the production rules have single non-terminal symbol on the left side, the grammar defined is: Context free grammar Context sensitive grammar Unrestricted grammar Phase grammar
If all the production rules have single non-terminal symbol on the left side, the grammar defined is:Context free grammarContext sensitive grammarUnrestricted grammarPhas...
go_editor
2.8k
views
go_editor
asked
Jul 30, 2016
Theory of Computation
ugcnetcse-june2015-paper2
theory-of-computation
grammar
+
–
2
votes
1
answer
322
grammer compiler design
15. A grammar will be meaningless of the (a) terminal set and non-terminal set are not disjoint (b) left hand side of a productions is a single terminal (c) left hand side of a production has no non-terminal (d) all of the above
15. A grammar will be meaningless of the(a) terminal set and non-terminal set are not disjoint(b) left hand side of a productions is a single terminal(c) left hand side o...
vkm07
5.7k
views
vkm07
asked
Jul 28, 2016
Compiler Design
compiler-design
grammar
+
–
3
votes
3
answers
323
Compiler Design LR(0) Checking
Is E --> E+T / T , T --> i is LR(0) grammar ?
Is E E+T / T , T i is LR(0) grammar ?
Raveen Sharma
2.4k
views
Raveen Sharma
asked
Jul 23, 2016
Compiler Design
compiler-design
grammar
lr-parser
+
–
1
votes
1
answer
324
Parse trees
How will we treat the given two parse trees..? Are they same i.e one is has been derived using lmd n other using rmd or they both will be treated as two diffent parse trees concluding it as ambiguous.. Only with reference to the string 'b' otherwise i know its ambiguous...
How will we treat the given two parse trees..? Are they same i.e one is has been derived using lmd n other using rmd or they both will be treated as two diffent parse tr...
Chetnawadhwa
1.5k
views
Chetnawadhwa
asked
Jul 22, 2016
Theory of Computation
ambiguous
grammar
compiler-design
+
–
2
votes
3
answers
325
UGC NET CSE | September 2013 | Part 3 | Question: 18
Given the following production of a grammar: $S \rightarrow aA \mid aBB$; $A \rightarrow aaA \mid \lambda$; $B \rightarrow bB \mid bbC$; $C \rightarrow B$ Which of the following is true? The language corresponding to the given ... 's The language corresponding to the given grammar is a set of odd number of a's followed by even number of b's
Given the following production of a grammar:$S \rightarrow aA \mid aBB$;$A \rightarrow aaA \mid \lambda$;$B \rightarrow bB \mid bbC$;$C \rightarrow B$Which of the followi...
go_editor
2.6k
views
go_editor
asked
Jul 22, 2016
Theory of Computation
ugcnetcse-sep2013-paper3
theory-of-computation
grammar
+
–
1
votes
1
answer
326
UGC NET CSE | September 2013 | Part 2 | Question: 17
Assume the statements $S_1$ and $S_2$ given as: $S_1$: Given a context free grammar G, there exists an algorithm for determining whether L(G) is infinite. $S_2$: There exists an algorithm to determine whether two context free grammars generate ... $S_2$ are correct Both $S_1$ and $S_2$ are not correct $S_1$ is not correct and $S_2$ is correct
Assume the statements $S_1$ and $S_2$ given as:$S_1$: Given a context free grammar G, there exists an algorithm for determining whether L(G) is infinite.$S_2$: There exis...
go_editor
3.4k
views
go_editor
asked
Jul 20, 2016
Theory of Computation
ugcnetsep2013ii
theory-of-computation
grammar
+
–
1
votes
1
answer
327
UGC NET CSE | September 2013 | Part 2 | Question: 16
LL grammar for the language $L = \{a^n b^m c^{n+m} \mid m \geq 0, n \geq 0\}$ is $ S \rightarrow aSc \mid S_1 ; S_1 \rightarrow bS_1c \mid \lambda$ ... $ S \rightarrow aSc \mid S_1 \lambda ; S_1 \rightarrow bS_1c \mid \lambda$
LL grammar for the language $L = \{a^n b^m c^{n+m} \mid m \geq 0, n \geq 0\}$ is$ S \rightarrow aSc \mid S_1 ; S_1 \rightarrow bS_1c \mid \lambda$$ S \rightarrow aSc \mid...
go_editor
1.5k
views
go_editor
asked
Jul 20, 2016
Theory of Computation
ugcnetsep2013ii
theory-of-computation
grammar
+
–
2
votes
1
answer
328
UGC NET CSE | June 2013 | Part 3 | Question: 35
Which of the following is/are the fundamental semantic model(s) of parameter passing? in mode out mode in-out mode all of the above
Which of the following is/are the fundamental semantic model(s) of parameter passing?in modeout modein-out modeall of the above
go_editor
1.2k
views
go_editor
asked
Jul 17, 2016
Theory of Computation
ugcnetcse-june2013-paper3
theory-of-computation
grammar
+
–
0
votes
1
answer
329
UGC NET CSE | June 2014 | Part 3 | Question: 74
Match the following $:$ ... $\text{a-iii, b-iv, c-i, d-ii}$ $\text{a-iii, b-iv, c-ii, d-i}$
Match the following $:$$\begin{array}{clcl} & \textbf{List – I} & & \textbf{List – II} \\ \text{a.} & \text{Chomsky Normal form} & \text{i.} & S \rightarrow b S S...
makhdoom ghaya
2.4k
views
makhdoom ghaya
asked
Jul 15, 2016
Theory of Computation
ugcnetjune2014iii
theory-of-computation
grammar
+
–
3
votes
1
answer
330
UGC NET CSE | June 2014 | Part 3 | Question: 73
Given the following two grammars : $G_{1} : S \rightarrow AB | aaB$ $ A \rightarrow a | Aa$ $B \rightarrow b$ $G_{2} : S \rightarrow a S b S | b S a S | \lambda$ Which statement is correct ? $G_{1}$ is unambiguous and $G_{2}$ is ... $G_{2}$ is ambiguous. $G_{1}$ is ambiguous and $G_{2}$ is unambiguous. $G_{1}$ is ambiguous and $G_{2}$ is ambiguous.
Given the following two grammars :$G_{1} : S \rightarrow AB | aaB$ $ A \rightarrow a | Aa$ $B \rightarrow b$ $G_{2} : S \rightarrow a S b S | b ...
makhdoom ghaya
3.9k
views
makhdoom ghaya
asked
Jul 15, 2016
Theory of Computation
ugcnetjune2014iii
theory-of-computation
grammar
+
–
Page:
« prev
1
...
6
7
8
9
10
11
12
13
14
15
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register