Binary Flashcards
(25 cards)
What number system do we use?
Denary
What are the digits of denary?
0,1,2,3,4,5,6,7,8,9
What number system do computers use?
Binary
What are the digits for binary?
0,1
What is the binary number system?
It’s the number system used by computers, using only two digits: 1 and 0. The 1 means “on” and the 0 means “off”.
What is 1 bit?
One bit is a single binary digit, like a switch that is either on or off.
How many bits are in 1 byte?
1 byte = 8 bits
How many bits are in 1 nibble?
1 nibble = 4 bits
What is 1 kilobyte (kB) equal to?
Binary: 1 kB = 1024 bytes
Decimal (simplified): 1 kB = 1000 bytes
Complete this data size scale (simplified)
1 kB = ? bytes
1 MB = ? kB
1 GB = ? MB
1 PB = ? GB
1 kB = 1000 bytes
1 MB = 1000 kB
1 GB = 1000 MB
1 PB = 1000 GB
What are the basic binary addition rules?
0 + 0 = 0
1 + 0 = 1
1 + 1 = 10 (0 carry 1)
1 + 1 + 1 = 11 (1 carry 1)
What are the basic binary subtraction rules?
0 − 0 = 0
1 − 0 = 1
1 − 1 = 0
0 − 1 = 1 (borrow 1 from the next digit)
What is another easier but longer way to add and subtract binary?
Convert to denary, calculate and convert back to binary.
What is 1010 + 0110 in binary?
10000
What is 1011 − 0101 in binary?
0110
Convert 1010 to denary
(1×8) + (0×4) + (1×2) + (0×1) = 10
Convert 1101 to denary
(1×8) + (1×4) + (0×2) + (1×1) = 13
Convert 10011 to denary
(1×16) + (0×8) + (0×4) + (1×2) + (1×1) = 19
Convert 7 to binary
7 ÷ 2 = 3 R1
3 ÷ 2 = 1 R1
1 ÷ 2 = 0 R1
→ 111
Convert 18 to binary
18 ÷ 2 = 9 R0
9 ÷ 2 = 4 R1
4 ÷ 2 = 2 R0
2 ÷ 2 = 1 R0
1 ÷ 2 = 0 R1
→ 10010
Convert 25 to binary
25 ÷ 2 = 12 R1
12 ÷ 2 = 6 R0
6 ÷ 2 = 3 R0
3 ÷ 2 = 1 R1
1 ÷ 2 = 0 R1
→ 11001
What is 1011 + 0101 in binary?
10000
What is 110 + 11 in binary?
1001
What is 1101 − 0100 in binary?
1001