Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Compiler and Interpreter

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which one of the following is a top-down parser?

a)

Recursive descent parser.

b)

Operator precedence parser.

c)

An LR(k) parser.

d)

An LALR(k) parser

2.

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

a)

Text Editor

b)

Assembler

c)

Linker

d)

Loader

3.

By whom is the symbol table created?

a)

Compiler

b)

Interpreter

c)

Assembler

d)

None of the mentioned

4.

What does a Syntactic Analyser do?

a)

Maintain Symbol Table

b)

Collect type of information

c)

Create parse tree

d)

None of the mentioned

5.

What is Syntax Analyser also known as

a)

Hierarchical Analysis

b)

Hierarchical Parsing

c)

None of the mentioned

d)

Hierarchical Analysis & Parsing

6.

Translates low level assembly language mnemonic into machine code

a)

Assembler

b)

Compiler

c)

Interpreter

7.

Program is translated line by line as the program is running

a)

Assembler

b)

Compiler

c)

Interpreter

8.

Which of the following is NOT a translator?

a)

Assembler

b)

Compiler

c)

Interpreter

d)

Executable

9.
Compilers translate high-level language into machine code.
a)
True
b)
False
10.
High and low-level programming languages can be understood by a computer.
a)
False
b)
True
11.
An example of a high-level programming language is:
a)
Python
b)
Assembly
c)
Machine code
d)
Cloud
12.
Machine code is easy to understand by a human.
a)
False
b)
True
13.
Directly executable by the CPU. Written in 1's and 0's or Hex.
a)
Machine Code
b)
High Level Language
c)
Assembly Language
d)
VB.net
14.
Compilers, assemblers and interpreters are examples of this.
a)
Translator
b)
Run time environment
c)
Editor
d)
Error diagnostics
15.

Program is translated line by line as the program is running

a)

Assembler

b)

Compiler

c)

Interpreter

16.

What is machine code?

a)

Instructions and data in binary

b)

Serial number of the CPU

c)

Instructions and data in human readable form

d)

Instructions and data in assembly code mnemonics

17.

What is the problem writing machine code?

a)

Quick to learn

b)

Easy to debug

c)

Easy to read

d)

Hard to remember the binary codes Hard to remember the binary codes

18.

Select a Machine Independent phase of the compiler

a)

Syntax Analysis

b)

Intermediate Code generation

c)

Lexical Analysis

d)

All of the mentioned

19.

What is a MNEMONIC?

a)

A single action that can be performed by a computer.

b)

A symbol that represents an instruction in assembly code.

c)

A high level language keyword.

d)

A register used inside a CPU A register used inside a CPU.

20.

What is the problem writing machine code?

a)

Quick to learn

b)

Easy to debug

c)

Easy to read

d)

Hard to remember the binary codes Hard to remember the binary codes