Principles of computer science Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Von Neumann architecture

A

DIAGRAM:
__________Main Memory
________ (Read)!_____¡(Write)
Input –> Central Proecessing Unit –> Output

  • A structure in which computer hardware is connected and organised.
  • It consists of RAM and CPU interconnected by buses.
  • The CPU reads and writes data & program instruction to and from main memory (RAM)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Main memory

A

Known as Random Access Memory(RAM)
It stores the data & programs the CPU can access.
Volatile - Loses content when power is lost.

Faster and more expensive than secondary storage

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

Programmable computer

A

A computer that is multi-purpose, can be programmed to carry out different tasks. They are able to store program instructions and data in memory.

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

The CPU consists of…

A
  • Control Unit (CU)
  • Arithmetic logic unit (ALU)
  • Registers
  • Clock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Control Unit (CU)

A

The control Unit decodes information received from main memory and coordinates the actions of the other parts of the CPU

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

Arithmetic Logic unit (ALU)

A

Performs arithmetic and logic operations on data

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

Registers

A

Provides fast and temporary storage for instructions

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

Clock

A

Sends out electrical signals to synchronise the actions of the hardware components. Measured in hertz, 1 hertz = 1 “tick” per second

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

Busses

A

Busses connect the CPU with the main memory. There are 3 types of busses:

  • Adress bus
  • Data bus
  • Control bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Secondary Storage

A
Non-volatile
Allows the system to store data and programs permanently.
Types:
-SSD(Solid State Drives): USB drive
-HDD(Hard Disc Drive): Magnetic storage
-Optical Storage: DVD/CD

Cheaper and slower than main memory.

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

Solid State Drive

A

Represents bits by little pools of trapped electrons on a microchip

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

Binary System

A

Components inside computers have billions of transistors. Binary is used to represent the transistors inside the component. Transistors can be on or off (1 or 0).

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

Fetch

A

CPU sends through the address bus the memory address of the next instruction
The CU within the CPU sends a read message to the memory through control bus
The content of the memory locations is sent to the CPU via the data bus

General: The next instruction to be executed is transferred from the RAM to the CPU

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

Decode

A

The CU looks up the instruction in the CPUs instruction set

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

Execute

A

CU coordinates the action of other components to carry out the operation and instructs the ALU if calculations needed to be done

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

Why is binary used?

A

Components inside computers have billions of transistors. Binary is used to represent the transistors inside the component. Transistors can be on or off (1 or 0).

17
Q

Signed / unsigned integer

A

An unsigned integer has no positive or negative sign.
Signed: -8, +8
Unsigned: 8