Search Header Logo

Compiler Design-Unit V MCQ

Authored by Subha s

Computers

University

Used 3+ times

Compiler Design-Unit V MCQ
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Peep-hole optimization is a form of

loop optimization

local optimization

constant folding

data flow analysis

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An optimizing compiler

is optimized to occupy less space

is optimized to take less time for execution

optimizes the code

all the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Substitution of values for names whose values are constant, is done in

local optimization

loop optimization

constant folding

none of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Local and loop optimization in turn provide motivation for

data flow analysis

constant folding

peep hole optimization

DFA and constant folding

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Some code optimizations are carried out on the intermediate code because

they enhance the portability of the compiler to other target processors

program analysis is more accurate on intermediate code than on machine code

the information from dataflow analysis cannot otherwise be used for optimization

the information from the front end cannot otherwise be used for optimization

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The optimization which avoids test at every iteration is

Loop unrolling

Loop jamming

Constant folding

None of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The graph that shows basic blocks and their successor relationship is called

DAG

Flow graph

Control graph

Hamilton graph

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?