wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Compiler Design Lecture 1

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

A compiler is faster than interpreter

a)

True

b)

False

c)

None of these

2.

Choose the components of a language processing system.(Select all the correct answers)

a)

Compiler

b)

Linker

c)

Loader

d)

Operating System

3.

Information about source program is stored in

a)

operating system

b)

symbol table

c)

interpreter

d)

database

4.

Code Optimization is done before intermediate code generation phase

a)

True

b)

False

5.

Choose the correct answer

a)

The analysis part constructs the target program

b)

The synthesis part constructs the target program

c)

The synthesis part constructs the assembly code

d)

None of these

6.

A parse tree is generated as the output of

a)

Lexical Analysis

b)

Semantic Analysis

c)

Syntax Analysis

d)

Code Generation

7.

An identifier is a

a)

keyword

b)

operator

c)

lexeme

d)

token

8.

An entry to the symbol table is made in the lexical analysis phase itself.

a)

True

b)

False

9.

Which component of a language preprocessor solves external memory addresses?

a)

Loader

b)

Interpreter

c)

Linker

d)

Assembler

10.

Choose the correct option from the given answers.

a)

A compiler translates machine language to high level language

b)

A Compiler translates assembly language to machine language

c)

A compiler translates machine language to assembly language

d)

None of these