1/50
Looks like no tags are added yet.
What is the von Neumann stored program concept?
A computer architecture design where both data and instructions are stored together in the same main memory (RAM) and fetched by the CPU
Name the 6 common CPU components
Control Unit (CU)
Arithmetic logic unit (ALU)
Registers
Cache
Buses
Clock


What is the role of the Arithmetic Logic Unit (ALU)?
It performs all the arithmetic calculations (addition, subtraction etc) and logical decisions (AND, OR, NOT)
What is the function of the control unit (CU)?
It coordinates and manages the CPU’s activities, directing the flow of data, and deciding instructions
What is the purpose of the CPU’s clock?
It sends out a continuous pulse (signal) to synchronise the timing of all internal components and operations
Define a CPU register
A location of extremely fast, temporary storage directly inside the CPU used to hold single instructions or data items currently being processed
What are the 5 registers in a CPU
Program counter
Memory address register (MAR)
Memory data register (MDR)
Current instruction register (CIR)
Accumulator (ACC)
What is the function of the program counter?
Holds the memory addresses of the next instruction to be fetched from main memory
What is the function of the MAR?
Holds the address of the current instruction that is to be fetched from memory to which data is to be transferred
What is the function of the MDR?
Holds the contents found at the address held in the MAR, or data which is to be transferred to main memory
What is the function of the CIR?
Holds the instruction that is currently being decoded and executed
What is the function of the accumulator?
Hold the results of processing
What is a cache?
A small amount of high speed memory built directly within the processor. Used to temporarily hold data and instructions the processor is likely to reuse
Name the three buses in the CPU and state their roles
Address bus - carries memory addresses from the CPU to RAM (unidirectional)
Data bus - Transfers data/ instructions between the CPU and memory/ devices (bidirectional)
Control bus - carries control and command signals to coordinate computer activities (bidirectional)
Describe the steps of the Fetch - Decode - Execute (FDE) cycle
Fetch - the next instruction is retrieved from main memory (RAM) via the buses into the CPU
Decode - the Control unit (CU) interprets the instruction to find out what action needs to be taken
Execute - the instruction is carried out (calculation by the ALU or data loading)
What is memory?
The component of a computer that holds data and programs
What are the 3 types of main memory?
RAM - random access memory
ROM - read only memory
Cache memory
Which of these are volatile?
RAM and cache memory
Which of these are non- volatile?
ROM
What is an example of a program stored in ROM?
BIOS - basic input output system : checks if hardware is functioning correctly once computer is turned on, then computers OS. Because it is always needed, it is stored in ROM.
What is the main structural difference between RAM and ROM?
RAM is volatile (loses data when powered off) and read/ write; ROM is non-volatile(retains data when powered off) and read-only.
What are the purposes of RAM and ROM in a system?
RAM stores the operating system, currently running applications, and active data. ROM stores the bootstrap loader (the initial bootup/ startup instructions for the computer)
Why is secondary storage needed?
For permanent, non-volatile storage of files, programs and data when the computer is turned off.1
What are the three types of secondary storage technologies?
Magnetic - hard disk drive
Optical - DVD/ Blue-ray
Solid-state - SSV, USB flash drive
How is data stored in magnetic storage devices?
Data is represented on the surface of metal platters with tiny magnetised dots. Binary data is represented by the two states of ‘magnetised’ and ‘not magnetised’
How is data written?
The head magnetises or demagnetises a section of the disk that is spinning under it
How is data read?
The head makes a note of whether a section is magnetised or not
What are the advantages of magnetic devices?
Fairly cheap
High in capacity
What are the disadvantages of magnetic devices?
Susceptible to damage if dropped (lots of moving parts) so not portable
Vulnerable to magnetic fields
What are the 3 different types of optical devices?
ROM (read only)
R (recordable)
RW (rewritable)
How is data stored in optical devices?
Data is stored in the reflective surface of an optical device. A laser is used to burn small marks into the surface and binary data is represented in the two states of troughs (burn) and peaks (no burn)
How is data written?
When writing to R or RW discs, the laser burns new troughs into the reflective surface of the disc (RW discs use a chemical dye that allows the burning process to be reversed)
How is data read?
The laser is shone into the surface of the disc. The peaks and troughs reflect different amounts of light. The electronics in the optical device (installed in your computer) can interpret the changes in reflected light as 1s and 0s
What are the advantages of optical storage?
Extremely light and portable (which is why they are used for distribution)
Relatively cheap
If the reflective surface is protected, they can last for long time
What are the disadvantages of optical storage?
Optical discs have a much lower capacity than hard drives or SSDs
Slow seek time (disc must spin to the right location before data can be accessed)
Some CDs, DVDs, and Blu-ray Discs are not rewritable
How is data stored in solid state storage?
Binary data is stored in a similar way to RAM, however solid state devices are NON VOLATILE.
How is data read and written in SSDs?
Solid state devices are random access, meaning data can be accessed in any order and there is no seek time required.
Binary data stored in an SSD is organised into a grid
What are the advantages of SSDs?
No seek time
Portable
Durable (absence of moving parts)
Lack of moving parts also reduces energy consumption, which in turn reduces the amount of heat generated in the computer system
What are the disadvantages of SSDs?
Limited lifespan - number of times SSDs can be written to is limited
How is data read?
Compare solid-state vs magnetic storage on speed and durability
Solid-state is much faster and more durable (no moving parts) but more expensive per gigabyte; Magnetic is slower and prone to physical shock but cheaper for higher capacities
What is a general purpose computer?
A computer designed to be able to carry out a wide range of instructions
What is an embedded system?
A dedicated, single-purpose computer system built inside a larger mechanical or electrical device (e.g., washing machine, microwave)
What are some benifits of using an embedded system rather than a general purpose computer in microwaves, fridges etc?
Fewer components and integrated chips let them fit inside larger devices
Running a single, fixed program with minimal user interface means fewer things can go wrong or crash compared to multitasking PCs.
They need less processing power and memory, and often combine components onto a single chip or microcontroller, keeping per-unit costs low.
Simpler hardware and dedicated functions use less electricity, making them more energy efficient
What is the primary role of the Operating system (OS)?
It manages the computer’s hardware components, resources, memory and security, while providing a user interface (UI) for the user to interact with.
Define Utility Software
Systems software designed to help maintain, configure, optimise or analyse a computer system (e.g., defragmentation tools, antivirus tools, file compression)
What is the difference between a high-level and low-level programming language?
High-level languages are abstract, use English-like syntax, and are easy for humans to read/ write. (Python)
Low-level languages are close to hardware instructions, execution-efficient, but complex to write. (Assembly, machine code)
What does an Assembler do?
It translates Assembly language code into machine code (binary instructions that the CPU can execute directly)
Explain how a compiler works, including its main advantages and disadvantages
It translates the entire high-level code into machine code all at once
Advantage : code runs very fast after compilation
Disadvantage : finding band fixing errors takes longer as the whole code must recompile
Explain how an interpreter works, and its main advantages and disadvantages
It translates and executes high-level source code line by line
Advantage : excellent for debugging; errors are spotted instantly on the exact line they happen
Disadvantage: programs run slower because the code must be translates every time it is run