UGC NET CS 2006 Dec-paper-2
October 9, 2023
Nielit Scientist-C 2016 march
October 9, 2023
UGC NET CS 2006 Dec-paper-2
October 9, 2023
Nielit Scientist-C 2016 march
October 9, 2023

Parsers

Question 74
A Top-down Parser generates :
A
Leftmost derivation
B
Rightmost derivation
C
Rightmost derivation in reverse
D
Leftmost derivation in reverse
Question 74 Explanation: 
→ Top-down parsing can be viewed as an attempt to find leftmost derivations of an input-stream by searching for parse-trees using a top-down expansion of the given formal grammar rules.
→ Inclusive choice is used to accommodate ambiguity by expanding all alternative right-hand-sides of grammar rules.
Correct Answer: A
Question 74 Explanation: 
→ Top-down parsing can be viewed as an attempt to find leftmost derivations of an input-stream by searching for parse-trees using a top-down expansion of the given formal grammar rules.
→ Inclusive choice is used to accommodate ambiguity by expanding all alternative right-hand-sides of grammar rules.

Leave a Reply

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