WorksheetsGrade 5 computing
Total questions: 67
Worksheet time: 34mins
Section A: Multiple Choice Questions (MCQ) Answer the following questions. [10 Marks] What is an algorithm?
A computer part
A set of step-by-step instructions
A picture
A game level
Section A: Multiple Choice Questions (MCQ) Answer the following questions. [10 Marks] When two objects interact in a program, it means:
They work or react to each other
They stay still
They change colour randomly
They disappear for no reason
Section A: Multiple Choice Questions (MCQ) Answer the following questions. [10 Marks] Who is responsible for planning the whole project and making sure the team finishes on time?
Programmer
Tester
Project Manager
Designer
Section A: Multiple Choice Questions (MCQ) Answer the following questions. [10 Marks] Who creates the layout, colours, characters, and overall look of the program?
Project Manager
Designer
Tester
Technician
Section A: Multiple Choice Questions (MCQ) Answer the following questions. [10 Marks] Which team member decides what tasks each person should do?
Programmer
Project Manager
Designer
Music Maker
Section A: Multiple Choice Questions (MCQ) Answer the following questions. [10 Marks] A programmer’s main job is to:
Write code to make the program work
Choose music for the game
Check the program for errors
Tell the team what to do
Section A: Multiple Choice Questions (MCQ) Answer the following questions. [10 Marks] When a ball bounces off a wall in a game, this is an example of:
Sound effect
Object interaction
Background design
Music loop
Section A: Multiple Choice Questions (MCQ) Answer the following questions. [10 Marks] A tester needs to:
Draw characters
Plan meetings
Find bugs and report errors
Write long stories
Section A: Multiple Choice Questions (MCQ) Answer the following questions. [10 Marks] Why is a project manager important in a programming team?
They test the program
They make sure everyone works together and follows the plan
They design characters
They choose game music
Section A: Multiple Choice Questions (MCQ) Answer the following questions. [10 Marks] A designer and programmer need to work together because:
The designer decides the look, and the programmer makes it work
Only the programmer can draw
Only the designer can test
They do the same job
Section B: True / False Answer the following True/False questions. [5 Marks] Algorithms must always be written using a computer.
True
False
Section B: True / False Answer the following True/False questions. [5 Marks] Two objects interacting means one object responds to the action of another.
True
False
Section B: True / False Answer the following True/False questions. [5 Marks] A designer writes the code for the program.
True
False
Section B: True / False Answer the following True/False questions. [5 Marks] A programmer needs problem-solving skills.
True
False
Section B: True / False Answer the following True/False questions. [5 Marks] In a story-based game, characters do not need to follow algorithms.
True
False
Section C: Fill in the Blanks [5 Marks] A step-by-step set of instructions is called an ___________.
algorithm
variable
sprite
music loop
Section C: Fill in the Blanks [5 Marks] A person who writes the code in a program is called a ___________.
programmer
designer
tester
project manager
Section C: Fill in the Blanks [5 Marks] When two objects work together or react to each other, it is called ___________.
object interaction
background design
sound effect
storyboard
Section C: Fill in the Blanks [5 Marks] A tester checks the program for ___________.
errors
music
colours
meetings
Section C: Fill in the Blanks [5 Marks] A __________ designs how the game or program will look.
designer
programmer
tester
technician
Section D: Scenario Questions [9 Marks] You are designing a game where a ball bounces off a wall. Explain how the interaction happens between the ball and the wall.
When the ball sprite collides with the wall, the program reverses the ball’s direction to simulate a bounce
The ball changes colour randomly whenever the wall is near
The wall disappears and the ball stops moving
The ball plays a sound but continues straight through the wall
Section D: Scenario Questions [9 Marks] In a quiz program, the answer button changes colour when clicked. Explain what algorithm could make this happen.
On button click, change the button’s colour property to a new value
On program start, set the button colour and never change it
When the mouse moves, play a sound effect
If the timer ends, close the program
Section D: Scenario Questions [9 Marks] A Rabbit character chases a Bone. When the Rabbit touches the bone, the star disappears. Describe the interaction and the steps needed for this to happen.
Detect collision between Rabbit and Bone; on collision, hide the star and update any score
Change the Bone’s colour randomly; the star stays visible
Move the Rabbit away from the Bone automatically; show the star twice
Play background music when the Rabbit is near the Bone; no change to the star
Section E: Short Answer Questions [14 Marks] Name two skills needed by a good programmer. (2 marks)
Problem-solving
Debugging
Musical composition
Colouring characters
Section E: Short Answer Questions [14 Marks] Give one example of two objects interacting in a digital story or game. (2 marks)
A ball hits a wall and bounces
A menu opens without user input
Background music loops during play
A character changes outfit in the settings screen
Section E: Short Answer Questions [14 Marks] Why is a designer important in a programming team? (2 marks)
They create the layout, colours, characters, and overall look
They manage meetings and task assignments
They primarily write code for algorithms
They test for bugs and report errors
Section E: Short Answer Questions [14 Marks] Correct these sequences of algorithms. (5 Marks) Instructions (scrambled order): 1. Spread butter or sauce on the bread slices. 2. Place your fillings (cheese, chicken, vegetables). 3. Take two slices of bread. 4. Press the slices together gently. 5. Serve the sandwich on a plate. Which option shows the correct algorithm order from first to last?
3, 1, 2, 4, 5
1, 3, 2, 4, 5
3, 2, 1, 4, 5
2, 3, 1, 4, 5
Complete the interaction/conversation of the algorithm with two objects shown in the two tables. For the second object’s table, which instruction should be placed at Step 1 so the first object can execute “When I receive broadcast red_light”?
Broadcast red_light
Receive red_light
Say Stopping now. Red light! for 2 seconds
Wait 2 seconds
Using the same two tables, which instruction best fits Step 2 of the second object to allow the first object to finish its 2-second message before both programs stop at Step 4?
Wait 2 seconds
Broadcast green_light
Repeat forever
Stop program
A variable is used to:
Decorate the computer
Store changing information
Draw pictures
Make sound
Which of the following is a good variable name?
x1
number
heroName
abcd
Which variable name is BEST for storing a game player’s score?
banana
scorePlayer
number123
A
A variable value can:
Never change
Change anytime in a program
Only change once
Only change during shutdown
Which of the following is an example of using a variable?
heroScore = 10
Pressing the space bar
Clicking the mouse
Drawing a circle
Why do we give variables clear names?
To confuse others
To make programs easier to understand
To make it longer
So the computer can guess the meaning
A program that stores the number of lives in a game is an example of:
Using colours
Using variables
Making sound effects
Creating files
Which of the following is a string variable?
playerLives = 3
treasureFound = True
playerName = "Mira"
score = 100
A program outline helps the programmer to:
Skip planning
Organize ideas before coding
Make the code messy
Avoid writing variables
Which step comes FIRST when developing a game or story program?
Testing the program
Planning
Adding music
Changing the background
Choose the best definition of a variable and a correct example used in a story or simple game.
A shape drawn on screen; example: circleSize
A named storage that holds values that can change; example: playerScore
A fixed label that never changes; example: gameTitle
A sound file used in the program; example: backgroundMusic
Why is it important for programmers to give variables clear and meaningful names?
So programs take longer to write
So the computer can guess the meaning
It makes programs easier to understand
To hide the purpose from other users
Which set lists two valid game variables and correctly states what each stores?
speed and score; speed stores character color, score stores background image
playerLives and score; playerLives stores the number of lives, score stores points earned
jumpKey and soundFile; jumpKey stores the player’s name, soundFile stores number of coins
levelArt and healthBar; levelArt stores the music track, healthBar stores the character sprite
How can variables help make a game interactive?
They permanently lock all values
They allow values like speed or score to change during play
They remove controls from the player
They only store the title of the game
What is a program outline and how does it help when planning a story program or a small game?
A collection of images; it decorates the screen
A list of variable values; it replaces testing
A plan that organizes ideas before coding; it guides development
A set of sound effects; it controls player input
For a game where a character collects coins, which variable name is most suitable for counting coins?
coinsColor
heroJump
coinCount
levelMusic
In the coin-collecting game, how does the coin-count variable’s value change during play?
It increases by 1 each time a coin is collected
It decreases whenever the space bar is pressed
It is set to a random number every minute
It stays constant from start to finish
In the coin-collecting game, why is the coin-count variable important for the game outcome?
It changes the character’s color
It sets the background image
It tracks score or progress
It plays background music
In a story-based adventure where the user chooses a character, which variable name is suitable for the character’s choice?
jumpHeight
backgroundSound
coinsLeft
characterChoice
For the character-choice variable, which example value is appropriate?
Wizard
42
True
3.14
How will the program use the character-choice variable in the storyline or gameplay?
To decide which character appears and what abilities they have
To determine the window size
To control the keyboard layout
To set the file save location
Which set of three variables is suitable for a simple game and correctly explains what each stores and how it affects gameplay?
levelImage, themeSong, skyColor; they store visuals and audio but do not affect gameplay
playerLives, score, speed; playerLives counts remaining tries, score counts points, speed controls movement rate
menuText, creditsPage, helpLink; they store instructions and have no effect on play
mouseIcon, wallpaper, fontType; they change appearance only
In the program outline section, which item should be included first in the algorithm outline?
Final score variable
Background music file
Character sprite image
Title of your story or game
List of at least three variables you will use (3 marks). Select all options that correctly list at least three variables relevant to a simple storytelling program.
title, protagonist, setting
title, pageCount
title, protagonist, setting, plotPoint
setting
title, protagonist, setting, narrator
Step-by-step algorithm showing how the variables are used (3 marks). Which option shows a correct, simple algorithm that uses the variables to build a story output?
Set title, protagonist, and setting; combine them into a story sentence; display the sentence.
Set title only; display title; ignore protagonist and setting.
Display a story sentence first; later set title, protagonist, and setting.
Ask for protagonist; set narrator; end without using title or setting.
Clear explanation of what each variable stores (3 marks). Which explanation correctly states what each variable stores in a simple storytelling program?
title stores the story’s name; protagonist stores the main character; setting stores where/when the story happens.
title stores the main character; protagonist stores the place; setting stores the author’s name.
title stores the number of pages; protagonist stores the narrator’s tone; setting stores the plot twist.
title stores a random number; protagonist stores a list of chapters; setting stores the file name.
Choose the correct answer. A selection in programming happens when the computer:
Chooses between two or more options
Always repeats the same action
Draws a picture
Stops the program
Choose the correct answer. Which block shows a selection decision?
Move 10 steps
If...then...
Repeat 5 times
Show animation
Choose the correct answer. In an animation, selection is useful because it:
Makes the characters sleep
Allows characters to behave differently based on conditions
Deletes the program
Makes sound effects louder
Choose the correct answer. Which is an example of a condition?
"Jump 3 times"
"If score > 5"
"Play animation"
"Show sprite"
Predict what happens. If button A is pressed - Show happy face; If button A is NOT pressed - Show sad face. When no button is pressed, the animation will show:
Happy face
Sad face
Both
Nothing
Choose the correct answer. In an animator program, the instruction "If touching edge - turn around" means the object will:
Stop moving
Bounce back
Change colour
Become smaller
Choose the correct answer. The best instruction to animate a character walking is:
Wait forever
Show a series of images that change quickly
Delete variable
If x = 100 then end program
Choose the correct answer. Which of the following uses selection correctly?
IF score = 10 - Play sound
Repeat until 5
Move Left
Change background
Choose the correct answer. A step-by-step instruction in animation is also called a:
Flowchart
Timeline
Algorithm
Sprite
Choose the correct answer. The purpose of a selection algorithm is to:
Clean up code
Make choices based on conditions
Stop all scripts
Add decorations
Choose the correct answer. What is a selection algorithm? Choose the option that correctly defines it and includes an example using "if...then...".
An algorithm that repeats actions a fixed number of times; example: repeat 10 steps
An algorithm that makes a decision based on a condition; example: if temperature > 30 then turn on fan
An algorithm that draws shapes; example: if circle then draw square
An algorithm that stores data; example: if score then set variable
Select all that apply. Which of the following are simple examples of a selection algorithm using an if statement?
If button A is pressed then show happy face
Repeat 5 times move 10 steps
If score > 5 then play sound
Draw background
