Computer Structure Flashcards

1
Q

registers are

A

fast, temporary storage locations on the processor

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

Registors store

A

data, instructions or addresses being used by the CPU

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

ALU

A

stands for the Arithmetic and Logic Unit

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

what does the ALU do

A

carriers out calculations
comapres numbers
performs logical operations using AND/OR/NOT

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

The controll unit

A

manages the flow of data around the computer

uses a clock

has a reset lines

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

Each memory location is

A

its own unique address

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

Memory is

A

a block of storage locations connected to the processor by the data bus and address bus

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

The data bus

A

carries data from memory to be used by the processor
carries data from the processor to be stored in memory
is bi-directional because data can travel in both directions

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

The address bus

A

tells memory which memory location is being read from

tells memort which memort location is being written to

is uni-directional because the address always goes from the processor to memory

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

what does a translator do

A

converts the high level program into binary

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

why is a translator required

A

humaans understand high level lanngauges

computers understand binary

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

There are two types of translator

A

interpreter
compiler

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

an interpreter

A

translates source code into machine code one line at a time

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

advantages of interpreters

A

errors are flagged after each line has been interpreted making debugging easier

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

disadvantages of an interpreter

A

slower because statements in a loop are translated repeatedly

the interpreter must remain in memort to allow the program to run

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

a compiler translates

A

the entire source code to object code in one code

17
Q

advantages of compilers

A

a program only needs to be compiled once, and would only need to be compiled again if further changes have been made

the compiler does not need to remain in memort once the program has been compiled, as the object code can run independently

18
Q

disadvantages of a compiler

A

harder to debug because all of the errors are reported once the porgram has been compiled