Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Search results for compiler
13.2k
views
4
answers
39
votes
GATE CSE 2003 | Question: 58
Consider the translation scheme shown below.$S \rightarrow T\;R$R \rightarrow + T \{\text{print}( +');\} R\mid \varepsilon$T \rightarrow$ num $\{\text{print}$(num.val)$;\}$Here num is a ... 5 + 2$9 \ 5 + 2 +$9 \ 5 \ 2 + +$+ + 9 \ 5 \ 2$
Kathleen
13.2k
views
Kathleen
asked
Sep 17, 2014
Compiler Design
gatecse-2003
compiler-design
grammar
normal
+
–
13.4k
views
6
answers
34
votes
GATE CSE 2007 | Question: 52
Consider the grammar with non-terminals $N=\left\{S,C,S_1\right\}$, terminals $T=\left\{a, b, i, t, e\right\}$, with $S$ as the start ... is NOT LL(1) because:it is left recursiveit is right recursiveit is ambiguousit is not context-free
Kathleen
13.4k
views
Kathleen
asked
Sep 21, 2014
Compiler Design
gatecse-2007
compiler-design
grammar
normal
+
–
2.8k
views
3
answers
1
votes
GATE CSE 2024 | Set 2 | Question: 11
Consider the following two sets:Set $\text{X}$Set $\text{Y}$P. Lexical Analyzer1. Abstract Syntax TreeQ. Syntax Analyzer2. TokenR. Intermediate Code Generator3. Parse TreeS. Code ...
Arjun
2.8k
views
Arjun
asked
Feb 16
Compiler Design
gatecse2024-set2
compiler-design
compilation-phases
match-the-following
+
–
11.0k
views
2
answers
2
votes
Is the following grammar LL(1) ?
Is the following grammar LL(1) ?S→ aABbCD | ϵA→ ASd | ϵB→ Sac| hC | ϵC→ Sf |CgD→ aBD | ϵDraw the LL(1) parsing table for the given grammar.
Subhrangsu
11.0k
views
Subhrangsu
asked
Apr 16, 2022
Compiler Design
compiler-design
parsing
grammar
+
–
10.9k
views
2
answers
26
votes
GATE CSE 2016 Set 1 | Question: 46
Consider the following Syntax Directed Translation Scheme $( SDTS )$, with non-terminals $\{S,A \}$ and terminals $\{a,b \}$. $S \to aA \quad \{\text{print }1\}$ ... : $1 \ 3 \ 2 $ $2 \ 2 \ 3 $ $2 \ 3 \ 1 $ syntax error
Sandeep Singh
10.9k
views
Sandeep Singh
asked
Feb 12, 2016
Compiler Design
gatecse-2016-set1
compiler-design
syntax-directed-translation
normal
+
–
3.0k
views
1
answers
2
votes
GATE CSE 2024 | Set 2 | Question: 55
Consider the following augmented grammar, which is to be parsed with a $\text{SLR}$ parser. The set of terminals is $\{a, b, c, d, \#, @\}$\[\begin{ ... number of items in the set $\operatorname{GOTO}\left(I_{0}, S\right)$ is __________.
Arjun
3.0k
views
Arjun
asked
Feb 16
Compiler Design
gatecse2024-set2
numerical-answers
compiler-design
lr-parser
+
–
2.1k
views
1
answers
4
votes
GATE CSE 2024 | Set 2 | Question: 42
Consider a context-free grammar $\text{G}$ with the following $3$ rules.$S \rightarrow a S, S \rightarrow a S b S , S \rightarrow c$ Let $w \in L(G)$ ... $n_{c}(w)=n_{b}(w) * 2$
Arjun
2.1k
views
Arjun
asked
Feb 16
Compiler Design
gatecse2024-set2
compiler-design
multiple-selects
grammar
+
–
7.9k
views
2
answers
4
votes
GATE CSE 2023 | Question: 50
Consider the syntax directed translation given by the following grammar and semantic rules. Here $N, I, F$ and $B$ are non-terminals. $N$ is the ... for the input string$10\#011$is ____________. (Rounded off to three decimal places)
admin
7.9k
views
admin
asked
Feb 15, 2023
Compiler Design
gatecse-2023
compiler-design
syntax-directed-translation
numerical-answers
2-marks
+
–
3.4k
views
1
answers
3
votes
GATE CSE 2024 | Set 1 | Question: 23
Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below.Operator PrecedenceAssociativity+Highest Left-HighRight*MediumRight/ ... as per the above rules is ________.
Arjun
3.4k
views
Arjun
asked
Feb 16
Compiler Design
gatecse2024-set1
numerical-answers
compiler-design
operator-precedence
+
–
8.4k
views
1
answers
8
votes
GATE CSE 2023 | Question: 26
Consider the following program:int main() { f1 (); f2(2); f3(); return (0); } int f1 () { return(1); } int f2 (int X) { f3(); ... (5); } Which one of the following options represents the activation tree corresponding to the main function?
admin
8.4k
views
admin
asked
Feb 15, 2023
Compiler Design
gatecse-2023
compiler-design
runtime-environment
2-marks
+
–
24.1k
views
4
answers
37
votes
GATE CSE 2005 | Question: 14
The grammar $A \rightarrow AA \mid (A) \mid \epsilon$ is not suitable for predictive-parsing because the grammar is:ambiguousleft-recursiveright-recursivean operator-grammar
Kathleen
24.1k
views
Kathleen
asked
Sep 22, 2014
Compiler Design
gatecse-2005
compiler-design
parsing
grammar
easy
+
–
2.1k
views
1
answers
3
votes
GATE CSE 2024 | Set 2 | Question: 33
Consider the following expression: $x[i]=(p+r) *-s[i]+u / w$ ... $=s i \quad(3)-(0)(2) \quad(6)=[ ] x i$
Arjun
2.1k
views
Arjun
asked
Feb 16
Compiler Design
gatecse2024-set2
compiler-design
intermediate-code
+
–
19.8k
views
7
answers
60
votes
GATE CSE 2014 Set 3 | Question: 11
The minimum number of arithmetic operations required to evaluate the polynomial $P(X) = X^5+4X^3+6X+5$ for a given value of $X$, using only one temporary variable is ______.
go_editor
19.8k
views
go_editor
asked
Sep 28, 2014
Compiler Design
gatecse-2014-set3
compiler-design
numerical-answers
normal
code-optimization
+
–
2.3k
views
1
answers
0
votes
GATE CSE 2024 | Set 1 | Question: 29
Consider the following pseudo-code.$L 1 : t 1 = -1$ $L 2: t 2 = 0$ $L 3: t 3 = 0$ $L 4: t 4 = 4 * t 3$ ... $ and $6$6$ and $7$7$ and $7$7$ and $6$
Arjun
2.3k
views
Arjun
asked
Feb 16
Compiler Design
gatecse2024-set1
compiler-design
intermediate-code
+
–
3.4k
views
1
answers
2
votes
GATE CSE 2024 | Set 2 | Question: 30
Consider the following context-free grammar where the start symbol is $\text{S}$ and the set of terminals is $\{a, b, c, d\}$ ... $(2)$ $S \rightarrow A a A b$ $(3)$ blank $(4)$ blank
Arjun
3.4k
views
Arjun
asked
Feb 16
Compiler Design
gatecse2024-set2
compiler-design
ll-parser
parsing
+
–
66
views
0
answers
1
votes
#CompilerDesign
S -> i E t S S' | aS' -> e S | ϵE -> bHow to convert this grammar to LL(1) grammar?
ShaysTrial
66
views
ShaysTrial
asked
Jun 9
Compiler Design
compiler-design
parsing
ll-parser
+
–
250
views
2
answers
0
votes
FIRST $ FOLLOW
S -> A BA -> f S fA -> b b B dB -> ƐB -> cFirst(S) =First(A) =First(B) =Follow(S) =Follow(A) =Follow(B) =
Ana_101
250
views
Ana_101
asked
Apr 19
Compiler Design
first-and-follow
compiler-design
parsing
grammar
+
–
178
views
2
answers
0
votes
FIRST & FOLLOR
S -> A BA -> f S fA -> b b B dB -> ƐB -> cFirst(S) =First(A) =First(B) =Follow(S) =Follow(A) =Follow(B) =
Ana_101
178
views
Ana_101
asked
Apr 19
Compiler Design
first-and-follow
compiler-design
parsing
first-order-logic
descriptive
+
–
10.6k
views
6
answers
28
votes
GATE CSE 2002 | Question: 2.19
To evaluate an expression without any embedded function callsOne stack is enoughTwo stacks are neededAs many stacks as the height of the expression tree are neededA Turing machine is needed in the general case
Kathleen
10.6k
views
Kathleen
asked
Sep 15, 2014
Compiler Design
gatecse-2002
compiler-design
expression-evaluation
easy
+
–
12
views
0
answers
0
votes
go classes lecture
tejaski
12
views
tejaski
asked
May 21
Compiler Design
compiler-design
first-and-follow
+
–
Page:
« prev
1
2
3
4
5
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register