Grade 3 · Computer science
Grade 3 Algorithms & logic worksheet
20 questions on algorithms & logic. The answer key is a separate download.
What is on the worksheet
Rule: IF the number is equal to 5, THEN say “yes”, ELSE say “no”. The number is 2. What does the program say?
- yes
- no
Rule: IF the number is equal to 16, THEN say “big”, ELSE say “small”. The number is 16. What does the program say?
- small
- big
A robot draws a square with the loop: repeat ? times [move forward 10, turn right a quarter turn]. How many repeats finish the square?
A robot must move 4 squares to the right to reach a star, so every step should be →. Its program is: → → ← →. Which step number is the bug?
- 3
- 2
- 1
- 4
A robot is on square E5 of a grid. Columns A to E go from left to right; rows 1 to 5 go from bottom to top. Each arrow moves it one square: ↓ ← ↓. Which square does it end on?
- D3
- C3
- E3
- D4
A robot is on square C4 of a grid. Columns A to E go from left to right; rows 1 to 5 go from bottom to top. Each arrow moves it one square: ↓ ←. Which square does it end on?
- A3
- B3
- C3
- B4
A robot runs: repeat 5 times [move forward 5 steps]. How many steps does it move in total?
A robot runs: repeat 4 times [move forward 3 steps]. How many steps does it move in total?
A robot is on square B5 of a grid. Columns A to E go from left to right; rows 1 to 5 go from bottom to top. Each arrow moves it one square: ↓ ↑ ↓. Which square does it end on?
- A4
- C4
- B5
- B4
A robot is on square A3 of a grid. Columns A to E go from left to right; rows 1 to 5 go from bottom to top. Each arrow moves it one square: → ↑ → →. Which square does it end on?
- E4
- D4
- D5
- C4
A robot is on square B4 of a grid. Columns A to E go from left to right; rows 1 to 5 go from bottom to top. Each arrow moves it one square: ← ↓. Which square does it end on?
- A4
- A3
- B3
- A2
A robot is on square D3 of a grid. Columns A to E go from left to right; rows 1 to 5 go from bottom to top. Each arrow moves it one square: ← → ↑. Which square does it end on?
- D5
- E4
- D4
- C4
A robot is on square B4 of a grid. Columns A to E go from left to right; rows 1 to 5 go from bottom to top. Each arrow moves it one square: ← ↓ →. Which square does it end on?
- C3
- B4
- A3
- B3
A robot must move 5 squares to the right to reach a star, so every step should be →. Its program is: → → → ↓ →. Which step number is the bug?
- 1
- 2
- 3
- 4
- 5
A robot is on square E5 of a grid. Columns A to E go from left to right; rows 1 to 5 go from bottom to top. Each arrow moves it one square: ← ← ↓. Which square does it end on?
- B4
- C4
- D4
- C5
Rule: IF the number is less than 12, THEN say “big”, ELSE say “small”. The number is 16. What does the program say?
- small
- big
A robot is on square B5 of a grid. Columns A to E go from left to right; rows 1 to 5 go from bottom to top. Each arrow moves it one square: ↓ ↓ ↓. Which square does it end on?
- B3
- A2
- C2
- B2
Which instruction represents repetition?
- Stop immediately
- Repeat these steps five times
- Choose one colour
- Start once
Rule: IF the number is equal to 20, THEN say “yes”, ELSE say “no”. The number is 20. What does the program say?
- yes
- no
Rule: IF the number is less than 9, THEN say “big”, ELSE say “small”. The number is 11. What does the program say?
- big
- small
Teach or revise the skill first
These short guides explain the idea with worked examples. Read one together before the worksheet, then use the sheet as practice.
- Algorithms without a computer: Study guide for Grades 3 to 6: make steps precise and trace before changing; 2 worked examples and 4 practice questions. An algorithm is a clear sequence of instructions for a task.
- Robot moves on a grid: Study guide for Grades 2 to 4: 2 worked examples and 2 practice questions. Trace the path one arrow at a time. Columns change with ← and →; rows change with ↑ and ↓.
- Repeat loops: Study guide for Grades 2 to 4: 2 worked examples and 2 practice questions. A loop repeats the same instructions. Multiply what happens inside the loop by the number of repeats.
More worksheets like this
Kindergarten Computer science practice
12 questions
Kindergarten Algorithms & logic worksheet
12 questions
Kindergarten Patterns worksheet
12 questions
Grade 1 Computer science practice
12 questions
Grade 1 Algorithms & logic worksheet
12 questions
Grade 1 Patterns (Computer science) worksheet
12 questions