1.2.4

Logical Reasoning & Debugging

Test yourself

Logical Reasoning & Debugging

Logical reasoning is thinking about the order of steps (the sequence) and the selection rules ('if ... then' and 'repeat until...').

Illustrative background for Logical reasoningIllustrative background for Logical reasoning ?? "content

Logical reasoning

  • You can run through an algorithm by following all the steps.
  • You can run through the steps in an algorithm to check if the algorithm will work.
Illustrative background for DebuggingIllustrative background for Debugging ?? "content

Debugging

  • If your algorithm does not work, you have to debug it.
  • Debugging is finding where the problem is and then fixing it.
Illustrative background for How to debug an algorithmIllustrative background for How to debug an algorithm ?? "content

How to debug an algorithm

  • It can take a lot of patience and computational thinking!
  • Computer programmers have programs which help them find where the bugs are.

Jump to other topics

1Computational Thinking & Algorithms

2Programming

3Hardware & Software

4Data

5The Internet

6Online Safety & Security

Go student ad image

Unlock your full potential with GoStudent tutoring

  • Affordable 1:1 tutoring from the comfort of your home

  • Tutors are matched to your specific learning needs

  • 30+ school subjects covered

Book a free trial lesson