Compiler Design-Unit V MCQ

Compiler Design-Unit V MCQ

University

30 Qs

quiz-placeholder

Similar activities

Design And Analysis of Algorithms

Design And Analysis of Algorithms

University

25 Qs

C-Language Q1

C-Language Q1

University

30 Qs

Compro. Final 1/64 part1

Compro. Final 1/64 part1

University

25 Qs

Mock 2nd MCQ Python

Mock 2nd MCQ Python

University

25 Qs

CS 1400 Final Review

CS 1400 Final Review

University

31 Qs

Edearn Quiz 001

Edearn Quiz 001

University

30 Qs

PYTHON PROGRAMMING STRING Q6

PYTHON PROGRAMMING STRING Q6

University

25 Qs

CSS - Cascading Style Sheets

CSS - Cascading Style Sheets

University

25 Qs

Compiler Design-Unit V MCQ

Compiler Design-Unit V MCQ

Assessment

Quiz

Computers

University

Hard

Created by

Subha s

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?