GateAI
Lexical Analysis, Parsing and SDT

GATE CSE 2019 · Q3

MCQ1 markEasy

Time

Which one of the following kinds of derivation is used by LR parsers?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: D) Rightmost in reverse

Lexical Analysis, Parsing and SDT

LR parser stands for:

  • L: Left-to-right scanning of the input string

  • R: Constructing a Rightmost derivation in reverse (bottom-up parsing)

In shift-reduce (LR) parsing, the parser reduces handles back to non-terminals, effectively tracing out the rightmost derivation in reverse order.

Hence, the correct option is (D).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Lexical Analysis, Parsing and SDT previous year question is Q3 of the GATE CSE 2019 paper. Find more GATE CSE PYQs on Lexical Analysis, Parsing and SDT in Compiler Design, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Lexical Analysis, Parsing and SDT PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Lexical Analysis, Parsing and SDT in GATE CSE

Lexical Analysis, Parsing and SDT has 14 GATE CSE PYQs across 12 papers from 2011 to 2025. 9 of them are 1-mark MCQs like this one, and GATE CSE 2019 has 2.

How GATE tests Lexical Analysis, Parsing and SDT

More from GATE CSE 2019

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2019 · Q3 · MCQ

Which one of the following kinds of derivation is used by LR parsers?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.