Chapter 1 - Information representation and multimedia (AS + A2) Flashcards
test your knowledge from IGCSE CompSci with this question:
what are the column weightings for an 8-bit binary number system?
(hint: think powers of 2)
(from heaviest to lightest) 128, 64, 32, 16, 8, 4, 2, 1
attempt converting this binary number into denary:
11010010
(hint: add up the weightings of the 1-columns from left to right)
210
(from the sum of 128, 64, 16, and 2 - they were the turned-on bits here)
attempt converting this denary number into binary:
239
(hint: try denary-subtracting 128 from this number first)
111001111
(from the difference of 239-128-64-32-8-4-2-1)
use two’s-complement on this binary number:
01010111
(hint: first invert the number and then add a 1 to the rightmost bit)
10101000 -> 10101001
(the leftmost bit = -128 so the denary equivalent of this number = -87)
add these two binary numbers without converting them into denary:
01011111
00010000
(hint: two’s complement is used here so the leftmost bit = -128)
01101111
(there’s a 1+1 in the bit equivalent to 32 so a carry should occur)
subtract these two binary numbers without converting them into denary:
01100001
00010001
(hint: two’s complement is used here so invert the second number first)
01010000
(NB: any additional bits from a binary subtraction should be ignored)
list the first 3 memory superunit names with their sizes under this:
the SI system
(hint: think powers of 10)
KB (one thousand), MB (one million), GB (one billion), etc.
(NB: the SI system’s suitable for some storage devices but is less accurate - more on the next system after this card)
list the first 3 memory superunit names with their sizes under this:
the IEC system
(hint: think powers of 2)
KiB (2 to the power of 10), MiB (2 to the power of 20), GiB (2 to the power of 30), etc.
(NB: the IEC system’s accuracy makes it best for measuring RAM sizes!)
try this question out:
what are the column weightings for a 16-bit hexadecimal system?
(hint: think powers of 16)
(from heaviest to lightest) 4096, 256, 16, 1
try this question out:
what are the six hexadecimal letters used to represent digits larger than 9?
(from smallest to largest) A, B, C, D, E, F
convert this binary number into hexadecimal:
101101010001
(hint: try splitting the number into 4-bit nibbles first)
B51
(1011 = 11/B, 0101 = 5, 0001 = 1)
convert this hexadecimal number into denary:
B1A4
(hint: convert each individual digit into binary nibbles first)
45476
(Bx16(3)=45056, 1x16(2)=256, Ax16(1)=160, 4x16(0)=4)
(NB: two’s complement isn’t used here so the MSB’s a positive number)
make a list of three things that the following can be used in:
hexadecimal numbers
- memory dumps
- HTML color codes
- error messages
try this question out:
what are the 4-bit codes used as digit representatives in BCDs (binary-coded decimals)?
(hint: use 4-bit binary register tables to help with your answer)
- 0000 (0)
- 0001 (1)
- 0010 (2)
- 0011 (3)
- 0100 (4)
- 0101 (5)
- 0110 (6)
- 0111 (7)
- 1000 (8)
- 1001 (9)
add these two fixed-point BCDs up:
0000.0101 1001
0000.0100 0110
(hint: add 0110 if you spot a result that doesn’t look like a BCD digit)
0001.0000 0101
(1111 doesn’t fit into a BCD and adding 0110 to it should carry bits)