Compiler Design - Basics of code optimization

6:  

Local and loop optimization in turn provide motivation for 

A.

data flow analysis

B.

constant folding

C.

peep hole optimization

D.

DFA and constant folding

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



7:  

A compiler for a high-level language that runs on one machine and produces code for a different machine is called

A.

optimizing compiler

B.

one pass compiler

C.

cross compiler

D.

multipass compiler

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



8:  

 A linker reads four modules whose lengths are 200, 800, 600 and 500 words, respectively. If they are loaded in that order, what are the relocation constants ?

A.

0, 200, 500, 600

B.

0, 200, 1000, 1600

C.

200, 500, 600, 800

D.

200, 700, 1300, 2100

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



9:  

An optimizing compiler 

A.

is optimized to occupy less space 

B.

is optimized to take less time for execution

C.

optimizes the code

D.

All of the above

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



Related MCQ


Syllabus Covered in this section is

  • Compilation and Interpretation 
  • Bootstrap compilers
  • Phases of compilation process
  • Lexical analysis
  •  Context free grammars
  • Parsing and parse trees
  • Representation of parse (derivation) trees as rightmost and leftmost derivations
  • Bottom up parsers-shift-reduce, operator precedence and LR
  • Topdown parsers-left recursion and its· removal.
  • Recursive descent parser.
  • Predictive parser
  • Intermediate codes-Quadruples, Triples
  • Intermediate code generation
  • Target code generation
  • Basics of  Code optimization
  • Syntax directed translation
  • Runtime environments

This Section covers Multiple Choice Questions Answers in Compiler Design .

Who can benefit - 

  • Any undergraduate or postgraduate student who is seeking Compiler Design objective type questions answers can use this section.
  • Compiler Design Multiple Choice questions Answers can help you in interview preparation.
  • Compiler Design MCQ Questions Answers are also used by engineering students in the preparation of their Exams.
  • Any candidate who has to appear for DOEACC A, B or C level Exam can also learn Compiler Design Questions Answers.
  • All the teachers who are appearing for Kendriya Vidyalya Sangathan Entrance Exam can also use Compiler Design Multiple Choice Questions Answers.
  • Compiler Design MCQs can also be used by the students who are pursuing B.Sc or Msc Computer Science.
  • Compiler Design Questions Answers can also be used by BCA students for the preparation of their exams.
  • Any student who is pursuing B.Sc. or Msc  in Information Technology can also use this Compiler Design mcq Questions Answers.
  •  MCA students can also prepare for their exams using Compiler Design Objective Type Questions Answers.
  • You can get free access to Compiler Design mcq pdf.
  • You can also have online access to Compiler Design Questions Answers EBook.

Various Search Terms used for this section are

  • Compiler Design quiz questions with answers

  • Compiler Design exam questions answers

  • Compiler Design MCQ questions Answers

  • Compiler Design MCQ