Your school name
2nd Year Computer Chapter 5 Test2nd Year · Computer · Punjab (PTB)
Q1. Multiple choice questions (Attempt all · 10 × 1 = 10)
What are breakpoints and watches used for in software development?
What are breakpoints defined as in IDEs like PyCharm or VS Code?
Which step-by-step debugging action allows you to go inside a function to see how it is working?
What feeds directly into the Tuning stage?
Testing is essential for reliable applications because it helps to:
What is a key benefit of handling multiple exception types effectively?
What type of error occurs when code fails to follow the grammatical rules of the programming language?
What do profiling tools track in a program?
What does profiling help identify?
Profiling in programming is used to:
Q2. Short questions (Attempt any 6 of 8 · 6 × 2 = 12)
What are two primary benefits of performing unit testing?
What are three optimization techniques used to fix performance bottlenecks?
What is a performance bottleneck in programming?
What is testing?
What tools can be used for profiling and measuring performance in Python?
What are breakpoints in IDEs like PyCharm or VS Code?
What is the purpose of writing and executing test cases?
Define breakpoints and watches in debugging.
Q3. Long questions (Attempt any 2 of 3 · 2 × 4 = 8)
Discuss in detail the importance of testing and debugging techniques in software development, highlighting how they improve performance, user confidence, and future maintenance.
Why is testing essential for reliable applications, and what role does it play in ensuring program stability?
What is step-by-step debugging, and how does it help in identifying and fixing bugs in Python programs?