Previous Index Next

Review Questions

Short Answer

1. What is debugging?


2. What is debugger? Why it is needed?


3. Name any built in python debugger.


4. Write the Pbd command to print the value of variables.


5. What is exception handler?


6. Write a program to calculate area of rectangle using try and except so that your program handles non-numeric input gracefully by printing a message and exiting the program. The following shows two executions of the program:

Enter length: 12
Enter width: three
Error, please enter numeric input

Enter length: six
Error, please enter numeric input


Previous Index Next