paper 2 Flashcards
1
Q
Describe two methods of translating high level code into machine code
A
- Compiler. It translates code all at once and produces an executable file.
- Interpreter. It translates code line by line every time the program is run.
2
Q
State why the computer needs to translate the code before it is executed
A
- To convert it to machine code/binary as the processor can only understand machine code / binary code
3
Q
Definition of a high level language
A
- Aimed to be understandable by humans. It has english like structure.
4
Q
Two types of low level code
A
- Assembly code
- Machine code
5
Q
Characteristics of low level language
A
- Easy to optimize
- Specific CPU required
6
Q
What are translators
A
A program that converts one programming language into another