National 5 Computing Science: Computer Systems
Binary and Data Representation
Binary Basics: Computer systems use the binary (base ) system consisting of 's and 's to store and represent all information. High-level code is converted to binary (machine code) for computer comprehension.
Decimal vs. Binary: The decimal (denary) or base system uses digits -. Binary uses only and .
Place Values: Binary place values follow powers of : , , , , , , , .
Conversions:
Binary to Decimal: Add the place values for each column containing a . (e.g., ).
Decimal to Binary: Subtract the largest possible power of from the decimal number repeatedly, placing a in the corresponding column or a if it cannot be subtracted.
Units of Storage:
Bit: The smallest piece of data ( or ).
Byte: consists of bits; can represent values up to (total of unique values).
Hierarchy: Each unit is times larger than the previous: Byte Kilobyte Megabyte Gigabyte Terabyte Petabyte.
Text Representation and Floating Point
ASCII: Stands for "American Standard Code for Information Interchange." Each character is represented by a unique binary value.
Extended ASCII: Uses bits ( Byte) per character, allowing for unique characters.
Control Characters: Non-printable ASCII codes that perform actions (e.g., Enter, Backspace, Arrow Keys).
Floating Point Representation: Used to store decimal points or very large/small numbers. It consists of two parts: the mantissa (the number part) and the exponent (the power value). (e.g., in , the mantissa is and the exponent is ).
Graphics: Bitmap and Vector
Bitmapped Graphics:
Stored as a grid of individual pixels.
Each pixel has a binary value representing its colour.
Resolution: The total amount of pixels; higher resolution increases detail and storage size.
Bit/Colour Depth: Number of bits per pixel. -bit depth allows colours; -bit allows colours (True Colour).
Attributes: Can edit individual pixels; loses quality (pixelates) when enlarged.
Vector Graphics:
Stored as a set of textual instructions and objects (shapes).
Objects: Rectangle, Ellipse, Line, Polygon.
Attributes: Every object has attributes like Coordinate, Coordinate, Width, Height, Fill Colour, Line Colour, and Line Thickness.
Characteristics: Zooming or enlarging does not lose quality; only whole objects can be edited.
Computer Architecture
Processor (CPU): Known as the brain of the computer, following the Von Neumann Architecture.
Arithmetic and Logic Unit (ALU): Performs calculations and logical decisions (comparisons).
Control Unit: Manages execution order and timing of instructions.
Registers: Temporary internal stores used while the CPU processes data.
Busses:
Address Bus: Uni-directional; carries memory locations from the CPU to main memory.
Data Bus: Bi-directional; carries data between the CPU and memory.
Memory Organisation: Main memory consists of unique locations, each with its own address.
Software and Security
Translators: Convert High Level Languages (English-like code) to Low Level Language (binary).
Interpreters: Translate and execute code line-by-line; useful for identifying errors during runtime.
Compilers: Translate the entire program once into a permanent file; the original code cannot be easily viewed after compilation.
Security Precautions:
Encryption: Scrambling data so it is unreadable without a decryption key.
Firewalls: Monitor incoming and outgoing network traffic to block suspicious activity.
Environmental Impact: Methods to reduce energy use include standby modes, reducing monitor brightness, and minimizing background tasks.
Questions & Discussion
Question: What is the largest number we can represent with columns?
Answer: .
Question: Identify the bus used to move the result of a calculation between main memory and the CPU.
Answer: Data Bus.
Task: Identify the part of the processor that calculates cost and the part that transfers the next instruction from memory.
Answer: ALU calculates cost; Control Unit transfers instructions.
Question: State the object used to create the outline of a sink in a vector floor plan.
Answer: Ellipse.
Question: State the range of unique characters that can be represented by ASCII.
Answer: (using values -).