Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
279 views
in General by (115k points)
closed by
Which one of the following is TRUE at any valid state in shift-reduce parsing?
1. Viable prefixes appear only at the bottom of the stack and not inside
2. Viable prefixes appear only at the top of the stack and not inside
3. The stack contains only a set of viable prefixes
4. The stack never contains viable prefixes

1 Answer

0 votes
by (152k points)
selected by
 
Best answer
Correct Answer - Option 3 : The stack contains only a set of viable prefixes

Viable Prefixes: The set of prefixes of right sentertict forms that can appear on the stack are called viable prefixes.

The stack contains only a set of viable prefixes at a given time.

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

...