You are on page 1of 1

Level CSII Module 4 Task 3 Class

Worksheet Student(s) Date

Programming errors

Finding logical errors

In the case of logical errors, there is usually no indication as to where the error is. They can be quite
tricky to track down, and may have you ripping your hair out in frustration. You will often hear yourself
saying "But that should work! Why won't it?" .So let’s practice. More specifically:

 In the document’s folder is a subfolder called “DW. CSII.4.3_Error handling”. This folder contains
the subfolder “Logical_errors_1”. Find it and open the existing program.
 Before you click the button and run the program, observe it very carefully. What answer do you
expect to get? ...................................
 Now run the program and write the answer you get: …………………………….

What do you think the logical error is in this case?

....................................................................................................................
....................................................................................................................

© Binary Logic SA 2018. PHOTOCOPIABLE . Last update: 24/1/20 - Page 1 of 1

You might also like