Week 2- Languages Flashcards

1
Q

Why is machine language important?

A

Human programmers view machine language instructions as unwieldy binary
codes that are difficult to write and understand.
SO
Human programmers would prefer to develop computer programs in an
‘easier’ language than machine language.

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

What is meant by the source-code version of a computer program?

A

Version of program written by a human in a non-machine language.

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

What is meant by the executable version of a computer program?

A

Machine language (executable) version of program after it has been translated from the source-code version.

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

What are the two common techniques used to translate source code programs into executable programs?

A

Interpreting & Compiling

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

What is the outcome when a source code program is translated using a compiler?

A

When a source code program is interpreted, it is translated into machine language and immediately executed. There is no permanent copy of the executable version of the program. Each time a user wants to run the
program it must be interpreted (translated) again.

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

What is the outcome when a source code program is translated using an interpreter?

A

When a source code program is compiled, it is translated into a separate machine language (executable) version that can be stored as a file ready for use. There is a permanent copy of the executable version of the program.

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

What is an operation code? (op code)

A

specifies the exact type of instruction.

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

What is an operand?

A

specify the type of value that the instruction is to manipulate.

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

What is an assembly language?

A

These are ‘human oriented’ versions of machine languages. They are easier
to use than machine languages but each individual machine language
instruction needs to be constructed in the assembly language.

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

What is a high level language?

A

These are ‘human oriented’ languages. They are much easier to use than machine languages.

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