GATE CS 2024 Set 2 | Question 40
Compiler Design › Parser · MCQ · 2 marks · Answer: A
- Question 40Compiler Designmcq2 marksFor , , , fill the partially-filled LL(1) table cells (1),(2),(3),(4). Which combination is correct?
- A.(1) (2) (3) (4)✓
- B.(1) (2) (3) (4)
- C.(1) (2) (3) blank (4) blank
- D.(1) (2) (3) blank (4) blank
Answer: A
Solution
Answer: (A) FIRST (A can be ) and FIRST. So under : (cell 1); under : (cell 2). For : FOLLOW includes and , so appears under (cell 3). For : appears under (cell 4). This matches (A). - A.
More GATE PYQ on Parser
All GATE CS Compiler Design PYQ →Attempt GATE CS 2024 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →