October 3, 2023

Compiler-Design

Question 1 Consider the grammar given below: S → Aa A → BD B → b | ε D → d | ε Let a, b, d and $ be […]
October 3, 2023

Compiler-Design

Question 2 Which one of the following kinds of derivation is used by LR parsers? A Leftmost in reverse B Rightmost in reverse C Leftmost D […]
October 3, 2023

Compiler-Design

Question 209 Which of the following statements is/ are false? S1: LR(0) grammar and SLR(1) grammar are equivalent S2: LR(1) grammar are subset of LALR(1) grammars […]
October 4, 2023

GATE 2018

Question 41 Consider the following parse tree for the expression a#b$c$d#e#f, involving two binary operators $ and #. Which one of the following is correct for […]
October 6, 2023

Compiler-Design

Question 18 Consider the following grammar. S → aSB|d B → b The number of reduction steps taken by a bottom-up parser while accepting the string […]
October 7, 2023

Parsers

Question 20 Consider the augmented grammar with { + , *, (, ), id } as the set of terminals. A 5 Compiler-DesignParsersGATE 2022Video-Explanation Question 20 […]
October 7, 2023

Compiler-Design

Question 50 Which of the following grammar rules violate the requirements of an operator grammar? P,Q,R are nonterminals, and r,s,t are terminals. (i) P → Q […]
October 7, 2023

Compiler-Design

Question 4 Consider the following grammar along with translation rules. A 80 Compiler-DesignParsersGATE 2022Video-Explanation Question 4 Explanation:  Correct Answer: A Question 4 Explanation: 
October 7, 2023

Compiler-Design

Question 19 Consider the syntax-directed translation schema (SDTS) shown below: E → E + E {print “+”} E → E ∗ E {print “.”} E → […]
October 7, 2023

Grammar

Question 2 In the following grammar X ::= X ⊕ Y/Y Y ::= Z * Y/Z Z ::= id Which of the following is true? A […]
October 7, 2023

Compiler-Design

Question 36 Consider the following statements. I. Symbol table is accessed only during lexical analysis and syntax analysis. II. Compilers for programming languages that support recursion […]
October 7, 2023

Compiler-Design

Question 72 Consider the following expression grammar. The seman­tic rules for expression calculation are stated next to each grammar production. E → number E.val = number. […]