Chapter 9: Python Errors and Built-In Exceptions

 

Results

Previous
Next

#1. ______ can be said to be any abnormal condition in a program resulting to the disruption in the flow of the program.

Previous
Next

#2. Whenever an exception occurs the program halts the execution and thus further ______ is not executed.

Previous
Next

#3. Raised when assert statement fails.

Previous
Next

#4. Raised when attribute assignment or reference fails.

Previous
Next

#5. Raised when the input() functions hits end-of-file condition.

Previous
Next

#6. Raised when a floating point operation fails.

Previous
Next

#7. Raise when a generator’s close() method is called.

Previous
Next

#8. Raised when the imported module is not found.

Previous
Next

#9. Raised when index of a sequence is out of range.

Previous
Next

#10. Raised when a key is not found in a dictionary.

Previous
Next

#11. Raised when the user hits interrupt key.

Previous
Next

#12. Raised when an operation runs out of memory.

Previous
Next

#13. Raised when a variable is not found in local or global scope.

Previous
Next

#14. Raised by abstract methods.

Previous
Next

#15. Raised when system operation causes system related error.

Previous
Next

#16. Raised when result of an arithmetic operation is too large to be represented.

Previous
Next

#17. Raised when a weak reference proxy is used to access a garbage collected referent.

Previous
Next

#18. Raised when an error does not fall under any other category.

Previous
Next

#19. Raised by next() function to indicate that there is no further item to be returned by iterator.

Previous
Next

#20. Raised by parser when syntax error is encountered.

Previous
Next

#21. Raised when there is incorrect Indentation.

Previous
Next

#22. Raised when indentation consists of inconsistent tabs and spaces.

Previous
Next

#23. Raised when interpreter detects internal error.

Previous
Next

#24. Raised by sys.exit() function.

Previous
Next

#25. Raised when a function or operation is applied to an object of incorrect type.

Previous
Finish