paper 2 Flashcards

1
Q

Describe two methods of translating high level code into machine code

A
  1. Compiler. It translates code all at once and produces an executable file.
  2. Interpreter. It translates code line by line every time the program is run.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Definition of a high level language

A
  • Aimed to be understandable by humans. It has english like structure.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Two types of low level code

A
  • Assembly code
  • Machine code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Characteristics of low level language

A
  • Easy to optimize
  • Specific CPU required
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are translators

A

A program that converts one programming language into another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly