1.1 Data Representation Flashcards
What is the difference betwen a Binary prefix and a Decimal prefix?
A Binary prefix is based on powers of 2.
A Decimal prefix is based on powers of 10.
How many bytes in a Kibibyte?
1024
How many bytes in a Mebibyte?
1024**2
How many bytes in a Gibibyte?
1024**3
How many bytes in a Tebibyte?
1024**4
What is 24 in Binary?
11000
What is 244 in Hexadecimal?
1) Convert to binary
1111 0100
2)Convert from Binary to Hexadecimal
F4
Turn 25 into a Binary Coded Decimal (BCD).
00100101
Convert the Denary number -100 into Two’s Complement Binary.
10011100
Convert the One’s Complement negative binary integer 10110110 into denary.
1) Invert all the Bits
01001001
2) Turn to denary
-73
Using Binary Addition, calculate 10111 + 100110.
111101
Using the rules of binary subtraction,
calculate 11010 - 101.
1) Normalise, 00101
2) Flip, 11010
3) Add 1, 11011
11010 + 11011 = 110101
4) Discard first bit / Overflow error
10101
How does overflow occur?
When the result of an arithmetic operation creates a value that exceeds the range represented by the allocated number of bits.
Applications of Hexadecimal.
- Assembly language programming to represent instructions in program code.
- Graphic packages to represent colour codes.
- Program code to represent characters.
Applications of BCD.
Used in electronic systems where a string of digits is used to represent some value.