Data Flashcards
What are the place value powers?
Powers of 2
e.g. 2^0, 2^1, 2^2
What is an overflow error?
When a calculation produces a result that is greater than the computer can deal with
Binary addition rules
0 + 0 = 0
1 + 0 = 1
1 + 1 = 0 (carry 1)
1 + 1 + 1 = 1 (carry 1)
Logical shift rule
Move the bits as many times as specified and replace empty spaces at start/ end with 0s
What is SIGN AND MAGNITUDE?
The leftmost bit is used to signify whether the number is positive or negative
0 = positive
1 = negative
What is TWO’S COMPLEMENT?
Leftmost bit signifies whether the number is positive or negative
0 = positive
1 = negative (-128)
Replace the positive binary value 0s with 1s and vice versa and add 1 to find the two-s complement version
How do you multiply signed binary numbers?
Use an arithmetic shift left (every shift multiplies by powers of 2)
What is the rule with arithmetic shifts?
The most significant bit remains
e.g. a right shift by 2 of 10100101 = 11101001
How do you divide signed binary numbers
Use an arithmetic shift right (every shift divides by powers of 2)
Order of HEX values
1, 2, 3, 4, 5, 6, 7, 8, 9, A (10), B (11), C (12), D (13), E (14), F (15)
How do you convert hex values to binary?
1) Split up the characters
2) Each character is represented by a number in denary
3) Each denary value can be written as a nibble
4) Join the nibbles together
e.g. C3 –> 12 = 1100 and 3 = 0011 SO 11000011 is C3
What is ASCII?
Numbers assigned to text and characters using binary
What is EXTENDED ASCII?
Uses 8 bits so that there are 256 code sequences
- Previously used 7 bits
What is UNICODE?
Alternative to ASCII for other languages
An international encoding standard for use with different languages and scripts, by which each letter, digit, or symbol is assigned a unique numeric value that applies across different platforms and programs
What is a PIXEL?
Short for ‘Picture Element’
The smallest single point of colour in a graphic image