Q28
Which of the following statements is/are true?
More than one option can be correct.
Show answer without attempting
Answer: C
GATE CS · Compiler Design · 33 questions
33 Parsing questions from GATE CS papers, each with the official answer key. Part of Compiler Design. Answer any question right here and it is marked straight away, or practise them one at a time.
Answer: C
Answer: D
Answer: A, D
Answer: C
Answer: C, D
Answer: A, D
| (1) | (2) | ||||
| (3) | |||||
| (4) |
Answer: A
Answer: 9
Answer: D
Answer: 5
Answer: C
| S | (1) | (2) | ||||
| T | (3) | (4) | ||||
| R |
Answer: A
Answer: 8
Answer: 7
Answer: D
| a | b | d | |
|---|---|---|---|
| 3 | 2 | 1 | 0 |
Answer: 31
Answer: 5
Answer: B

Answer: A
stmt -> if expr then expr else expr; stmt | ε
expr -> term relop term | term
term -> id | number
id -> a | b | c
number -> [0-9]if e1 then e2 else e3Answer: 1024.0
0/200 correct0 marks