Unit 2 - Computer Systems Flashcards

1
Q

Advantages of using binary numbers

A
  • Few rules for addition - making calculations simpler
  • Degraded signal can still be detected (as representing 1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Each character on the keyboard has a unique binary code which is called…

A

ASCII

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

What does ASCII include

A
  • non printable chars (e.g <return>, <tab>, <delete>)</delete></tab></return>
  • printable chars
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are control characters

A

e.g RETURN, TAB, DELETE

(non printable characters)

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

Unicode

A

Represents more chars with 16-bit character code (2^16) this can represent foreign languages like Arabic and Chinese

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

ASCII advantage

A

1 char = 1 byte (less memory)

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

ASCII disadvantage

A

only 255 possible chars

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

Unicode advantage

A

2^16 possible chars (represents foreign langs.)

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

Unicode disadvantage

A

1 char = 2 bytes (more memory)

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

What is machine code

A

binary

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

name the 2 translators

A

interpreter
compiler

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

What is an interpreter

A

Converts and executes each line of code one line at a time

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

Interpreter advantages

A

Immediately tells programmer when syntax error is made
Good for humans learning to program ^

Don’t need to leave programming env (e.g., vscode or livecode)

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

Interpreter disadvantages

A

Needs to be translated every time the program is run

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

Compiler

A

Will not run until entire code is turned into machine code

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

Compiler advantages

A

Once translated, it doesn’t need to be translated again ∴ runs faster

Compiled code requires less memory to execute

17
Q

Compiler disadvantage

A

Compiled code cannot be edited

18
Q

What are the 3 parts of a CPU (processor)

A
  • The control unit
  • The arithmetic & logic unit (ALU)
  • Registers
19
Q

What is the control unit for

A
  • responsible for running programs that are loaded into main memory
  • sends signals to fetch instructions from main memory
  • understands these instructions
  • carries out the instructions that are fetched from main memory
20
Q

What does the ALU do

A

Carries out computer’s arithmetical functions like addition, division etc
Also does logical functions like IF, AND, WHILE etc

21
Q

What are registers

A

Small temp memory locations locate. They store the data for the current instruction being processed.

22
Q

Main memory

A

either ram or rom

23
Q

Backing storage

A

outside the main processor, e.g SSDs, HDDs

24
Q

ROM - read only memory

A
  • Data is stored permanently on rom
  • not volatile, data not lost when the power goes off
  • data in rom cannot be changed
25
Q

RAM - random access memory

A
  • All data in ram is lost when power is switched off (volatile)
  • data held in ram CAN be changed
  • the processor can write to and read from ram
26
Q

Buses

A

Multiple lines that connect the cpu and main memory and are used to transfer data and send signals between them

27
Q

Address bus

A
  • uni directional (one way)
  • specifies the address of the memory location that is to be read from or written to
28
Q

Data bus

A

Transfers data between main memory and processor.
bi-directional (2 way)

29
Q

what can be on the data bus

A

data
an address
an instruction

30
Q

Fetch execute cycle

A

1) Address bus set up with the required address.
2) Read line (on control bus) is activated
3) Instruction is fetched from memory location using the data bus and stored in
the instruction register.
4) Instruction in the instruction register is decoded & executed

31
Q

Viruses

A