Types of data

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

Types of data

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which of these is a type of data a digital system can handle?
A Only text and nothing else
B Sound, such as a recorded voice
2. Which data type is a photo of your pet?
A Image
B Audio
3. Which data type is a song you stream online?
A Audio
B Text
4. Which is an example of text and numbers data?
A A spreadsheet with names and scores
B A recorded video of a soccer match
5. Which data type combines moving pictures with sound?
A Text
B Video

Match the Pairs

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

Left columnRight column
1data_type = "text" AA number such as 11 is numeric data, so the type should be "number", not "text"
2data_type = "audio" Bclip.mp4 = "video"
3A photo is image data, which a digital system stores as a grid of tiny coloured dots called pixels Cphoto.jpg = "image"
4A clip with moving pictures and sound is video data, which combines images and audio DAn mp3 file is a song, so it is audio data, not image data. It should be song.mp3 = "audio"
5song.mp3 = "image" EAudio data is sound, such as music or a voice recording, stored by a digital system
6age = "text" (age is 11) FText data is made of letters, symbols and words, such as a message or a name

Definitions

data type

Fill in the Blanks

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

1.
photo.jpg is _____ data
2.
song.mp3 is _____ data
3.
clip.mp4 is _____ data
4.
name = "Mia" is ____ data
5.
"5" is text but 5 is ______ data

Spot the Error

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

Question 1
A name = Sam
B age = 11
C print(name, age)
Question 2
A text = "Hello"
B number = 42
C print(text + number)
Question 3
A photo = "cat.mp3"
B kind = "image"
C print(photo, "is", kind)
Question 4
A song = "pop.mp3"
B kind = "video"
C print(song, "is", kind)
Question 5
A clip = "dance.mp4"
B kind = "video"
C fps = 30
D print(Frames:, fps)

Answer Key

Types of data
Section A: Quick Questions
Q1
B — Sound, such as a recorded voice
Q2
A — Image
Q3
A — Audio
Q4
A — A spreadsheet with names and scores
Q5
B — Video
Section B: Match the Pairs
Q1
data_type = "text" → Text data is made of letters, symbols and words, such as a message or a name
Q2
data_type = "audio" → Audio data is sound, such as music or a voice recording, stored by a digital system
Q3
A photo is image data, which a digital system stores as a grid of tiny coloured dots called pixels → photo.jpg = "image"
Q4
A clip with moving pictures and sound is video data, which combines images and audio → clip.mp4 = "video"
Q5
song.mp3 = "image" → An mp3 file is a song, so it is audio data, not image data. It should be song.mp3 = "audio"
Q6
age = "text" (age is 11) → A number such as 11 is numeric data, so the type should be "number", not "text"
Section C: Definitions
Q1
data type — The kind of information a digital system handles, such as text, numbers, images, sound or video. Each type is stored and used in its own way.
Section D: Fill in the Blanks
Q1
photo.jpg is image data
Q2
song.mp3 is audio data
Q3
clip.mp4 is video data
Q4
name = "Mia" is text data
Q5
"5" is text but 5 is number data
Section E: Spot the Error
Q1
A — Text data must be written inside quotes. Without them, Python treats Sam as a variable name instead of text. It should be name = "Sam".
Q2
C — Text and numbers are different data types and cannot be joined with +. Use a comma to print both: print(text, number).
Q3
A — An image file should have an image extension such as .jpg. The .mp3 extension is for audio data. It should be photo = "cat.jpg".
Q4
B — An .mp3 file holds sound, so its data type is audio, not video. It should be kind = "audio".
Q5
D — The word Frames: is text, so it must be inside quotes. Without quotes Python reads it as code and gives an error. It should be print("Frames:", fps).