Types of data: images, sound and video

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

Types of data: images, sound and video

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which statement about photos is correct?
A A photo is data that a digital system saves as a picture file
B A photo is not data, so it cannot be saved on a computer
2. Which file would most likely hold a song?
A song.mp3
B song.jpg
3. Which file would most likely hold a short video clip?
A clip.mp4
B clip.txt
4. What is a file?
A A machine that plays sounds and videos
B A named chunk of stored data
5. What does the end part of a file name, like .png or .wav, tell us?
A How many people have opened the file
B The file type, which shows what kind of data is inside

Match the Pairs

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

Left columnRight column
1photo.jpg Aclip.mp4
2song.mp3 Bdrawing.png
3A video file stores moving pictures and sound together as data CImages, sound and video are all types of data, and a digital system saves each one as a file.
4The ending of a file name tells you the file type DAn audio file that stores sound data
5Open my song.jpg to hear the music EA picture file that stores image data
6Pictures and videos are not data, so they are not stored as files FA .jpg file is a picture file, not an audio file. Music should be in an audio file like song.mp3.

Definitions

file

Fill in the Blanks

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

1.
photo.___ # a picture file
2.
song.___ # an audio file
3.
clip.___ # a video file
4.
# Pictures and sounds are saved as a ____
5.
clip.mp4 # this is a _____ file

Spot the Error

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

Question 1
A picture = "beach.mp3"
B sound = "wave.mp3"
C video = "surf.mp4"
D print(picture, sound, video)
Question 2
A image_file = "dog.png"
B audio_file = "bark.wav"
C video_file = "play.mp3"
D print(video_file)
Question 3
A print("jpg is an image")
B print("mp3 is audio")
C print("mp4 is audio")
Question 4
A name = "holiday"
B ext = ".mp4"
C file = name + ext
D print("Video: " file)
Question 5
A photos = ["a.jpg", "b.png"]
B for p in photos
C print("Image:", p)

Answer Key

Types of data: images, sound and video
Section A: Quick Questions
Q1
A — A photo is data that a digital system saves as a picture file
Q2
A — song.mp3
Q3
A — clip.mp4
Q4
B — A named chunk of stored data
Q5
B — The file type, which shows what kind of data is inside
Section B: Match the Pairs
Q1
photo.jpg → A picture file that stores image data
Q2
song.mp3 → An audio file that stores sound data
Q3
A video file stores moving pictures and sound together as data → clip.mp4
Q4
The ending of a file name tells you the file type → drawing.png
Q5
Open my song.jpg to hear the music → A .jpg file is a picture file, not an audio file. Music should be in an audio file like song.mp3.
Q6
Pictures and videos are not data, so they are not stored as files → Images, sound and video are all types of data, and a digital system saves each one as a file.
Section C: Definitions
Q1
file — A named chunk of stored data. Pictures, sounds and videos are all data that a digital system saves as files, such as photo.jpg, song.mp3 or clip.mp4.
Section D: Fill in the Blanks
Q1
photo.jpg # a picture file
Q2
song.mp3 # an audio file
Q3
clip.mp4 # a video file
Q4
# Pictures and sounds are saved as a file
Q5
clip.mp4 # this is a video file
Section E: Spot the Error
Q1
A — A picture file should end in .jpg or .png. The .mp3 ending is for audio files, so it should be "beach.jpg".
Q2
C — A video file should end in .mp4. The .mp3 ending is for audio, so the line should be video_file = "play.mp4".
Q3
C — An .mp4 file is a video file, not an audio file. The line should say "mp4 is video".
Q4
D — The + is missing, so Python cannot join the text and the file name. It should be print("Video: " + file).
Q5
B — A for loop line must end with a colon. It should be for p in photos: