SHSubjectHub

Trace Tables & Identifying Errors

OCR J2772.1cGCSELesson packSubscription
Also online

This worksheet marks itself

Set it as homework or classwork and every answer is marked as pupils go, with feedback on what they got wrong. The scores go straight into your mark book, so you can see who needs help before the next lesson.

  • 7 questions
  • 25 marks
  • about 20 minutes
  • marked instantly

Question types: short answer, multiple choice, true or false.

Try one from this worksheet

A program runs without errors but produces the wrong output. What type of error is this?

Pick an answer: it's marked straight away, just as your pupils would see it.

About this resource

Learn to use trace tables to follow the execution of algorithms step-by-step, and identify, classify and fix syntax and logic errors.

13 slides.

Lesson outline

  1. What Is a Trace Table?
  2. Trace Table Example - Counting Loop
  3. Trace Table Example - Factorial
  4. Trace Table Check
  5. Task 1 - Complete a Trace Table
  6. Types of Errors
  7. Spotting Errors - Worked Examples
  8. Error Type Check
  9. Task 2 - Find the Errors
  10. Using Trace Tables to Find Logic Errors
  11. Task 3 - Trace and Debug
  12. Lesson Summary
Unit bundle2.1 Algorithms
Part of: 2.1 Algorithms: the whole unitEvery resource in the unit in one zip.

More from 2.1 Algorithms