Compiler Design Questions and Answers for Gate 2020-2021 - 2

Question: 6

What is a compiler?

(A) A compiler is calculating device which is providing very efficient execution

(B) A compiler is a general purpose language providing very efficient execution

(C) A compiler converts the whole of a higher level program code into machine code in one step

(D) A compiler does a conversion line by line as the program is run

Ans: C

A compiler converts the whole of a higher level program code into machine code in one step

Question: 7

Only OS independent compiler is

(A) Java compiler

(B) Visual basic compiler

(C) Pascal compiler

(D) Turbo C compiler

Ans: A

Java compiler

Question: 8

The phase ‘Semantic Analysis’ is responsible for ____ in Compiler.

(A) Check semantics

(B) Static checking

(C) Type checking

(D) All of these

Ans: D

All of these

Question: 9

The errors that can be pointed out by the compiler are known as

(A) Internal errors

(B) Logical errors

(C) Semantic errors

(D) Syntax errors

Ans: D

Syntax errors

Question: 10

What do you call the translator which takes assembly language program as input & produce machine language code as output?

(A) Assembler

(B) Compiler

(C) Debugger

(D) Interpreter

Ans: A

Assembler

Related Questions