1000+ Compiler Construction MCQS with Answers Pdf - 2

Question: 6

Loader is a program that

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

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

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

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

Ans: D

Places programs into memory and prepares them for execution

Question: 7

Back patching is useful for handling

(A) Backward references

(B) Forward references

(C) Conditional jumps

(D) Unconditional jumps

Ans: B

Forward references

Question: 8

Two producers both of which treat the other as a called procedure and itself the callee, are called

(A) Ambiguous master slave routines

(B) Co-routines

(C) Sub-sub routines

(D) Master slave routines

Ans: B

Co-routines

Question: 9

Access time of the symbol table will be logarithmic, if it is implemented by

(A) Self organizing list

(B) Hash table

(C) Search tree

(D) Linear list

Ans: C

Search tree

Question: 10

Which data structure in a compiler is used for managing information about variables and their attributes?

(A) Abstract syntax tree

(B) Parse table

(C) Semantic stack

(D) Symbol table

Ans: D

Symbol table

Related Questions