Jan 8 Flashcards

firtst lecturez(CPU, prefix etc.)

1
Q

Define “power” in programming languages.

A

Power is defined by the number of instruction(s) required to replace an equivalent set of instruction(s) at another level of a computer.

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

What is the job of CPU?

A

Fetch, decode and execute instructions.

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

What is a register?

A

A register is a CPU storage. It stores a single word. For example, a 32-bit register can store a single 32-bit word.

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

What is the purpose of having a six-level computer? Why not have just a one-level computer?

A

Multiple levels in computer systems enable a balance between human-readable programming and machine execution, providing modularity and cost-efficiency. They allow humans to program in a language they understand, while software bridges the gap for computers to execute the instructions.

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

What happens if you change one level in a multilevel computer?

A

If you change one level, you must change that level and the interpreters(from the level above and below). All levels are modular, if you swap one level, you only need to swap its support methods.

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

What is the similarity between compilation and interpretation?

A

Compilation and interpretation both convert higher level language instructions to lower level language instructions.

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

What is the difference between compilation and interpretation?

A

Compilation converts the whole program at once, whereas interpretation converts a set of instructions, then executes it before convering the next set. Compilation can take a while initially but once compiled, runs very quickly every time. Interpretaion is faster initially but must do the same thing every time, so can be slower on subsequent runs.

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

What is a bit?

A

Binary digit: 0 or 1

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

What is a byte?

A

8-bit word

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

What does CPU stand for?

A

Central Processing Unit

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

What is main memory in other word?

A

RAM

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

What is bus?

A

A bus is a shared pathway used for transmitting data between different parts of a computer.

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