Understanding how computers store data, process instructions, and stay secure.
1. Data Representation
Numbers (Integers)
Computers store positive integers using Binary (Base 2).
Target: 20
- 128? No (0)
- 16? Yes (1) rem 4
- 4? Yes (1) rem 0
- Result: 00010100
Reals & Text
Used for very large or very small numbers (Reals).
Represents text characters.
• Uses 8 bits per character.
• Stores 256 different characters.
Graphics
- Stored as a grid of pixels.
- Each pixel has a binary color code.
- Photo realistic.
- Resolution Dependent (Pixelates when resized).
- Editing changes individual pixels.
- Large file size.
- Stored as mathematical attributes.
- Attributes: x, y, radius, line color, fill color.
- Resolution Independent (Scales perfectly).
- Editing changes object attributes.
- Small file size.
2. Computer Structure
The Processor (CPU)
The brain of the computer. It has 3 main parts:
Performs maths (+, -) and logical comparisons (AND, OR, >).
Manages the Fetch-Execute cycle. Controls the flow of data. Uses the Clock line.
Tiny, super-fast storage locations inside the CPU. Used to hold data temporarily while processing.
Memory & Buses
Organized into locations. Each location has a Unique Address (like a house number) and stores Data.
Transfers actual data between CPU and Memory.
Transfers the memory address of the data to be fetched/saved.
Translation
Why? Processors only understand Machine Code (1s and 0s). High Level Languages (HLL) like Python must be translated.
- Translates 1 line at a time.
- Stops at first error.
- Pros: Good for debugging/testing.
- Cons: Slower execution; needs translator every time.
- Translates whole program at once.
- Creates Object Code file.
- Pros: Runs fast; no translator needed to run.
- Cons: Harder to debug.
3. Environment & Security
Environment
Computers and Data Centers use huge amounts of electricity for Running and Cooling. This contributes to carbon emissions.
- Sleep/Standby Settings: Set monitors/drives to turn off when inactive.
- Modern Monitors: Use LED/OLED instead of older CRT screens.
- Intelligent Heating: Use smart systems to only heat used rooms.
- Cloud Computing: Shared resources are often more efficient.
Security
Checks all data coming in and out of a network. Blocks unauthorised access based on a set of rules. Can be Hardware or Software.
Scrambling data using a Key so it is unreadable to anyone who intercepts it. Only the person with the key can decrypt it. Used for passwords, banking, and emails.