Font size
WorksheetsComputer Translators
Total questions: 28
Worksheet time: 14mins
Translates low level assembly language mnemonic into machine code
Assembler
Compiler
Interpreter
Translates source code from high level languages into object code and then into machine code
Assembler
Compiler
Interpreter
Program is translated line by line as the program is running
Assembler
Compiler
Interpreter
Which of the following is NOT a translator?
Assembler
Compiler
Interpreter
Executable
Which of the following is false:
INTERPRETED programs run slower than COMPILED programs
ASSEMBLY LANGUAGE is easier to read then MACHINE CODE
COMPILED programs are easier to debug
MACHINE CODE programs are usually HARDWARE SPECIFIC
What is machine code?
Instructions and data in binary
Serial number of the CPU
Instructions and data in human readable form
Instructions and data in assembly code mnemonics
What is the problem writing machine code?
Quick to learn
Easy to debug
Easy to read
Hard to remember the binary codes Hard to remember the binary codes
Which of the following is NOT a High Level Language?
Python
Java
x86 Assembly
C++
Why were high-level languages developed?
Low-level language was too easy
They were created by accident
Low-level languages are hard to remember and use
Computers were getting too advanced
Why do we need translators?
Computers only understand program's in assembly code.
Computers only understand program's in high-level language.
Computers only understand Norwegian.
Computers only understand program's in machine language.
LDA 51, is an example of a command in which language?
Python
Machine Code
Assembly Code
C++
Java
What is an advantage of a Low-level language?
Executes very fast
Code occupies less memory space
Statements can be used to control specific hardware
It is easier to learn
Easier to debug
What is an advantage of a High-level language?
Executes very fast
Code occupies less memory space
Has specific statements designed to solve certain types of problems.
It is easier to learn
Easier to debug
Which of these could be machine code?
print ("01011011")
01011011
code = int(input("Enter code")
This translator program reports errors at the end of translation.
Compiler
Interpreter
This translator needs to be present in memory each time the program is executed.
Compiler
Interpreter
This translator runs more slowly due to executing the program one line at a time.
Compiler
Interpreter
Using this translator means that the source code program will only be used again if the program needs to be changed.
Compiler
Interpreter
This translator will stop program execution immediately if it finds a line of source code that results in an error
Compiler
Interpreter
What is a high level language?
A programming language close to the computer's instruction set
One that is only used on PCs
A programming language close to the programmer's spoken/written language
A series of binary digits
What is a low level language?
A programming language close to the programmer's spoken/written language
A programming language close to the computer's instruction set
A programming language that operates on only one functioning level
A programming language used by beginners
What is a program written in a high level language known as?
Object code
Subject code
Machine code
Source code
What is the purpose of a translator?
To turn written code into subject code
To turn object code into source code
To turn object code into machine code
To turn source code into object code
