slr5 - Application generation Flashcards

1
Q

What is the difference between machine code and object code

A

Machine code is the actual binary that makes up the program. object code is a compiled version of the source code

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

What is the process of converting source code into machine code

A

Translation

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

What is the difference between an interpreter and a compiler

A

An interpreter goes line by line while the program is being run. A compiler translates the entire program into object code before runtime

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

Give an advantage of using a interpreted language

A

Easy to test source code because it does not need to be recompiled every time

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

Give a disadvantage of an interpreter

A

Translation software is required at runtime
Code is not optimized
Speed of execution is slower
Source code is required

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

Give an advantage of a compiler

A

Source code is kept private
Speed of execution is faster
Code is optimised
No need for translation at runtime

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

Dive a disadvantage of a compiler

A

Program will not run with any syntax errors
Code need to be recompiled each time it is changed
Designed for a specific type of processor

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

What is a procedural language

A

A programming language that has built in data types and structures

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