Computers Flashcards

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

Von Neumann architecture

A

A structure in which the hardware is connected and organised.
It consists of Main Memory and a Central Processing Unit interconnected by buses.

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

The CPU reads and writes data & program instructions to and from main memory.

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 main memory.

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

CPU parts

A

Consists of:
- Control Unit (CU)
- Arithmetic Logic Unit (ALU)
- Registers

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

Control unit (CU)

A
  • Decodes instructions received from main memory
  • Coordinates the actions of other components
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, temporary storage for instructions.

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

Buses

A

Buses connect the components inside a computer.
Types:
- Address bus
- Data bus
- Control bus

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

Address bus

A

Carries the address of the memory location. Unidirectional, only the CPU can put an address on this bus.

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

Data bus

A

Holds the value being read from or written to memory. Bidirectional.

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

Control bus

A
  • Carries command signal from the control unit to other components. The status signal is sent back to the CPU.
  • Bidirectional.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Clock

A

A tiny quarts crystal that vibrates and sends out electronic 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
12
Q

Fetch/Decode/Execute cycle

A

Program instructions and data are stored in main memory and transferred/fetched one data at a time to the CPU, where they are decoded and executed.

Fetch: The control unit sends a read signal to main memory along the control bus. It also places the memroy address of the next instruction on the address bus. The RAM copies the content of the memory location indicated by the address bus on the the data bus.

Decode: The control unit decodes the instructions.

Execute: The control unit sends signal to the other components of the CPU instructing them what to do.

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

Secondary Storage

A
  • Non-volatile
  • Allows the system to store data and programs permanently.
  • Cheaper and slower than main memory.

Types:
- SSD(Solid State Drives): USB drive
- Magnetic storage: HDD(Hard Disc Drive)
- Optical Storage: DVD/CD

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

Magnetic Storage

A
  • A head reads & writes to spinning discs.
  • An area that is magnetised represents a 1.
  • An area that is not magnetised represents a 0.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Solid State Drive

A
  • Represents bits by little pools of trapped electrons on a microchip.
  • No flow(trapped) represents a 0.
  • Electron flow represents a 1.
16
Q

Optical storage

A
  • Laser beam reads and writes data(Pits and land)
  • Pit represents a 0
  • Land represents a 1
17
Q

Operating system (OS)

A

A program that controls and manages the hardware and all other software on a computer and provides an interface for users

18
Q

Application software

A

Programs or apps deigned for end users.
Such as:
- Web browser
- Spreadsheet
- Game

19
Q

Utility software

A

Programs that functionality to a computer system or improve its performance in some way.
Such as:
- Disk repair
- Compression
- Anti-malware

20
Q

Why is robust software made

A

To produce software that is capable of handling the unexpected without crashing, not generating incorrect output, or not revealing sensitive data

21
Q

Bad programming practices

A
  • Not having a well-thought design
  • Not following coding standards
  • Using a temporary fix
  • Writing unstructured code
  • Not testing
22
Q

Scheduling

A
  • All processes are held in a queue
  • Some processes are prioritised
  • Processes are allocated time slides, length of time slices depends on priority. Processes are switched at the end of their time slice
  • Unfinished processes are put to the back of the queue
  • During the time slice, the process has exclusive use of the processor
23
Q

Types of operators

A
  • Relational
  • Arithmetic
  • Logical
24
Q

Relational

A

<, >, !=, ==

25
Q

Arithmetic

A

+, -, *, /

26
Q

Logical

A

AND, OR, NOT

27
Q

Write data in SSD

A
  • Current applied to a transistor
  • Forces electrons through a barrier, trapping them in pools
  • Full pool (0), Empty pool (1)
28
Q

Disk fragmentation

A
  • Files are written to a disk in blocks
  • Blocks can be dispersed through the disk
29
Q

Disk defragmentation

A
  • When file blocks are rearranged in the disk
  • To place free space together / file blocks together
30
Q

Audit trails

A
  • Keeps track of who made what changes
  • Allows to track back problems
  • Enables program to be rolled back
  • Help produce robust software
31
Q

Code reviews

A
  • Check that software adheres to agreed standards
  • Find instances of inefficient code
  • Identify potential vulnerabilities
  • Done by programmer
32
Q

Compiler

A

Translates the source code into a stand-alone machine code program that can be executed by the processor

33
Q

Interpreter

A

Translates a high-level code line by line into machine code. It is needed each time the program is run

34
Q

Cache

A
  • Store frequently used instructions (act as a buffer)