Which of the following statements are true about parsing in Compiler design?…

2025

Which of the following statements are true about parsing in Compiler design?

i. A parser converts tokens generated by the lexical analyser into a parse tree.

ii. A top-down parser can handle left-recursive grammars without any modifications.

iii. A shift-reduce parser can make decisions based on the current input symbol and the top of the stack.

iv. LL(1) parsing is a type of bottom-up parsing technique.

Choose the correct answer from the option given below.

Answer: B. Only i, iii

  1. A.

    Only i, ii

  2. B.

    Only i, iii

  3. C.

    Only ii, iv

  4. D.

    Only i, iii, iv

Attempted by 164 students.

Show answer & explanation

Correct answer: B

Explore the full course: Mppsc Assistant Professor Computer Science Paper 2

Loading lesson…