UGC-NET JUNE Paper-2 | Syntax-tree-and-context-flow-graph

A bottom-up parser generates :

  1. Leftmost derivation in reverse
  2. Right-most derivation in reverse
  3. Left-most derivation
  4. Right-most derivation




Answer: B

Explanation:

Bottom-up parser generates the right-most derivation in reverse order. It constructs the parse tree from the input string to the root and tries to construct the right-most derivation of the specified string backward.

Practice unlimited  Gate CSE Questions

Do U have Better Solution?
Contribute your Solution in the Comment Section below.

GATE, ISRO, BARC, UGC-NET, NIELIT
Online Test Series available.

Leave a Reply