wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Translators

Total questions: 28

Worksheet time: 14mins

Name
Class
Date
1.

Translates low level assembly language mnemonic into machine code

a)

Assembler

b)

Compiler

c)

Interpreter

2.

Translates source code from high level languages into object code and then into machine code

a)

Assembler

b)

Compiler

c)

Interpreter

3.

Program is translated line by line as the program is running

a)

Assembler

b)

Compiler

c)

Interpreter

4.

Which of the following is NOT a translator?

a)

Assembler

b)

Compiler

c)

Interpreter

d)

Executable

5.

Which of the following is false:

a)

INTERPRETED programs run slower than COMPILED programs

b)

ASSEMBLY LANGUAGE is easier to read then MACHINE CODE

c)

COMPILED programs are easier to debug

d)

MACHINE CODE programs are usually HARDWARE SPECIFIC

6.
Translate entire source code all in one go into Machine Code
a)
Compiler
b)
Assembler
c)
Translator 
d)
Interpreter
7.
Difficult to write in (but easier than Machine code)
a)
Interpreter
b)
Translator
c)
Compiler
d)
Assembly Langauge
8.

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

9.

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

10.

Which of the following is NOT a High Level Language?

a)

Python

b)

Java

c)

x86 Assembly

d)

C++

11.

Why were high-level languages developed?

a)

Low-level language was too easy

b)

They were created by accident

c)

Low-level languages are hard to remember and use

d)

Computers were getting too advanced

12.

Why do we need translators?

a)

Computers only understand program's in assembly code.

b)

Computers only understand program's in high-level language.

c)

Computers only understand Norwegian.

d)

Computers only understand program's in machine language.

13.

LDA 51, is an example of a command in which language?

a)

Python

b)

Machine Code

c)

Assembly Code

d)

C++

e)

Java

14.

What is an advantage of a Low-level language?

a)

Executes very fast

b)

Code occupies less memory space

c)

Statements can be used to control specific hardware

d)

It is easier to learn

e)

Easier to debug

15.

What is an advantage of a High-level language?

a)

Executes very fast

b)

Code occupies less memory space

c)

Has specific statements designed to solve certain types of problems.

d)

It is easier to learn

e)

Easier to debug

16.

Which of these could be machine code?

a)

print ("01011011")

b)

01011011

c)

code = int(input("Enter code")

17.

This translator program reports errors at the end of translation.

a)

Compiler

b)

Interpreter

18.

This translator needs to be present in memory each time the program is executed.

a)

Compiler

b)

Interpreter

19.

This translator runs more slowly due to executing the program one line at a time.

a)

Compiler

b)

Interpreter

20.

Using this translator means that the source code program will only be used again if the program needs to be changed.

a)

Compiler

b)

Interpreter

21.

This translator will stop program execution immediately if it finds a line of source code that results in an error

a)

Compiler

b)

Interpreter

22.

What is a high level language?

a)

A programming language close to the computer's instruction set

b)

One that is only used on PCs

c)

A programming language close to the programmer's spoken/written language

d)

A series of binary digits

23.

What is a low level language?

a)

A programming language close to the programmer's spoken/written language

b)

A programming language close to the computer's instruction set

c)

A programming language that operates on only one functioning level

d)

A programming language used by beginners

24.

What is a program written in a high level language known as?

a)

Object code

b)

Subject code

c)

Machine code

d)

Source code

25.

What is the purpose of a translator?

a)

To turn written code into subject code

b)

To turn object code into source code

c)

To turn object code into machine code

d)

To turn source code into object code

26.
Different CPUs require different assemblers.
a)
True
b)
False
27.
Interpreters produce executable files.
a)
True
b)
False
28.
Compilers produce executable files.
a)
True
b)
False