Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew

Search questions

97 questions
  1. GATE CSE 2026 Set 1, Q17, MSQ, Compiler designConsider the following C statements: [code] Which of the following options is/are correct?
  2. GATE CSE 2026 Set 1, Q18, MSQ, Compiler designWhich of the following statements is/are true?
  3. GATE CSE 2026 Set 1, Q32, MCQ, Compiler designConsider the control flow graph shown in the figure. [figure] Which one of the following options correctly lists the set of redundant expressions (common…
  4. GATE CSE 2026 Set 1, Q43, MSQ, Compiler designConsider the following two syntax-directed definitions SDD1 and SDD2 for type declarations. SDD1 Grammar (G1)Semantic Rules D → T VD.type = T.type V.type =…
  5. GATE CSE 2026 Set 2, Q19, MSQ, Compiler designWhich of the following grammars is/are ambiguous?
  6. GATE CSE 2026 Set 2, Q25, NAT, Compiler designA lexical analyzer uses the following token definitions letter → [A-Za-z] digit → [0-9] id → letter (letter | digit)^* number → digit ^+ ws → (blank | tab|…
  7. GATE CSE 2026 Set 2, Q31, MCQ, Compiler designConsider the canonical L R(0) parsing of the grammar below using terminals {a, b, c} and non-terminals {A, B, C, S} with S as the start symbol.…
  8. GATE CSE 2026 Set 2, Q35, MCQ, Compiler designConsider the control flow graph given below. [figure] Which one of the following options is the set of live variables at the exit point of each basic block?
  9. GATE CSE 2025 Set 1, Q2, MCQ, Compiler designWhich ONE of the following statements is FALSE regarding the symbol table?
  10. GATE CSE 2025 Set 1, Q3, MCQ, Compiler designWhich ONE of the following techniques used in compiler code optimization uses live variable analysis?
  11. GATE CSE 2025 Set 1, Q36, MSQ, Compiler designWhich of the following statement(s) is/are TRUE while computing First and Follow during top down parsing by a compiler?
  12. GATE CSE 2025 Set 1, Q42, NAT, Compiler designRefer to the given 3-address code sequence. This code sequence is split into basic blocks. The number of basic blocks is ________. (Answer in integer) 1001: i =…
  13. GATE CSE 2025 Set 2, Q11, MCQ, Compiler designConsider the following statements about the use of backpatching in a compiler for intermediate code generation: (I) Backpatching can be used to generate code…
  14. GATE CSE 2025 Set 2, Q12, MCQ, Compiler designGiven the following syntax directed translation rules: Rule 1: R → A B{B . i=R . i-1 ; A . i=B . i ; R . i=A . i+1 ;} Rule 2: P → C D{P . i=C . i+D . i ; D .…
  15. GATE CSE 2025 Set 2, Q30, MCQ, Compiler designGiven a Context-Free Grammar G as follows: [formula] Which ONE of the following statements is TRUE?
  16. GATE CSE 2025 Set 2, Q41, MSQ, Compiler designConsider two grammars G_1 and G_2 with the production rules given below: G_1 : S → if E then S | if E then S else S | a E → b G_2 :S → if E…
  17. GATE CSE 2024 Set 1, Q16, MSQ, Compiler designWhich of the following is/are Bottom-Up Parser(s)?
  18. GATE CSE 2024 Set 1, Q23, NAT, Compiler designConsider the operator precedence and associativity rules for the integer arithmetic operators given in the table below.…
  19. GATE CSE 2024 Set 1, Q27, MCQ, Compiler designConsider the following syntax-directed definition (SDD).…
  20. GATE CSE 2024 Set 1, Q28, MCQ, Compiler designConsider the following grammar G, with S as the start symbol. The grammar G has three incomplete productions denoted by (1), (2), and (3).…