StudyBrixFree worksheets, study guides and courses

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

  1. Rule: IF the number is equal to 5, THEN say “yes”, ELSE say “no”. The number is 2. What does the program say?

    1. yes
    2. no
  2. Rule: IF the number is equal to 16, THEN say “big”, ELSE say “small”. The number is 16. What does the program say?

    1. small
    2. big
  3. A robot draws a square with the loop: repeat ? times [move forward 10, turn right a quarter turn]. How many repeats finish the square?

  4. 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?

    1. 3
    2. 2
    3. 1
    4. 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?

    1. D3
    2. C3
    3. E3
    4. D4
  6. 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?

    1. A3
    2. B3
    3. C3
    4. B4
  7. A robot runs: repeat 5 times [move forward 5 steps]. How many steps does it move in total?

  8. A robot runs: repeat 4 times [move forward 3 steps]. How many steps does it move in total?

  9. 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?

    1. A4
    2. C4
    3. B5
    4. B4
  10. 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?

    1. E4
    2. D4
    3. D5
    4. C4
  11. 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?

    1. A4
    2. A3
    3. B3
    4. A2
  12. 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?

    1. D5
    2. E4
    3. D4
    4. C4
  13. 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?

    1. C3
    2. B4
    3. A3
    4. B3
  14. 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. 1
    2. 2
    3. 3
    4. 4
    5. 5
  15. 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?

    1. B4
    2. C4
    3. D4
    4. C5
  16. Rule: IF the number is less than 12, THEN say “big”, ELSE say “small”. The number is 16. What does the program say?

    1. small
    2. big
  17. 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?

    1. B3
    2. A2
    3. C2
    4. B2
  18. Which instruction represents repetition?

    1. Stop immediately
    2. Repeat these steps five times
    3. Choose one colour
    4. Start once
  19. Rule: IF the number is equal to 20, THEN say “yes”, ELSE say “no”. The number is 20. What does the program say?

    1. yes
    2. no
  20. Rule: IF the number is less than 9, THEN say “big”, ELSE say “small”. The number is 11. What does the program say?

    1. big
    2. 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