Which of the following parsers is a type of bottom-up parser?

2025

Which of the following parsers is a type of bottom-up parser?

Answer: D. LR parserLR parsers are bottom-up. They build parse trees from leaves to root, handling shift-reduce actions.

  1. A.

    Predictive parser

  2. B.

    Recursive Descent

  3. C.

    LL(1) parser

  4. D.

    LR parser

Attempted by 184 students.

Show answer & explanation

Correct answer: D

LR parsers are bottom-up. They build parse trees from leaves to root, handling shift-reduce actions.

Explore the full course: Niacl Ao It Specialist

Loading lesson…