All Exams Test series for 1 year @ ₹349 only
Question

yacc is which of the following parsers?

This question was previously asked in
UGC NET 2024 Computer Science and Applications Question Paper (23-Aug-2024) (Shift 1)
The correct answer is

LALR Parser

yacc (Yet Another Compiler-Compiler), written by Stephen C. Johnson at Bell Labs, is a parser generator: it reads a grammar with semantic actions and produces a bottom-up shift-reduce parser in C.

The tables yacc builds are LALR(1) tables. LALR(1) merges canonical LR(1) states that share the same LR(0) core, so the table has as few states as an SLR table while keeping most of the look-ahead precision of canonical LR(1). yacc reports any remaining shift/reduce and reduce/reduce conflicts and resolves them with precedence and associativity declarations; GNU Bison follows the same LALR(1) default.

A predictive parser is a top-down LL parser, which yacc does not build. SLR uses FOLLOW sets and is weaker than what yacc produces, and canonical LR (CLR) tables are far larger than yacc's merged-state tables.

LALR Parser option is correct.

Was this answer helpful?
Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) 2026 Mock Test Series
796 Tests 2 Tests Free
219 Attempts
4.4(46)
English
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App