Compiler Design Objective Questions and Answers - 1

Question: 1

Loader is a program that

(A) Places programs into memory and prepares them for execution

(B) Automates the translation of assembly language into machine language

(C) Accepts a program written in a high level language and produces an object program

(D) Appears to execute a source program as if it were machine language

Ans: A

Places programs into memory and prepares them for execution

Question: 2

Interpreter is preferred over a compiler is

(A) During program development phase

(B) When storage space is to be minimized

(C) When efficient use of computer resources is the consideration

(D) All of these

Ans: A

During program development phase

Question: 3

Which of the following is used for grouping of characters into tokens?

(A) Scanner

(B) Code generator

(C) Code optimizer

(D) Parser

Ans: A


Question: 4

Type checking is normally done during

(A) Code optimization

(B) Syntax directed translation

(C) Lexical analysis

(D) Syntax analysis

Ans: B

Syntax directed translation

Question: 5

Back- patching is useful for handling

(A) Forward references

(B) Backward references

(C) Conditional jumps

(D) Unconditional jumps

Ans: A

Forward references

Error Report!

Related Questions