Languages and Translators Flashcards

1
Q

What is a low level language?

A

Code in the form that the computer can directly understand and can allow direct control over the CPU, e.g. binary, machine code.

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

What is a disadvantage of a low level language?

A

It is difficult to read.
It is harder to debug
Non-transferable - specific to machine

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

What is a high level language?

A

Code that is easier to read and understand, and needs a translator in order for the computer to understand it, e.g. Python.

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

What is a disadvantage of a high level language?

A

Slower as it needs to be translated for the computer to understand it.

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

What is an advantage of a high level language?

A

The code is transferable and can be used across different computers.
Easier to understand than a low level language as it is closer to the English language.

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

What is an advantage of a low level language?

A

Faster - as it does not need to be translated.

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

What is the purpose of a translator?

A

Converts a high level language into a low level language.

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

What is an interpreter?

A

A translator that reads line-by-line, and stops when it finds a syntax error.

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

What is the disadvantage of an interpreter?

A

Slower - after first execution - as it reads line by line.
Needs to be translated every time.

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

What’s an advantage of an interpreter?

A

Faster - first time only - as you don’t need to wait for an executable file.
Errors are identified as it run - so it can be fixed.

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

What is a compiler?

A

Creates an executable file and translates the code all at once.

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

What is the disadvantage of a compiler?

A

Errors are listed at the end once the whole program has been run, making it more difficult to resolve.

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

What is an advantage of a compiler?

A

You only need to use it once, and code is then hidden as it is an executable file.

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

Paper 1 link - which type of software is associated with a compiler?

A

Proprietary software as an executable file is created, so the actual code is hidden from the end user.

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

Paper 1 link - which type of software is associated with a interpreter?

A

Open source software - this means the code is visible to those who want to see it.

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