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
0
answers
991
LL(k)
I know that LL(1) grammar can have No left factoring ,No Left recursion and No Ambiguity. Is same thing true for LL(k) as well i.e. LL(k) which is reading k symbols at a time from input string. Does LL(k) grammar can have No left factoring ,No Left recursion and No Ambiguity ?
I know that LL(1) grammar can have No left factoring ,No Left recursion and No Ambiguity.Is same thing true for LL(k) as well i.e. LL(k) which is reading k symbols at a...
VS
4.0k
views
VS
asked
Dec 23, 2017
Compiler Design
compiler-design
grammar
+
–
0
votes
0
answers
992
Associativity
The grammar $S\rightarrow FA$ $A\rightarrow \epsilon |\Phi TA$ $F\rightarrow i$ reflects that a)$\Phi$ is left associative b)$\Phi$ is right associative c)cannot deduce association from the grammar d) none of above
The grammar$S\rightarrow FA$$A\rightarrow \epsilon |\Phi TA$$F\rightarrow i$reflects thata)$\Phi$ is left associativeb)$\Phi$ is right associativec)cannot deduce associat...
srestha
534
views
srestha
asked
Dec 23, 2017
Compiler Design
compiler-design
+
–
0
votes
1
answer
993
ambiguity
$E→E−T ∣ T$ $T→T/F ∣ F$ $F→(E) ∣ id$ (E is the start symbol) This grammar is unambiguous but shouldn't it be ambiguous because it has left recursion?
$E→E−T ∣ T$$T→T/F ∣ F$$F→(E) ∣ id$(E is the start symbol)This grammar is unambiguous but shouldn't it be ambiguous because it has left recursion?
A_i_$_h
652
views
A_i_$_h
asked
Dec 23, 2017
Compiler Design
compiler-design
ambiguous-grammar
left-recursion
descriptive
+
–
0
votes
1
answer
994
Compiler design test series problem
Abhishek Kumar Singh
362
views
Abhishek Kumar Singh
asked
Dec 23, 2017
Compiler Design
compiler-design
parsing
ll-parser
lr-parser
testbook-test-series
+
–
0
votes
1
answer
995
Ace Test Series: Compiler Design - Parsing
S-> Aa A-> Ab A-> c Which of the following item is present in LR(1) item with S'->. S, $ a) A->. Ab,$ b) A->. Ab,a c) A->. Ab,a/b d) None
S- AaA- AbA- cWhich of the following item is present in LR(1) item with S'->. S, $a) A->. Ab,$b) A->. Ab,ac) A->. Ab,a/bd) None
Neeraj Mehta
331
views
Neeraj Mehta
asked
Dec 23, 2017
Theory of Computation
compiler-design
ace-test-series
parsing
+
–
2
votes
3
answers
996
M.E test
Let G be a grammar with the following productions. If LR(1) Parser is used to construct the DFA using the above productions, then how many look-a-heads are present for an item in the initial state?
Let G be a grammar with the following productions.If LR(1) Parser is used to construct the DFA using the above productions, then how many look-a-heads are present for an ...
Abhinav Gupta
1.5k
views
Abhinav Gupta
asked
Dec 23, 2017
Compiler Design
compiler-design
parsing
lr-parser
made-easy-test-series
numerical-answers
+
–
0
votes
2
answers
997
test series
Consider the following statements: S1 : Three-address code is a linearized representation of syntax tree. S2 : The syntax tree not depicts the natural hierarchical structure of source program. Which of the following is true? plz explain s1 statement
Consider the following statements:S1 : Three-address code is a linearized representation of syntax tree.S2 : The syntax tree not depicts the natural hierarchical structur...
92komal
2.4k
views
92komal
asked
Dec 22, 2017
Compiler Design
compiler-design
three-address-code
test-series
+
–
0
votes
0
answers
998
Ace Test Series: Compiler Design - Syntax Directed Translation
ashish pal
330
views
ashish pal
asked
Dec 20, 2017
Compiler Design
compiler-design
syntax-directed-translation
ace-test-series
+
–
0
votes
0
answers
999
MadeEasy Test Series: Compiler Design - Parsing
How to solve this problem ?? Is the given solution correct?
How to solve this problem ?? Is the given solution correct?
Kalpataru Bose
660
views
Kalpataru Bose
asked
Dec 20, 2017
Compiler Design
made-easy-test-series
compiler-design
lr-parser
parsing
+
–
2
votes
1
answer
1000
ISRO-DEC2017-68
Consider the following table : ... $a-q, b-r, c-s, d-p$ $a-r, b-s, c-q, d-p$ $a-r, b-s, c-p, d-q$
Consider the following table :$\begin{array}{|l|l|l|} \hline \textbf{A.} & \text{Activation record} & \textbf{p.} & \text{Linking loader} \\\hline \textbf{B.} & \text{Loc...
gatecse
3.0k
views
gatecse
asked
Dec 17, 2017
Operating System
isrodec2017
runtime-environment
compiler-design
+
–
2
votes
2
answers
1001
ISRO-DEC2017-67
Consider the code segment int i,j,x,y,m,n; n = 20; for(i=0;i<n;i++) { for(j=0;j<n;j++) { if(i%2) { x += ((4*j)+5*i); y += (7+4*j) } } } m=x+y; Which one of the following is false? ... loop invariant computation There is scope of common sub-expression elimination in this code There is scope of strength reduction in this code There is scope of dead code elimination in this code
Consider the code segmentint i,j,x,y,m,n; n = 20; for(i=0;i<n;i++) { for(j=0;j<n;j++) { if(i%2) { x += ((4*j)+5*i); y += (7+4*j) } } } m=x+y;Which one of the following is...
gatecse
1.6k
views
gatecse
asked
Dec 17, 2017
Compiler Design
isrodec2017
code-optimization
compiler-design
+
–
0
votes
1
answer
1002
compiler syllabus
Are code optimization concepts regarding basic blocks in gate syllabus 2018 or not?
Are code optimization concepts regarding basic blocks in gate syllabus 2018 or not?
Mayank Gupta 3
577
views
Mayank Gupta 3
asked
Dec 17, 2017
Compiler Design
compiler-design
gatecse-2018
syllabus
+
–
0
votes
1
answer
1003
syntactic directed definition
if any production of given grammar is A → ε {A.v = 0} then A.v is ? a) inherited attribute b) synthesized attribute
if any production of given grammar isA → ε {A.v = 0}then A.v is ?a) inherited attributeb) synthesized attribute
skyby
430
views
skyby
asked
Dec 14, 2017
Compiler Design
compiler-design
syntax-directed-translation
+
–
0
votes
0
answers
1004
How much to read from garbarge collection in runtime environment? ( from aho ullman book)
Self doubt--Hello i am preparing for gate on my own reading textbooks. There is a very detailed garbage collection part in runtime environments part in Aho ullman.. How much to read from there.. Any past gate rankers and fellow gate aspirants kindly reply.
Self doubt Hello i am preparing for gate on my own reading textbooks. There is a very detailed garbage collection part in runtime environments part in Aho ullman.. How mu...
Tridhara Chakrabarti
393
views
Tridhara Chakrabarti
asked
Dec 14, 2017
Compiler Design
compiler-design
runtime-environment
syllabus
self-doubt
+
–
0
votes
0
answers
1005
#ll(k)
what are the pros and cons in LL(k) parsing with larger values of k?
what are the pros and cons in LL(k) parsing with larger values of k?
Borhan
145
views
Borhan
asked
Dec 12, 2017
Compiler Design
ll-k
compiler-design
+
–
1
votes
1
answer
1006
#CD Doubt
What is the diffrence between Lexical error , Syntax error and semantic error..? Please explain with this example void main() { int total-value, Num=2,sum=5,var1; 5=Num; var1=2; sum=num*1; if(sum=var1) { sum=sum+1 } }
What is the diffrence between Lexical error , Syntax error and semantic error..?Please explain with this examplevoid main(){int total-value, Num=2,sum=5,var1;5=Num;var1=2...
Sahil1994
613
views
Sahil1994
asked
Dec 12, 2017
Compiler Design
compiler-design
lexical-analysis
descriptive
+
–
0
votes
1
answer
1007
Lalr1 parsing
Consider the below given grammar: S→(A S→B] S→C) A→B) A→C] B→D C→D D→ϵ The number of states in LALR(1) canonical item set are _______ and number of inadequate states (if any) in LALR(1) canonical item set is/are ____________respectively.
Consider the below given grammar: S→(A S→B] S→C) A→B) A→C] B→D C→D D→ϵ The number of states in LALR(1) canonical item set are _______ and number of inade...
Parshu gate
893
views
Parshu gate
asked
Dec 10, 2017
Compiler Design
compiler-design
lalr
clr
parsing
lr-parser
+
–
0
votes
1
answer
1008
SDT (attribute )
pls explain c option
pls explain c option
sid1221
271
views
sid1221
asked
Dec 10, 2017
Compiler Design
compiler-design
syntax-directed-translation
made-easy-test-series
+
–
0
votes
1
answer
1009
LL(1)
Shivam Chauhan
2.3k
views
Shivam Chauhan
asked
Dec 9, 2017
Compiler Design
compiler-design
ll-parser
ace-test-series
+
–
1
votes
1
answer
1010
Regular Grammar
A regular grammar is always linear but not all linear grammar are regular. Please explain why this statement is true
A regular grammar is always linear but not all linear grammar are regular.Please explain why this statement is true
Shivi rao
542
views
Shivi rao
asked
Dec 9, 2017
Compiler Design
regular-grammar
compiler-design
+
–
7
votes
0
answers
1011
Access link vs Control Link
Access Link : 1) An access link from record A points to the record of the closest enclosing block in the program. 2) The chain of access links traces the static structure (think: scopes) of the program. 3) Refers to non-local data in other ... execution of the program. 3) Refers to non-local data in other activation record. (NOT CLEAR) Can anyone explain this line ?
Access Link :1) An access link from record A points to the record of the closest enclosing block in the program.2) The chain of access links traces the static structure (...
VS
9.6k
views
VS
asked
Dec 9, 2017
Compiler Design
compiler-design
+
–
0
votes
1
answer
1012
SSC-IMD-2017-06
Which of the following is not a function of pass1 of an assembler? 1) Generate data 2) Keep track of LC 3) Remember literals 4) Remember values of symbols until pass 2
Which of the following is not a function of pass1 of an assembler?1) Generate data 2) Keep track of LC 3) Remember literals 4) Remember values of symbols until pass 2
rishu_darkshadow
2.3k
views
rishu_darkshadow
asked
Dec 7, 2017
Compiler Design
ssc-imd
compiler-design
assembler
+
–
0
votes
0
answers
1013
MadeEasy Test Series: Compiler Design - Code Optimization
I'm getting 4 nodes and 5 edges. But the answer given is : 6 nodes and 7 edges
I'm getting 4 nodes and 5 edges. But the answer given is : 6 nodes and 7 edges
charul
597
views
charul
asked
Dec 6, 2017
Compiler Design
made-easy-test-series
compiler-design
code-optimization
+
–
2
votes
2
answers
1014
made-easy
Consider the following productions along with their semantic rules Here ⋅ i and ⋅ s corresponds to inherited and synthesized attributes respectively. The value for expression 3 ∗ 4 __________.
Consider the following productions along with their semantic rulesHere ⋅ i and ⋅ s corresponds to inherited and synthesized attributes respectively. The value for exp...
Jaspreet Kaur Bains
1.1k
views
Jaspreet Kaur Bains
asked
Dec 6, 2017
Compiler Design
compiler-design
syntax-directed-translation
expression-evaluation
numerical-answers
made-easy-test-series
+
–
0
votes
3
answers
1015
Type of grammar
Why isn't it LL(1) ?
Why isn't it LL(1) ?
Parshu gate
1.6k
views
Parshu gate
asked
Dec 5, 2017
Compiler Design
parsing
compiler-design
grammar
ll-parser
lr-parser
ace-test-series
+
–
1
votes
1
answer
1016
#doubt
Which of the following statement/s is/are false for the following language: $L = \{a^m b^n c^q \mid m = n \text{ or } n = q, m > 0, n > 0, q > 0\}$ S1: The language can be parsed by any LR(K) parsers for any value of K. S2: The language cannot be recognized by deterministic PDA. Only S2 Only S1 Both S1 and S2 Neither S1 nor S2
Which of the following statement/s is/are false for the following language:$$L = \{a^m b^n c^q \mid m = n \text{ or } n = q, m 0, n 0, q 0\}$$S1: The language can be p...
abhijeet pandey
848
views
abhijeet pandey
asked
Dec 5, 2017
Compiler Design
compiler-design
parsing
inherently-ambiguous
+
–
0
votes
2
answers
1017
LL1 grammer
pa-try
566
views
pa-try
asked
Dec 5, 2017
Compiler Design
compiler-design
parsing
test-series
+
–
0
votes
0
answers
1018
Syntax directed Translation
Parshu gate
1.0k
views
Parshu gate
asked
Dec 5, 2017
Compiler Design
syntax-directed-translation
compiler-design
+
–
0
votes
0
answers
1019
Equality of parsers
Parshu gate
2.4k
views
Parshu gate
asked
Dec 5, 2017
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
votes
1
answer
1020
ace test series
Aditya Bahuguna
242
views
Aditya Bahuguna
asked
Dec 4, 2017
Compiler Design
compiler-design
parsing
ll-parser
descriptive
ace-test-series
+
–
Page:
« prev
1
...
29
30
31
32
33
34
35
36
37
38
39
...
68
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register