Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Compiler Design:
Recent questions tagged compiler-design
2
votes
1
answer
1441
Test by Bikram | Compiler Design | Test 1 | Question: 14
Consider the following grammar: $E' \rightarrow E$ $E \rightarrow E + Y \mid Y$ $Y \rightarrow Y ^* F \mid F$ $F \rightarrow id \mid (E)$ How many $LR(0)$ items are there in closure $(\{E' \rightarrow \cdot E\})$? $1$ $6$ $7$ $5$
Consider the following grammar: $E' \rightarrow E$$E \rightarrow E + Y \mid Y$$Y \rightarrow Y ^* F \mid F$$F \rightarrow id \mid (E)$How many $LR(0)$ items are there in ...
Bikram
392
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
parsing
+
–
3
votes
1
answer
1442
Test by Bikram | Compiler Design | Test 1 | Question: 13
Consider following Translation Scheme: $S \rightarrow ER$ $R \rightarrow ^* E \{ print \{' *' \}; \} R \mid \epsilon$ $E \rightarrow F + E \{ print ('+');\} \mid F$ $F \rightarrow S \mid id \{ print (id,value) ; \}$ Here, $id$ is a ... for an input " $1* 7 + 9$ "? $1 7* + 9$ $1 * 7 9 +$ $1 7 9 * +$ $179 + *$
Consider following Translation Scheme:$S \rightarrow ER$$R \rightarrow ^* E \{ print \{' *' \}; \} R \mid \epsilon$$E \rightarrow F + E \{ print ('+');\} \mid F$$F \right...
Bikram
273
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
syntax-directed-translation
+
–
2
votes
2
answers
1443
Test by Bikram | Compiler Design | Test 1 | Question: 12
Read the below mentioned grammar: $S \rightarrow X$ $X \rightarrow YX \mid \epsilon$ $Y \rightarrow aY \mid b$ This grammar is NOT: $LALR$ $LR (0)$ $LR(1)$ None of the above
Read the below mentioned grammar:$S \rightarrow X$$X \rightarrow YX \mid \epsilon$$Y \rightarrow aY \mid b$This grammar is NOT:$LALR$$LR (0)$$LR(1)$None of the above
Bikram
441
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
grammar
+
–
3
votes
1
answer
1444
Test by Bikram | Compiler Design | Test 1 | Question: 11
In the construction of $LL(1)$ parsing table for the following grammar $M[S,( ] \& M [W, \$]$ are respectively $S \rightarrow XY$ $X \rightarrow (S) \mid \text{ int } W$ $Y\rightarrow +S \mid \epsilon$ $W \rightarrow ^* ... $S \rightarrow XY, \ W \rightarrow \epsilon$ $S \rightarrow YX, \ W \rightarrow \epsilon$
In the construction of $LL(1)$ parsing table for the following grammar $M[S,( ] \& M [W, \$]$ are respectively$S \rightarrow XY$$X \rightarrow (S) \mid \text{ int } W$$Y\...
Bikram
243
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
parsing
+
–
3
votes
1
answer
1445
Test by Bikram | Compiler Design | Test 1 | Question: 10
The grammar which has no epsilon transition or two adjacent nonterminals in the right side of any production is ___________. LL(1) grammar Unambiguous grammar Operator grammar Context Sensitive grammar
The grammar which has no epsilon transition or two adjacent nonterminals in the right side of any production is ___________.LL(1) grammarUnambiguous grammarOperator gramm...
Bikram
361
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
parsing
grammar
+
–
2
votes
1
answer
1446
Test by Bikram | Compiler Design | Test 1 | Question: 9
___________ parsers build parse trees starting from the root node and work down to the leaves. LR LL SLR LALR
___________ parsers build parse trees starting from the root node and work down to the leaves.LRLLSLRLALR
Bikram
224
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
parsing
+
–
2
votes
2
answers
1447
Test by Bikram | Compiler Design | Test 1 | Question: 8
Read the following grammar: $S \rightarrow Ka \mid bKc \mid dc \mid bda$ $K \rightarrow d$ This grammar is NOT: LALR(1) SLR(1) LR(1) None of the above
Read the following grammar:$S \rightarrow Ka \mid bKc \mid dc \mid bda$$K \rightarrow d$This grammar is NOT:LALR(1)SLR(1)LR(1)None of the above
Bikram
571
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
grammar
+
–
4
votes
1
answer
1448
Test by Bikram | Compiler Design | Test 1 | Question: 7
The number of proper prefixes for a string of length $n$ are ___________. $n+1$ $n(n+1)/2$ $n-1$ $(n-1)/2$
The number of proper prefixes for a string of length $n$ are ___________.$n+1$$n(n+1)/2$$n-1$$(n-1)/2$
Bikram
558
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
combinatory
counting
+
–
3
votes
2
answers
1449
Test by Bikram | Compiler Design | Test 1 | Question: 6
Consider the following grammars: $Z \rightarrow TZ'$ $Z' \rightarrow ^* TZ' \mid \epsilon$ $T \rightarrow YT'$ $T ' \rightarrow ^*YT ' \mid \epsilon$ $Y \rightarrow (Z) \mid id$ Which of the following is First(Z)? $\{T, ) \}$ $\{(, id \}$ $\{ ), \$ \}$ None of the above
Consider the following grammars:$Z \rightarrow TZ'$$Z' \rightarrow ^* TZ' \mid \epsilon$$T \rightarrow YT'$$T ' \rightarrow ^*YT ' \mid \epsilon$$Y \rightarrow (Z) \mi...
Bikram
243
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
parsing
grammar
+
–
2
votes
1
answer
1450
Test by Bikram | Compiler Design | Test 1 | Question: 5
__________ is the most powerful parsing method. LL(1) LALR SLR Canonical LR
__________ is the most powerful parsing method.LL(1)LALRSLRCanonical LR
Bikram
388
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
parsing
+
–
2
votes
1
answer
1451
Test by Bikram | Compiler Design | Test 1 | Question: 4
A top-down parser generates ________________. right-most derivation right-most derivation in reverse left-most derivation left-most derivation in reverse
A top-down parser generates ________________.right-most derivationright-most derivation in reverseleft-most derivationleft-most derivation in reverse
Bikram
318
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
parsing
+
–
2
votes
1
answer
1452
Test by Bikram | Compiler Design | Test 1 | Question: 3
Consider the following two parse trees for the expression: $6 - 4 - 3$ list list / | \ / | \ / | \ / | \ list --- number number --- list / | \ | | / | \ / | \ | | / | \ list - number 3 6 ... grammar generating the sentence is not ambiguous. Which of the above statements are FALSE? Only $2$ $1$ and $2$ Only $1$ Both statements are correct
Consider the following two parse trees for the expression: $6 - 4 - 3$ list list / | \ ...
Bikram
477
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
parsing
+
–
2
votes
1
answer
1453
Test by Bikram | Compiler Design | Test 1 | Question: 2
The default type of conflict resolution rule for the Yacc parser generator is _________________. in favor of shift in favor of reduce either shift or reduce dependent on a situation
The default type of conflict resolution rule for the Yacc parser generator is _________________. in favor of shift in favor of reduce either shift or reduce depen...
Bikram
550
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
parsing
+
–
3
votes
1
answer
1454
Test by Bikram | Compiler Design | Test 1 | Question: 1
Match the following: ... $a-3; b-4; c-2; d-1$ $a-2; b-1; c-4; d-3$ $a-3; b-2; c-4; d-1$
Match the following:$$\begin{array}{|l|l|l|l|} \hline a. & \text{Canonical Parser} & 1. & \text{No adjacent nonterminals} \\ \hline b. & \text{SLR(1) Parser} & 2. & \text...
Bikram
278
views
Bikram
asked
Nov 25, 2016
Compiler Design
tbb-cd-1
compiler-design
parsing
+
–
4
votes
2
answers
1455
GATE CSE 1990 | Question: 11a
What does the following program output? program module (input, output); var a:array [1...5] of integer; i, j: integer; procedure unknown (var b: integer, var c: integer); var i:integer; begin for i := 1 to 5 do a[i] := i; b:= 0; c := 0 for i := 1 to 5 do write (a[i]); ... b := 5; c := 6; end; begin i:=1; j:=3; unknown (a[i], a[j]); for i:=1 to 5 do write (a[i]); end;
What does the following program output?program module (input, output); var a:array [1...5] of integer; i, j: integer; procedure unknown (var b: integer, var c: integer); ...
makhdoom ghaya
1.8k
views
makhdoom ghaya
asked
Nov 25, 2016
Compiler Design
gate1990
descriptive
compiler-design
runtime-environment
parameter-passing
+
–
0
votes
1
answer
1456
In SDT what is the role of array reference in the Arithmetic Expression?
In SDT what is the role of array reference in the Arithmetic Expression please explain
In SDT what is the role of array reference in the Arithmetic Expression please explain
LavTheRawkstar
1.1k
views
LavTheRawkstar
asked
Nov 24, 2016
Unknown Category
compiler-design
+
–
17
votes
2
answers
1457
GATE CSE 1990 | Question: 4-v
State whether the following statements are TRUE or FALSE with reason: The Link-load-and-go loading scheme required less storage space than the link-and-go loading scheme.
State whether the following statements are TRUE or FALSE with reason:The Link-load-and-go loading scheme required less storage space than the link-and-go loading scheme.
makhdoom ghaya
4.3k
views
makhdoom ghaya
asked
Nov 23, 2016
Compiler Design
gate1990
true-false
compiler-design
runtime-environment
+
–
2
votes
0
answers
1458
MadeEasy Test Series: Compiler Design - Syntax Directed Translation
I think we can not traverse the tree..because it is not a valid SDT, A is taking value from sign. Correct me if i am wring.
I think we can not traverse the tree..because it is not a valid SDT, A is taking value from sign.Correct me if i am wring.
vaishali jhalani
639
views
vaishali jhalani
asked
Nov 23, 2016
Compiler Design
made-easy-test-series
compiler-design
syntax-directed-translation
+
–
1
votes
3
answers
1459
MadeEasy Test Series: Compiler Design - Parsing
Let 'x', 'y', 'z' and 'u' represents the number of entries in rows of Non-terminals 'S', 'A', 'B' and 'C' respectively. The value of x + y + z + u is ______ .
Let 'x', 'y', 'z' and 'u' represents the number of entries in rows of Non-terminals 'S', 'A', 'B' and 'C' respectively. The value of x + y + z + u is ______ .
vaishali jhalani
2.3k
views
vaishali jhalani
asked
Nov 23, 2016
Compiler Design
made-easy-test-series
compiler-design
parsing
+
–
1
votes
0
answers
1460
MadeEasy Test Series: Compiler Design - Syntax Directed Translation
vaishali jhalani
603
views
vaishali jhalani
asked
Nov 23, 2016
Compiler Design
made-easy-test-series
compiler-design
syntax-directed-translation
+
–
1
votes
0
answers
1461
DAg for this wil be _________
LavTheRawkstar
266
views
LavTheRawkstar
asked
Nov 23, 2016
Compiler Design
compiler-design
+
–
1
votes
2
answers
1462
MadeEasy Test Series: Compiler Design - Parsing
How many conflicts are present in LR(0) parser..i am getting 3.
How many conflicts are present in LR(0) parser..i am getting 3.
vaishali jhalani
677
views
vaishali jhalani
asked
Nov 23, 2016
Compiler Design
made-easy-test-series
compiler-design
parsing
lr-parser
+
–
1
votes
1
answer
1463
access link
vaishali jhalani
1.5k
views
vaishali jhalani
asked
Nov 23, 2016
Compiler Design
compiler-design
runtime-environment
test-series
+
–
1
votes
2
answers
1464
MadeEasy Test Series: Compiler Design - Syntax Directed Translation
vaishali jhalani
1.0k
views
vaishali jhalani
asked
Nov 23, 2016
Compiler Design
made-easy-test-series
compiler-design
syntax-directed-translation
+
–
0
votes
1
answer
1465
The issues in the design of code generation are __
The issues in the design of Code generation are ________ The issues in the design of code generation are due the what reason ? The compiler converts the source code by accepting HLL into target code or machine code ... the various instructions . These dynamic acyclic graphs which are obtianed are they platform independent or platform independent??
The issues in the design of Code generation are ________The issues in the design of code generation are due the what reason ?The compiler converts the source code by acce...
LavTheRawkstar
2.2k
views
LavTheRawkstar
asked
Nov 23, 2016
Compiler Design
compiler-design
intermediate-code
+
–
1
votes
1
answer
1466
error while compilation
vaishali jhalani
357
views
vaishali jhalani
asked
Nov 23, 2016
Compiler Design
compiler-design
lexical-analysis
test-series
+
–
0
votes
0
answers
1467
What are the important topics of TOC?
I have started GATE preparation today, I am not comfortable with Theory of computation, Compiler design and COA, please provide me list of topics which have highest mark distribution and should be concentrated
I have started GATE preparation today, I am not comfortable with Theory of computation, Compiler design and COA, please provide me list of topics which have highest mark ...
PieChuckerr
1.5k
views
PieChuckerr
asked
Nov 22, 2016
Theory of Computation
theory-of-computation
compiler-design
co-and-architecture
+
–
0
votes
1
answer
1468
ACE test
The Grammar E->TE|a, T->ET|b is (a) LR(0) (b) SLR(1) (c) LR(1) (d) None
The Grammar E->TE|a, T->ET|b is (a) LR(0) (b) SLR(1) (c) LR(1) (d) None
Nashreen Sultana
275
views
Nashreen Sultana
asked
Nov 22, 2016
Compiler Design
compiler-design
parsing
lr-parser
ace-test-series
+
–
0
votes
1
answer
1469
compilation
Which of the following class of statement usually produces no executable codes when compiled? Assignment Declaration Input and output statement Structural statements
Which of the following class of statement usually produces no executable codes when compiled?Assignment Declaration Input and output statement Structural statements
vaishali jhalani
750
views
vaishali jhalani
asked
Nov 22, 2016
Compiler Design
compiler-design
intermediate-code
three-address-code
+
–
0
votes
1
answer
1470
MadeEasy Test Series: Compiler Design - Grammar
vaishali jhalani
311
views
vaishali jhalani
asked
Nov 22, 2016
Theory of Computation
made-easy-test-series
compiler-design
grammar
+
–
Page:
« prev
1
...
44
45
46
47
48
49
50
51
52
53
54
...
68
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register