Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
205 views
in General by (113k points)
closed by
Which one of the following is a top-down parser ?
1. Recursive descent parser
2. Shift left associative parser
3. SLR (k) parser 
4. LR (k) parser

1 Answer

0 votes
by (115k points)
selected by
 
Best answer
Correct Answer - Option 1 : Recursive descent parser

The correct answer is option 1

  • A top-down parsing technique parses the input by starts constructing a parse tree from the root node moving down to the leaf nodes.
  • A top-down parser uses the leftmost derivation to generate the string. 
  • A recursive descent parser is a top-down parser

 Parser

 Derivation

 LR parsers or Bottom-up Parsers 

 Rightmost reverse Derivation 

 LL parsers or Top-down Parsers

 Leftmost Derivation

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...