4.5
Testing and debugging (4.5) is a Class 10 Computer Science lesson for the Punjab boards. It walks through the idea in plain steps, then sets a short check, in English, Urdu or Roman Urdu.
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
Chapter 1 of every subject is free. Unlock every chapter of this class with the full course.
Unlock full courseAlready paid? Sign in with the Google account you paid with.
Testing runs code with different inputs to check it behaves as expected, so problems are fixed before real use.
Types: unit testing checks single functions in isolation (Python's unittest module). Integration testing checks parts working together; functional testing checks behaviour from the user's view; regression testing checks new changes did not break old features.
Debugging finds and fixes bugs at their root cause. Techniques: print statements to show variable values, debugging tools such as pdb to step through code, and reading error messages to locate the problem.
Step 1 / 1
Testing runs code with different inputs to check it behaves as expected, so problems are fixed before real use.
Types: unit testing checks single functions in isolation (Python's unittest module). Integration testing checks parts working together; functional testing checks behaviour from the user's view; regression testing checks new changes did not break old features.
Debugging finds and fixes bugs at their root cause. Techniques: print statements to show variable values, debugging tools such as pdb to step through code, and reading error messages to locate the problem.
Testing finds that something is wrong; debugging finds why and fixes it.
Found a mistake? Tell us the lesson and the line at exciting@boringeducation.com.
No ads. Tell us what to fix.