...
Compiler-Design
February 13, 2024
GATE 2001
February 13, 2024
Compiler-Design
February 13, 2024
GATE 2001
February 13, 2024

GATE 2000

Question 19

Which of the following derivations does a top-down parser use while parsing an input string? The input is assumed to be scanned in left to right order.

A
Leftmost derivation
B
Leftmost derivation traced out in reverse
C
Rightmost derivation
D
Rightmost derivation traced out in reverse
Question 19 Explanation: 
Top-down parser – Leftmost derivation
Bottom-Up parser – Reverse of rightmost derivation
Correct Answer: A
Question 19 Explanation: 
Top-down parser – Leftmost derivation
Bottom-Up parser – Reverse of rightmost derivation

Leave a Reply

Your email address will not be published. Required fields are marked *