Compiler Design Objective Questions and Answers - 3

Question: 11

Compiler should report the presence of _____ in the source program, in translation process.

(A) Text

(B) Errors

(C) Classes

(D) Objects

Ans: B

Errors

Question: 12

A basic block can be analyzed by

(A) Graph with cycles

(B) DAG

(C) Flow graph

(D) None of these

Ans: B

DAG

Question: 13

Minimum hamming distance method is used for connection of

(A) Algorithm errors

(B) Transcription errors

(C) Semantic errors

(D) Syntactic errors

Ans: D

Syntactic errors

Question: 14

The output of lexical analyzer is

(A) Strings of characters

(B) A set of tokens

(C) Syntax tree

(D) A set of regular expressions

Ans: B

A set of tokens

Question: 15

Symbol table can be used for

(A) Storage allocation

(B) Checking type compatibility

(C) Suppressing duplication of error messages

(D) All of these

Ans: D

All of these

Related Questions