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

Match the LIST-I with LIST-II

LIST-ILIST-II
A. Conflict ResolutionI. Three - Address Code
B. Common SubsequenceII. Precedence
C. QuadruplesIII. Syntax Directed Translations
D. L-Attributed definitionsIV. Direct Acyclic Graph (DAG)

Choose the correct answer from the options given below:

This question was previously asked in
UGC NET 2024 Management Question Paper (02-Sep-2024) (Shift 2)
The correct answer is

A-II, B-IV, C-I, D-III

Each item in the first list is a technique or construct from parsing, optimisation or intermediate-code generation, matched with the tool used for it.

A. Conflict Resolution — shift/reduce conflicts in an ambiguous grammar (e.g. E → E + E | E * E) are resolved in YACC/LR parsers by declaring operator precedence and associativity. A → II.

B. Common Subsequence — repeated (common) subexpressions in a basic block are detected by building a directed acyclic graph, where a shared node represents the common part and is computed once. B → IV.

C. Quadruples — a record with fields op, arg1, arg2, result; it is one of the standard representations of three-address code (with triples and indirect triples). C → I.

D. L-Attributed definitions — a class of syntax-directed definitions whose inherited attributes depend only on the parent and left siblings, so they can be implemented as syntax-directed translation schemes during a left-to-right parse. D → III.

The code A-II, B-III, C-I, D-IV swaps the DAG and translation pairs; A-III, B-II, C-IV, D-I and A-IV,B-I, C-II, D-III misplace precedence and three-address code.

A-II, B-IV, C-I, D-III option is correct.

Was this answer helpful?

Important Questions from Intermediate Code Generation

  1. Consider the following statements about the use of backpatching in a compiler for intermediate code generation:
    (I) Backpatching can be used to generate code for Boolean expression in one pass.
    (II) Backpatching can be used to generate code for flow-of-control statements in one pass.
    Which ONE of the following options is CORRECT?
  2. Which of the following is not an intermediate code form ?

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
218 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