Data representation Flashcards
What are the only two things computers understand, and how are they represented?
1 = on 0 = off
What is the decimal number system?
10 digits from 0-9, often referred to as ‘base 10’
What is the binary number system?
2 digits from 0-1, often referred to as ‘base 2’
What does a bit represent?
A single 0 or 1
What does a nibble represent?
4 bits, or half a byte
What does a byte represent?
8 bits, or 1 character of text
What does a kB represent?
1000 bytes
What does a MB represent?
1000 kilobytes
What does a GB represent?
1000 Megabytes
What does a TB represent?
1000 Gigabytes
Order the following from smallest to largest:
GB, kB, bit, MB, nibble, byte, TB
bit, nibble, byte, kB, MB, GB, TB
Convert 10100110 to denary
166
Convert 11101001 to denary
233
How do you know if a binary number is odd or even?
If the number is odd, the final digit will be a 1
Convert 58 to binary
00111010
Convert 239 to binary
11101111
What is the hexadecimal number system?
16 digits from 0-9 & A-F, often called ‘hex’
How do you convert a binary number into hex?
- Divide the binary number into groups of four
- Work out the denary value for each group
- Convert each denary number into hex
How do you convert a hexadecimal number into binary?
- Convert each hex number into binary using 4 bits
2. Combine the 4 bit strings
Convert E9 to binary
11101001
Convert C6 to binary
11000110
How do you convert a denary number into hex?
- Convert the denary number into binary
- Convert binary to hex -
(1. Divide the binary number into groups of four - Work out the denary value for each group
- Convert each denary number into hex)
Why is hexadecimal better than binary?
It is much shorter than binary, and less error prone
Binary addition: 0 + 0 =
0