Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged grammar
2
votes
1
answer
331
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
332
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
333
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
+
–
3
votes
2
answers
334
UGC NET CSE | December 2012 | Part 3 | Question: 42
The grammar ‘GI’ $S \rightarrow OSO \mid ISI \mid 0 \mid 1 \mid \in$ and the grammar G2 is $ S \rightarrow as \mid asb \mid X, X \rightarrow Xa \mid a$. Which is the correct statement? G1 is ambiguous, G2 is unambiguous G1 is unambiguous, G2 is ambiguous Both G1 and G2 are ambiguous Both G1 and G2 are unambiguous
The grammar ‘GI’ $S \rightarrow OSO \mid ISI \mid 0 \mid 1 \mid \in$ and the grammar G2 is $ S \rightarrow as \mid asb \mid X, X \rightarrow Xa \mid a$.Which is the c...
go_editor
4.1k
views
go_editor
asked
Jul 13, 2016
Theory of Computation
ugcnetcse-dec2012-paper3
theory-of-computation
grammar
+
–
2
votes
1
answer
335
Peterlinz question
Please write grammar for it and explain with example. $L=\{w \: : n_a(w) > n_b(w) \}$
Please write grammar for it and explain with example.$L=\{w \: : n_a(w) n_b(w) \}$
Lakshya Mission 1
437
views
Lakshya Mission 1
asked
Jul 8, 2016
Theory of Computation
grammar
theory-of-computation
+
–
1
votes
1
answer
336
Peterlinz exercise
Please solve this question with proper explanation: $L=\{ w : \: n_a(w) = 2n_b(w) \}$
Please solve this question with proper explanation:$L=\{ w : \: n_a(w) = 2n_b(w) \}$
Lakshya Mission 1
402
views
Lakshya Mission 1
asked
Jul 8, 2016
Theory of Computation
grammar
theory-of-computation
+
–
3
votes
2
answers
337
UGC NET CSE | June 2012 | Part 3 | Question: 32
The equivalent grammar corresponding to the grammar $G:S \rightarrow aA, A \rightarrow BB, B \rightarrow aBb \mid \varepsilon$ is $S \rightarrow aA, A \rightarrow BB, B \rightarrow aBb$ ... $S \rightarrow a \mid aA, A \rightarrow BB \mid B , B \rightarrow aBb \mid ab$
The equivalent grammar corresponding to the grammar $G:S \rightarrow aA, A \rightarrow BB, B \rightarrow aBb \mid \varepsilon$ is$S \rightarrow aA, A \rightarrow BB, B \r...
go_editor
5.4k
views
go_editor
asked
Jul 7, 2016
Theory of Computation
theory-of-computation
grammar
context-free-language
ugcnetcse-june2012-paper3
+
–
8
votes
4
answers
338
ISRO2014-52
Consider the following grammar. $S \rightarrow AB$ $A \rightarrow a$ $A \rightarrow BaB$ $B \rightarrow bbA$ Which of the following statements is FALSE? The length of every string produced by this grammar is even No string produced by this grammar has three ... $B$ is always odd No string produced by this grammar has four consecutive $b's$
Consider the following grammar.$S \rightarrow AB$$A \rightarrow a$$A \rightarrow BaB$$B \rightarrow bbA$Which of the following statements is FALSE?The length of every ...
go_editor
6.5k
views
go_editor
asked
Jul 1, 2016
Compiler Design
isro2014
compiler-design
grammar
parsing
+
–
1
votes
2
answers
339
Gate Genral Questions
Consider the following Grammar : S` - > S# S - > ABC A - > a | bbD B - > a | ε C - > b | ε D - > c | ε (i) Construct first and Follow sets for the grammar. (ii)Design a LL(1) parsing using table for this grammar.Also parse 'bbcab' string using the parsing table.
Consider the following Grammar :S - S#S - ABCA - a | bbDB - a | εC - b | εD - c | ε (i) Construct first and Follow sets for the grammar.(ii)Design a...
LavTheRawkstar
9.1k
views
LavTheRawkstar
asked
Jun 25, 2016
Compiler Design
compiler-design
grammar
parsing
first-and-follow
ll-parser
+
–
3
votes
1
answer
340
Calculate the FIRST and FOLLOW for each non Terminal
Consider the Following Grammar P - > S S - > A | A ;S A - > id = E E - > E+E | E-E | E*E | E/E | (E) | T T - > id | num Calculate FIRST and FOLLOW for each non terminal.
Consider the Following GrammarP - SS - A | A ;S A - id = EE - E+E | E-E | E*E | E/E | (E) | TT - id | numCalculate FIRST and FOLLOW for each non terminal.
LavTheRawkstar
1.6k
views
LavTheRawkstar
asked
Jun 25, 2016
Compiler Design
compiler-design
grammar
parsing
first-and-follow
descriptive
+
–
3
votes
2
answers
341
ambiguous grammar
An ambiguous grammar is one that produces more than one left most derivation for the same sentence. more than one right most derivation for the same sentence. more than one leftmost derivation for the different sentence. i and ii i or ii ii and iii ii or iii
An ambiguous grammar is one that producesmore than one left most derivation for the same sentence.more than one right most derivation for the same sentence.more than one ...
vivekpinto07
4.0k
views
vivekpinto07
asked
Jun 24, 2016
Unknown Category
parsing
compiler-design
grammar
ambiguous
+
–
7
votes
4
answers
342
ISRO2011-68
Which of the following sentences can be generated by S -> aS $\mid$ bA A -> d $\mid$ cA bccdd abbcca abcabc abcd
Which of the following sentences can be generated by S - aS $\mid$ bAA - d $\mid$ cAbccddabbccaabcabcabcd
go_editor
5.2k
views
go_editor
asked
Jun 23, 2016
Theory of Computation
isro2011
theory-of-computation
context-free-language
grammar
+
–
3
votes
1
answer
343
TOC CFG
If language $L=\{a^n b^n \mid n \geq 0\}$, then language $L^2$ is given by $\{a^{2n} b^{2n} \mid n \geq 0\}$ $\{a^n b^n a^n b^n \mid n \geq 0\}$ $\{a^n b^n \mid n \geq 0\}$ $\{a^n b^n a^m b^m \mid n, m \geq 0\}$
If language $L=\{a^n b^n \mid n \geq 0\}$, then language $L^2$ is given by$\{a^{2n} b^{2n} \mid n \geq 0\}$$\{a^n b^n a^n b^n \mid n \geq 0\}$$\{a^n b^n \mid n \geq 0\}$$...
himanich
612
views
himanich
asked
Jun 22, 2016
Theory of Computation
theory-of-computation
grammar
context-free-language
+
–
0
votes
2
answers
344
Compiler Design Grammar
geet.m
473
views
geet.m
asked
Jun 21, 2016
Compiler Design
compiler-design
grammar
test-series
+
–
1
votes
2
answers
345
Toc CFG
The production rules for a given context-free grammar are $S \rightarrow aA, A \rightarrow bB, A \rightarrow aB$ and $B \rightarrow a$ in Chomsky normal form Greibach normal form Simple form None of the above
The production rules for a given context-free grammar are $S \rightarrow aA, A \rightarrow bB, A \rightarrow aB$ and $B \rightarrow a$ inChomsky normal formGreibach norma...
shaff
550
views
shaff
asked
Jun 21, 2016
Theory of Computation
theory-of-computation
grammar
context-free-language
+
–
0
votes
2
answers
346
Compiler Design Phase
Analysis which determines the meaning of a statement once its grammatical structure becomes known is termed as (A) Semantic analysis (B) Syntax analysis (C) Regular analysis (D) General analysis
Analysis which determines the meaning of a statement once its grammatical structure becomes known is termed as (A) Semantic analysis (B) Syntax a...
snakeeye
3.7k
views
snakeeye
asked
Jun 19, 2016
Compiler Design
compiler-design
grammar
+
–
1
votes
1
answer
347
what is the meaning of non contracting grammar ?
Don't you worry
941
views
Don't you worry
asked
Jun 16, 2016
Theory of Computation
grammar
+
–
0
votes
3
answers
348
Which of the following is most general phase structured grammar?
(A) Context – Sensitive (B) Regular (C) Context – Free (D) None of the above
(A) Context – Sensitive (B) Regular(C) Context – Free (D) None of the above
prashant9
13.8k
views
prashant9
asked
Jun 15, 2016
Compiler Design
compiler-design
grammar
+
–
1
votes
2
answers
349
TOC Grammar
What is the Language represented by this L = {w / where w ={a ,b}} and Na(w)>=Nb(w)+1.What is the machine which can be used to process this lang ?
What is the Language represented by this L = {w / where w ={a ,b}} and Na(w)>=Nb(w)+1.What is the machine which can be used to process this lang ?
shekhar chauhan
1.4k
views
shekhar chauhan
asked
Jun 15, 2016
Theory of Computation
theory-of-computation
grammar
+
–
7
votes
7
answers
350
ISRO2008-7
Consider the grammar $S \rightarrow ABCc \mid bc$ $BA \rightarrow AB$ $Bb \rightarrow bb$ $Ab \rightarrow ab$ $Aa \rightarrow aa$ Which of the following sentences can be derived by this grammar? abc aab abcc abbc
Consider the grammar$S \rightarrow ABCc \mid bc$$BA \rightarrow AB$$Bb \rightarrow bb$$Ab \rightarrow ab$$Aa \rightarrow aa$Which of the following sentences can be derive...
go_editor
10.1k
views
go_editor
asked
Jun 10, 2016
Theory of Computation
isro2008
theory-of-computation
context-free-language
grammar
+
–
2
votes
2
answers
351
UGC NET CSE | June 2014 | Part 2 | Question: 06
A grammar $G$ is $LL(1)$ if and only if the following conditions hold for two distinct productions $A \rightarrow \alpha \mid \beta$ I. First $(\alpha) \cap$ First $(\beta) \neq \left\{a\right\}$ where $a$ is some terminal symbol of the grammar. II. ... Follow $(A) = \phi$ if $\lambda \in$ First $(\beta)$ I and II I and III II and III I, II and III
A grammar $G$ is $LL(1)$ if and only if the following conditions hold for two distinct productions $A \rightarrow \alpha \mid \beta$I. First $(\alpha) \cap$ First $(\beta...
makhdoom ghaya
4.4k
views
makhdoom ghaya
asked
Jun 8, 2016
Compiler Design
ugcnetcse-june2014-paper2
compiler-design
grammar
parsing
+
–
2
votes
1
answer
352
Automata Grmmar Language
What is the Language represented by this given Grammar ? S ---> AS1 S1 ---> aS1b /eps A --->aA /eps Please solve it completely don't write just Answer because it need to know the method .
What is the Language represented by this given Grammar ?S - AS1S1 - aS1b /epsA ->aA /epsPlease solve it completely don't write just Answer because it need to know the ...
shekhar chauhan
376
views
shekhar chauhan
asked
Jun 6, 2016
Theory of Computation
theory-of-computation
grammar
+
–
0
votes
2
answers
353
Automata Grammar Language
What is the relationship between a Language -to- Grammar and a Grammar -to -Language .Give an example for both. A. One -to- Many B. One -to- One C. Many -to- One D. Many to- Many
What is the relationship between a Language -to- Grammar and a Grammar -to -Language .Give an example for both.A. One -to- ManyB. One -to- OneC. Many -to- One D. Many to-...
shekhar chauhan
435
views
shekhar chauhan
asked
Jun 6, 2016
Theory of Computation
theory-of-computation
grammar
+
–
1
votes
2
answers
354
Automata Language Grammar
What is one of the Grammar represented by this Language ? L = {a^n b^n+1 where n>=0} Give an Example for this.
What is one of the Grammar represented by this Language ?L = {a^n b^n+1 where n>=0} Give an Example for this.
shekhar chauhan
589
views
shekhar chauhan
asked
Jun 6, 2016
Theory of Computation
theory-of-computation
grammar
+
–
1
votes
4
answers
355
UGC NET CSE | December 2015 | Part 3 | Question: 24
The language of all non-null strings of a's can be defined by a context free grammar as follow : $S \rightarrow a \: S \mid S\: a \mid a$ The word $a^3$ can be generated by ______ different trees. Two Three Four Five
The language of all non-null strings of a's can be defined by a context free grammar as follow :$S \rightarrow a \: S \mid S\: a \mid a$The word $a^3$ can be generated by...
shekhar chauhan
4.1k
views
shekhar chauhan
asked
Jun 5, 2016
Compiler Design
compiler-design
grammar
ugcnetcse-dec2015-paper3
+
–
2
votes
1
answer
356
Does all parse parse's only DCFL ? or is there any exceptional parser which can be used for any other Language.
Explain briefly .
shekhar chauhan
385
views
shekhar chauhan
asked
Jun 5, 2016
Compiler Design
compiler-design
grammar
+
–
0
votes
1
answer
357
What does it mean by equality and inclusion of a given Grammar ? In what kind of problems do we use such concept .
shekhar chauhan
444
views
shekhar chauhan
asked
Jun 5, 2016
Compiler Design
compiler-design
grammar
+
–
0
votes
0
answers
358
Why LR(k) Grammar requirement is less Stringent then for LL(k) Grammar ?
Is this statement is correct or incorrect ? Write some few lines about Why.
Is this statement is correct or incorrect ? Write some few lines about Why.
shekhar chauhan
484
views
shekhar chauhan
asked
Jun 5, 2016
Compiler Design
compiler-design
grammar
+
–
2
votes
1
answer
359
How to remove Left recursion from this Grammar ?
A-->AA+/AA*/a is it eligible to be used by SR parse. If we apply SR parse on this grammar then what will be the order of activation Record in Stack
A >AA+/AA*/ais it eligible to be used by SR parse.If we apply SR parse on this grammar then what will be the order of activation Record in Stack
shekhar chauhan
674
views
shekhar chauhan
asked
Jun 4, 2016
Compiler Design
compiler-design
parsing
grammar
recurrence-relation
+
–
0
votes
1
answer
360
Compiler
There may exist a grammar that is non LL(1) but generating an LL(1) language. Explain whether the above statement is true or false .
There may exist a grammar that is non LL(1) but generating an LL(1) language.Explain whether the above statement is true or false .
ManojK
368
views
ManojK
asked
Jun 1, 2016
Compiler Design
compiler-design
grammar
parsing
ll-parser
descriptive
+
–
Page:
« prev
1
...
7
8
9
10
11
12
13
14
15
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register