Standard algorithms
Predefined Functions
Storing real numbers
Stored using mantissa and exponent
mantissa x base ^ exponent
Types of errors
Factors affecting readability
Logical operators
Storing vector graphics
Stored as a series of objects with a list of attributes
objects: square, ellipse
attributes: x- and y- coordinates, fill colour, length
Storing bitmapped graphics
Stored as a grid of pixels, each with it’s own unique binary code
Types of loops
conditional: keeps repeating until a condition is met.
eg while loops
unconditional/fixed: repeats a set number of times.
eg for loops
Number of bits for an ASCII string
Each character is 1 byte (8 bits)
Compiler
Interpreter
Concatenation
The operation of joining character strings end-to-end
Iteration
Returning to previous stages of the development process
Methods to save energy
Buses
Address bus:
- uni-directional, from the processor to RAM
- holds the address in RAM that the processor is accessing
Data bus:
- Bi-directional, between the processor and the memory
Central Processing Unit
Handles the instructions used to ensure that hardware and software respond as expected. Tasks:
- fetch, decode and execute instructions from RAM
- perform arithmetic calculations
- perform logical operations
- control read, write, clock, interrupt and reset lines
Arithmetic Logic Unit (ALU)
All calculations and logical decisions are handled by the ALU, eg storing real numbers. Tasks:
- performs all calculations
- performs comparisons on numeric values
- makes decisions based on logic (AND, OR, NOT)
Registers
temporary storage locations within the processor. stores addresses, data or instructions
RAM (Random Access Memory)
The processor can write to, or read from, RAM at high speed. RAM holds all the programs currently in use. Data can only be stored temporarily, all data in RAM is lost when the power is switched off
ROM (Read Only Memory)
Data in ROM cannot be changed, this is fixed when the chip is manufactured. Data is stored permanently in ROM – it is not lost when the power is switched off
ASCII
Stands for American Standard Code for Information Interchange
Each character (letter, number, symbol or control character) is represented by a binary value
Each character requires 1 byte (8 bits) of storage
Malware
Short for malicious software. Types include:
* Viruses
* Trojans
* Worms
* Hacking
* Spyware
* Keylogger
Firewalls
A program that helps stop hackers, viruses and worms from entering a computer over the internet. filters incoming and outgoing traffic. Only trusted users will be permitted access.