Compiler-Design

Question 37

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 37 Explanation: 
Top-down parser – Leftmost derivation
Bottom-Up parser – Reverse of rightmost derivation
Correct Answer: A
Question 37 Explanation: 
Top-down parser – Leftmost derivation
Bottom-Up parser – Reverse of rightmost derivation
0 0 votes
Article Rating
Subscribe
Notify of


0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: <b>Alert: </b>Content selection is disabled!!
Compiler-Design
February 13, 2024
Compiler-Design
February 13, 2024
Compiler-Design
February 13, 2024
Compiler-Design
February 13, 2024