Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
25.14. Debugging: Concepts and Techniques
This section
Practice test
12 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
4 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is debugging?
Hint
Think about how you would fix a mistake in your code.
- 2.
What is the purpose of print statements in debugging?
Hint
What would you output to see what's going on in your code?
- 3.
What does debugging mean?
- Fixing hardware problems
- Identifying and fixing software problems
- Creating new software
Hint
Consider software development processes.
- 4.
Using logging frameworks is better than print statements for larger applications.
- True
- False
Hint
Think about the advantages of tracking versus immediate feedback.
- 5.
You notice that a certain function in your code returns incorrect results. Describe how you would apply binary search debugging to locate the issue.
Hint
What if you tested halves of the function at a time?
- 6.
Write a brief explanation about the benefits of using logs versus print statements in a multi-user application.
Hint
Think about understanding user actions and issues in a busy environment.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
2 more questions available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting