Translators Flashcards

1
Q

What does an assembler do?

A

Converts assembly code to machine code

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

What do compilers and interpreters do?

A

Converts source code to machine code

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

Advantages of an assembler?

A

Memory efficient
Faster speed of execution
Hardware orientated

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

Disadvantages of an assembler?

A

Long programs cannot be executed on a small computer
More difficult to write and remember how to write
cannot be ported between computers of different makes

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

Advantages of a compiler?

A

No translation at run time
Speed of execution faster
Optimised code
Original source code hidden

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

Disadvantages of a compiler?

A

Code needs to be recompiled when changed
Designed for a specific type of processor

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

Advantages of an interpreter?

A

Easy to write as program will always run
Code does not need to be recompiled when changed
Easy to learn as fixes can be trialed when an error is found

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

Disadvantages of an interpreter?

A

Translation software is required at run time
Speed of execution is slower
Code is not optimised
Source code required

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