Data representation Flashcards
(45 cards)
How many digits is hexadecimal made up of?
16 –> 1-9 and A-F
What is hexadecimal referred to?
Base-16 number system
How many bits of binary data can one hexadecimal digit represent?
4 (a nibble)
What are examples of hexadecimal being used?
-MAC addresses
-Colour values
-Short representation of binary numbers
-IP (version 6 only) addresses
Why does data have to be converted to binary to be processed by a computer?
-computers are built using switches that can either be on or off, which fits the binary number system (1’s and 0’s)
-A quicker process time
Define binary data
-represented by only 1 and 0.
What is 1000 byte equal to
1 Kilobyte
What is 1000 kilobyte equal to (Megabytes)
1 Megabyte
What is 1000 Megabyte equal to
(Gigabytes)
1 Gigabyte
What is 1 KiBi byte equal to
(bytes)
1024 Bytes
Convert the following into denary:
a)10101110
b)00010001
c)10011111
d)00100111
a)174
b)17
c)159
d)39
Convert the following into binary:
a)10
b)257
c)19
d)39
a)1010
b)100000001
c)10011
d)111001
How to convert denary into hexadecimal
-Convert denary into binary
- Split the binary number into groups of four
-For each group of four, assign it the the hexadecimal value (e.g 1010–>A or 1000–>8)
How to add binary number
0+0=0
1+0=1
1+1=0 and 1 carry forward
1+1+1=1 and 1 carry forward
What is a overflow error
When a binary digit is needed to carry forward to the 9th bit but the answer only allow a 8 bit answer
What is the maximum number for a 8 bit binary number
255
What does binary shift do and what’s the difference between left shift and right shift
Left shift is multiplication
while
right shift is division
What does shifting 2 place to the left means
Multiplying by 4
What does shifting 3 place to the right means
Dividing by 8
How to represent a negative number
By a 2’s complement
How to perform a 2’s complement
Reversing a binary number ( 0–>1 and 1–>0)
And then add 1 to the last digit of the reversed binary
What is ASCII
American Standard code for information interchange
Which will translate English language into binary/hexadecimal value
What is Unicode
An interchange system which translate most language/emoji in the world into binary/hexadecimal
What is the difference between ASCII and Unicode
ASCII is only used for the English Language while Unicode has many
ASCII have 7 bit per char but Unicode have 16 bit
ASCII have only 128 char that include everything in the English language and 1-9 and symbols
Unicode has over 65,000 char for different language and also math symbol and emoji
Unicode takes up more space in the file
Unicode is backwards compactable with ASCII (so first 128 char are the same in both Unicode and ASCII)