Final exam
Coding for Kids
Before you start
- 10 questions, drawn at random from a pool of 18.
- Pass mark: 70%. Your final score is 30% practice + 70% exam.
- No time limit, but finish within 3 hours. You can move between questions before you submit.
- Failed? Review the lessons and try again: every attempt gets a new set of questions.
Question 1 of 10Choose one
What is a program?
Question 2 of 10True or false
Computers follow instructions exactly as they are written.
Question 3 of 10Put in order
Put this algorithm for washing your hands in order.
Drag the items, or use the arrow buttons, to put them in order.
- Dry your hands
- Turn on the water
- Wet your hands
- Rinse off the soap
- Rub with soap
Question 4 of 10Choose one
Which instruction is exact enough for a robot?
Question 5 of 10Fill in the blanks
Fill in the blanks
Splitting a big problem into small pieces is called .
Question 6 of 10Work it out
A loop says "repeat 6 times: forward, forward, turn." How many forward moves happen?
Question 7 of 10Choose one
Which loop draws a square?
Question 8 of 10True or false
for (let i = 0; i < 5; i++) runs the code inside it 6 times.
Question 9 of 10What would you do?
What would you do?
In your game, a door should open only when the player has the key. Which code idea fits best?
Question 10 of 10Sort into groups
Is each condition true or false when lives is 2?
Tap an item, then tap its group (or drag it there).
Question 11 of 10Choose one
temp is 25. What does this return? if (temp < 10) { return "Coat" } else { return "T-shirt" }
Question 12 of 10Work it out
let coins = 3; then coins = coins + 4; runs once. What is coins now?
Question 13 of 10Match the pairs
Match each idea to what it does.
Tap an answer, then tap the place where it belongs (or drag it there).
- Variable
- Loop
- Conditional
- Function
Question 14 of 10Select all that apply
Which of these are strings (text values)? Pick all that are right.
Select all that apply.
Question 15 of 10Choose one
half(n) returns n / 2. What does half(18) return?
Question 16 of 10Spot the mistake
This function should return a number plus 1. Tap the word with the bug.
Question 17 of 10Put in order
Put the bug detective steps in the right order.
Drag the items, or use the arrow buttons, to put them in order.
- Test with different inputs
- Find where it happens
- Notice what is wrong
- Change one thing
Question 18 of 10What would you do?
What would you do?
Your friend's code works for the number 2 but gives wrong answers for other numbers. They say, "It worked once, so it's done!" What do you tell them?