2.2 Binary arithmetic and hexadecimal Flashcards
What do the following binary additions equal: 0+0 = ? 1+0 or 0+1 = ? 1+1 = ? 1+1+1 = ?
0+0 = 0 1+0 = 1 1+1 = 0 carry the 1 1+1+1 = 1 carry the 1
What is the biggest number you can represent with 8 bits?
255 = 11111111
When does an overflow occur when adding 2 binary numbers?
When you cannot represent the number in the amount of space because the number is too big
Shifting to the left does what to a number?
Multiplies it
Shifting to the right does what to a number?
Divides it
How is 10 to 16 represented in hex?
10 = A 11 = B 12 = C 13 = D 14 = E 15 = F 16 = 10
How would you convert denary to hex?
2 ways:
convert denary to binary then binary to hex
divide the denary number by 16 to find how many groups of 16 there are and the remainder and put together
Name some uses of hexadecimal.
picking colours for a graphic
used in assembly language instructions