Compiler Design (2170701) MCQs

MCQs of Introduction

Showing 1 to 9 out of 9 Questions
1.

Which of the following is not part of Analysis phase

(a)

Lexical Analysis

(b)

Syntax Analysis

(c)

Semantic Analysis

(d)

Code Generation

Answer:

Option (d)

2.

Three address code invloves

(a)

Exact 3 adreess

(b)

At most 3 address

(c)

At least 3 address

(d)

All of these

Answer:

Option (b)

3.

A grammar of the programming is checked at ______ phase of compiler

(a)

Semantic analysis

(b)

Syntax analysis

(c)

Code optimization

(d)

Code generation

Answer:

Option (b)

4.

In a compiler, keywords of a language are recognized during

(a)

Parsing of the program

(b)

The code generation

(c)

The lexical analysis of the program

(d)

Dataflow analysis

Answer:

Option (c)

5.

In a compiler, the data structure responsible for the management of information about variables and their attributes is

(a)

Semantic stack

(b)

Parser table

(c)

Symbol table

(d)

Abstract syntax tree

Answer:

Option (c)

6.

Which of the following system software resides in the main memory? 

(a)

Text Editor

(b)

Assembler

(c)

Linker

(d)

Loader

Answer:

Option (d)

7.

Which of the following task performed by preprocessor

(a)

Macro Processing

(b)

Language Extension

(c)

Rational Processor

(d)

All of these

Answer:

Option (d)

8.

Which of the following system program that brings together separately compiled modules of a program into a form language that is suitable for execution

(a)

Assembler

(b)

Linking loader

(c)

Cross compiler

(d)

None of the mentioned

Answer:

Option (b)

9.

An intermediate code form is ___________

(a)

Postfix Notation

(b)

Syntax Trees

(c)

Three address code

(d)

All of the mentioned

Answer:

Option (d)

Showing 1 to 9 out of 9 Questions