1. Home
  2. Computer Science MCQs
  3. Software Engineering
  4. In the context of compiler design, what is the primary…

Added 12 Sep 2025

In the context of compiler design, what is the primary purpose of the Sethi-Ullman algorithm?

  1. Register allocation optimization Correct answer
  2. Lexical analysis optimization
  3. Syntax tree minimization
  4. Intermediate code generation

Correct answer

A. Register allocation optimization

16 views

MCQSEXAM

Explanation

The Sethi-Ullman algorithm generates optimal code for expression trees by minimizing the number of registers required.

Reference

Asked in: GATE CS, UGC NET CS

https://www.geeksforgeeks.org/code-generation-for-expression-trees/

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Software Engineering MCQs

Practise all Software Engineering MCQs

Similar MCQs