Data as binary

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Data as binary

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which digits does binary use to represent data?
A Only 0 and 1
B Digits 0 to 9
2. How many bits make 1 byte?
A 2 bits
B 8 bits
3. How does a digital system's hardware treat the binary digits 1 and 0?
A As on and off electrical signals
B As the letters A and B
4. Which kinds of data can a digital system store as binary?
A Text, images, sound and video
B Only numbers
5. Why can one format (binary) be used for every data type?
A Each data type needs its own special digits
B Any data can be turned into patterns of 0s and 1s

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
101001000 ADigital systems use binary for ALL data, including text, images, sound and video. One format works for every data type.
21 = on, 0 = off B1 byte = 8 bits
3A bit is a single binary digit, which can only be a 0 or a 1 COne byte: 8 bits, each a 0 or 1, which a digital system can use to store a single piece of data
48 bits grouped together make 1 byte D1
5Binary uses the digits 0 to 9 EBinary digits stand for the two electrical signals a digital system can use
6Computers use binary only for numbers, not for pictures or sound FBinary only uses two digits, 0 and 1. The digits 0 to 9 are used in the decimal system, not binary.

Definitions

binary

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
1 byte = _ bits
2.
on signal = 1, off signal = _
3.
Digital systems store all data as ______
4.
print(___(5)) # shows 0b101
5.
one ___ is a single 0 or 1

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A bit_on = 1
B bit_off = 0
C bits_in_byte = 8
D bits_in_byte = 4
Question 2
A bytes = 2
B bits_per_byte = 10
C total = bytes * bits_per_byte
D print(total)
Question 3
A storage = 'decimal'
B photo = '10110010'
C song = '01101101'
D print(storage)
Question 4
A types = ['text', 'image']
B types.append('sound')
C all_binary = False
D print(types, all_binary)
Question 5
A bits = '1011'
B for b in bits:
C if b in '012':
D print('valid bit')

Answer Key

Data as binary
Section A: Quick Questions
Q1
A — Only 0 and 1
Q2
B — 8 bits
Q3
A — As on and off electrical signals
Q4
A — Text, images, sound and video
Q5
B — Any data can be turned into patterns of 0s and 1s
Section B: Match the Pairs
Q1
01001000 → One byte: 8 bits, each a 0 or 1, which a digital system can use to store a single piece of data
Q2
1 = on, 0 = off → Binary digits stand for the two electrical signals a digital system can use
Q3
A bit is a single binary digit, which can only be a 0 or a 1 → 1
Q4
8 bits grouped together make 1 byte → 1 byte = 8 bits
Q5
Binary uses the digits 0 to 9 → Binary only uses two digits, 0 and 1. The digits 0 to 9 are used in the decimal system, not binary.
Q6
Computers use binary only for numbers, not for pictures or sound → Digital systems use binary for ALL data, including text, images, sound and video. One format works for every data type.
Section C: Definitions
Q1
binary — A number system using only 0s and 1s (bits). Digital systems use binary, as on/off signals, to represent all data: text, images, sound and video. 8 bits make 1 byte.
Section D: Fill in the Blanks
Q1
1 byte = 8 bits
Q2
on signal = 1, off signal = 0
Q3
Digital systems store all data as binary
Q4
print(bin(5)) # shows 0b101
Q5
one bit is a single 0 or 1
Section E: Spot the Error
Q1
D — A byte is made of 8 bits, not 4. The line should be bits_in_byte = 8.
Q2
B — 1 byte is always 8 bits, not 10. The line should be bits_per_byte = 8.
Q3
A — Digital systems store all data, including images and sound, as binary (0s and 1s), not decimal. It should be storage = 'binary'.
Q4
C — Every type of data (text, images, sound) is represented in binary, so all_binary should be True.
Q5
C — Binary only uses the digits 0 and 1, so 2 is not a valid bit. The check should be if b in '01':.