Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Compiler Design:
Recent questions tagged compiler-design
0
votes
0
answers
631
compiler
backtracking is required only for top down parser? true/false
backtracking is required only for top down parser? true/false
Deepesh Pai
256
views
Deepesh Pai
asked
Dec 2, 2018
Compiler Design
compiler-design
+
–
0
votes
2
answers
632
parser doubt
Consider the statements: (i) Every regular grammar is LL(1) (ii) Every LL(1) grammar is LALR(1) (iii) All LR(0) grammars are LL(k) (iv) A context-free grammar without left factoring and left recursion can be ambiguous Which of the above statement/s is/are TRUE? (i) only (i) and (iii) only (ii) and (iv) only (iv) only
Consider the statements: (i) Every regular grammar is LL(1) (ii) Every LL(1) grammar is LALR(1) (iii) All LR(0) grammars are LL(k) (iv) A context-free grammar without lef...
Pavan Shetty
1.4k
views
Pavan Shetty
asked
Dec 1, 2018
Compiler Design
compiler-design
parsing
grammar
+
–
0
votes
1
answer
633
#zealtest #compiler #1
Deepesh Pai
403
views
Deepesh Pai
asked
Nov 30, 2018
Compiler Design
compiler-design
runtime-environment
activation-record
numerical-answers
zeal-test-series
+
–
0
votes
2
answers
634
compiler design, Syntax directed tree
Select the correct one from the below given options. 1. The parser’s output is abstract syntax tree, which represents the grammatical structure of the parse input. 2. Parse tree is condensed form of Abstract Syntax tree. 3. In abstract syntax tree the operators can appear as leaves while keywords cannot appear as leaves. 4.All of the above are true
Select the correct one from the below given options.1. The parser’s output is abstract syntax tree, which represents the grammatical structure of the parse input. 2. Pa...
Priyansh Singh
566
views
Priyansh Singh
asked
Nov 30, 2018
Compiler Design
compiler-design
syntax-directed-translation
syntax-directed-translation
+
–
1
votes
0
answers
635
Triple Representation of x[i]=y
Given Answer is A
Given Answer is A
Aakash_
1.5k
views
Aakash_
asked
Nov 30, 2018
Compiler Design
compiler-design
intermediate-code
+
–
0
votes
0
answers
636
Gateforum Test Series: Compiler Design - Code Optimization
Gupta731
413
views
Gupta731
asked
Nov 29, 2018
Compiler Design
gateforum-test-series
compiler-design
code-optimization
+
–
0
votes
0
answers
637
Gateforum Test Series
Consider the following Grammar G S-->SX|SSb|XS|a X-->a|Xb The number of productions in the grammar(including epsilon production) after removing left recursion is ?
Consider the following Grammar GS >SX|SSb|XS|aX >a|XbThe number of productions in the grammar(including epsilon production) after removing left recursion is ?
Gupta731
625
views
Gupta731
asked
Nov 29, 2018
Compiler Design
gateforum-test-series
compiler-design
+
–
0
votes
1
answer
638
compiler1
Deepesh Pai
385
views
Deepesh Pai
asked
Nov 28, 2018
Compiler Design
compiler-design
parsing
test-series
+
–
0
votes
0
answers
639
MadeEasy Workbook: Compiler Design - Parsing
Deepesh Pai
439
views
Deepesh Pai
asked
Nov 28, 2018
Compiler Design
compiler-design
parsing
made-easy-booklet
+
–
0
votes
1
answer
640
Test Book- Complier Design
Consider the following issues Simplifies the phases. Compiler efficiency is improved. Compiler works faster. Does not require a stack. Which is/are true in context of lexical analysis? pls provide an explanation as well..
Consider the following issuesSimplifies the phases.Compiler efficiency is improved.Compiler works faster.Does not require a stack.Which is/are true in context of lexical ...
anjali007
697
views
anjali007
asked
Nov 28, 2018
Compiler Design
compiler-design
lexical-analysis
testbook-test-series
+
–
0
votes
1
answer
641
ME Compiler Design
Consider the following transition rules: A->BC C->+BC|A|$\epsilon$ B->DB{print '+'}|$\epsilon$ D->(A)|id{print num.value} On input '5+67' this translation scheme prints A 5+67+ B 5+6+7+ C 5+6+7 D 5+67++
Consider the following transition rules:A->BCC->+BC|A|$\epsilon$B->DB{print '+'}|$\epsilon$D->(A)|id{print num.value}On input '5+67' this translation scheme printsA 5+67+...
Soumya Tiwari
1.3k
views
Soumya Tiwari
asked
Nov 27, 2018
Compiler Design
syntax-directed-translation
compiler-design
+
–
0
votes
1
answer
642
Compiler Design: Syntax Directed Translation
Srinivas_Reddy_Kotla
812
views
Srinivas_Reddy_Kotla
asked
Nov 27, 2018
Compiler Design
compiler-design
syntax-directed-translation
+
–
0
votes
1
answer
643
Virtual Gate
I_am_winner
315
views
I_am_winner
asked
Nov 23, 2018
Compiler Design
compiler-design
code-optimization
static-single-assignment
numerical-answers
virtual-gate-test-series
+
–
1
votes
0
answers
644
MadeEasy Test Series: Compiler Design - Parsing
Why ε is not shown in First(S). First(s) does contain ε . And please help me figure out which grammar is this? According to me it is NOT LL(1) (since it is left factored), NOT LR(0) (Since the Item 0 has a R-R conflict), NOT SLR(1) (The item 0 has a RR conflict since Follow(X) = Follow(Y) = {a,b} correct me If i'm wrong
Why ε is not shown in First(S). First(s) does contain ε . And please help me figure out which grammar is this?According to me it is NOT LL(1) (since it is left factore...
Hopealways
1.4k
views
Hopealways
asked
Nov 23, 2018
Compiler Design
made-easy-test-series
compiler-design
parsing
ll-parser
+
–
1
votes
1
answer
645
MadeEasy Test Series: Compiler Design - Static Single Assignment
X = A / b Y = C + D Y = Y - X X = D + Y Z = F + Y Z = Z + A MInimum number of total variables needed to convert above TAC to Static Single Assignment Answer given ==>11 My apporach X1 = A / b Y1 = C + D Y2 = Y1 - X1 X2 = D + Y2 Z1 = F + Y2 Z2 = Z1 + A Is above code in SSA ??
X = A / bY = C + DY = Y - XX = D + YZ = F + YZ = Z + AMInimum number of total variables needed to convert above TAC to Static Single AssignmentAnswer given ==>11My appora...
jatin khachane 1
785
views
jatin khachane 1
asked
Nov 23, 2018
Compiler Design
made-easy-test-series
compiler-design
static-single-assignment
+
–
4
votes
2
answers
646
MadeEasy Test Series: Compiler Design - Lexical Analysis
int main() { int a,b; a=10; b=15; printf("a=%d,b=%d",a++,b--); } The number of tokens in the above C program is_________. I am getting 30 The answer given is 29
int main() { int a,b; a=10; b=15; printf("a=%d,b=%d",a++,b ); }The number of tokens in the above C program is_________.I am getting 30The answer given is 29
jatin khachane 1
1.3k
views
jatin khachane 1
asked
Nov 23, 2018
Compiler Design
compiler-design
lexical-analysis
made-easy-test-series
+
–
1
votes
0
answers
647
Self Doubt Token Count - Character Literal
How many tokens are there ? int main() { char name={'A','A','K','A','S','H'}; return 0; } Please give any reference if possible, my doubt is about the characters in the braces, do we count them individually or like a string.
How many tokens are there ? int main(){char name={'A','A','K','A','S','H'};return 0;}Please give any reference if possible, my doubt is about the characters in the braces...
Aakash_
960
views
Aakash_
asked
Nov 20, 2018
Compiler Design
compiler-tokenization
compiler-design
+
–
0
votes
2
answers
648
MadeEasy Test Series: Compiler Design - Intermediate Code
a x b x c + d - a + e x f - g + h order of precedence : x>+>- ; with x is left associative and +, - as right. Min number of variables required in TAC? Should'nt the expression be expressed as : ((a x b) x c) + d - a + (e x f) - g + h (((a x b) x c) + (d - (a + (e x f)) - (g + h)))
a x b x c + d - a + e x f - g + horder of precedence : x>+>- ; with x is left associative and +, - as right.Min number of variables required in TAC?Should'nt the expressi...
manisha11
1.1k
views
manisha11
asked
Nov 18, 2018
Compiler Design
made-easy-test-series
compiler-design
intermediate-code
+
–
0
votes
1
answer
649
MadeEasy Test Series: Compiler Design - Grammar
manisha11
255
views
manisha11
asked
Nov 18, 2018
Compiler Design
made-easy-test-series
compiler-design
grammar
+
–
0
votes
0
answers
650
Self Doubt
manisha11
217
views
manisha11
asked
Nov 18, 2018
Compiler Design
compiler-design
+
–
0
votes
1
answer
651
MadeEasy Workbook: Compiler Design - Parsing
WHICH OF THE FOLLOWING STATEMENTS ARE TRUE? a) S1 & S3 b) S2 & S4 c) S2 & S3 d) None of these Answer is option a. can anyone tell me how option a is correct?
WHICH OF THE FOLLOWING STATEMENTS ARE TRUE?a) S1 & S3b) S2 & S4c) S2 & S3d) None of theseAnswer is option a.can anyone tell me how option a is correct?
Jyoti Kumari97
342
views
Jyoti Kumari97
asked
Nov 18, 2018
Compiler Design
compiler-design
parsing
made-easy-booklet
+
–
0
votes
0
answers
652
MadeEasy Workbook: Compiler Design - Parsing
answer is option d can anyone tell me how option d is the correct answer?
answer is option dcan anyone tell me how option d is the correct answer?
Jyoti Kumari97
240
views
Jyoti Kumari97
asked
Nov 18, 2018
Compiler Design
compiler-design
parsing
made-easy-booklet
+
–
0
votes
1
answer
653
MadeEasy Workbook: Compiler Design - Parsing
COMMENT(how the below statement is true) LL(k) languages are proper subset of LL(k-1) languages.
COMMENT(how the below statement is true)LL(k) languages are proper subset of LL(k-1) languages.
Jyoti Kumari97
340
views
Jyoti Kumari97
asked
Nov 18, 2018
Compiler Design
compiler-design
parsing
made-easy-booklet
+
–
0
votes
1
answer
654
made easy compiler design theory book
answer is option c
answer is option c
Jyoti Kumari97
590
views
Jyoti Kumari97
asked
Nov 18, 2018
Compiler Design
compiler-design
made-easy-booklet
+
–
0
votes
1
answer
655
Parsing techniques
Consider the grammar S->a/ab/abc A) it is LL(1) B) it is LL(2) C) it is LL(3)
Consider the grammarS->a/ab/abcA) it is LL(1)B) it is LL(2)C) it is LL(3)
Prasanna Devi
378
views
Prasanna Devi
asked
Nov 17, 2018
Compiler Design
compiler-design
parsing
ll-parser
+
–
0
votes
0
answers
656
Testbook Test Series: Compiler Design - Parsing
Dheeraj Pant
583
views
Dheeraj Pant
asked
Nov 16, 2018
Compiler Design
compiler-design
testbook-test-series
parsing
+
–
0
votes
1
answer
657
Ace Test Series: Compiler Design - Left Factoring
Dheeraj Pant
2.7k
views
Dheeraj Pant
asked
Nov 16, 2018
Compiler Design
compiler-design
parsing
ace-test-series
+
–
0
votes
0
answers
658
Self doubt
Show that no grammar that has cycles can be LL(1). Is it true ?? It is saying if the grammar has cycle it can't be LL(1) But what if the cycle in grammar is due to RIGHT RECURSiON which is allowed in LL(1) ???
Show that no grammar that has cycles can be LL(1).Is it true ??It is saying if the grammar has cycle it can't be LL(1)But what if the cycle in grammar is due to RIGHT REC...
jatin khachane 1
222
views
jatin khachane 1
asked
Nov 16, 2018
Compiler Design
compiler-design
ll-parser
+
–
0
votes
1
answer
659
compiler design
One of the purposes of using intermediate code in compilers is to increase the chances of reusing the machine-independent code optimizer in other compilers. eleborate this ??
One of the purposes of using intermediate code in compilers is to increase the chances of reusing the machine-independent code optimizer in other compilers.eleborate this...
Gurdeep Saini
548
views
Gurdeep Saini
asked
Nov 15, 2018
Compiler Design
compiler-design
intermediate-code
+
–
1
votes
2
answers
660
MadeEasy Test Series: Compiler Design - Syntax Directed Translation
Question: Options:
Question:Options:
muthu kumar
601
views
muthu kumar
asked
Nov 15, 2018
Compiler Design
made-easy-test-series
compiler-design
syntax-directed-translation
+
–
Page:
« prev
1
...
17
18
19
20
21
22
23
24
25
26
27
...
67
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register