Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is an exception in programming?
Think about something that goes wrong while running a program.
Give one example of an exception.
Consider operations that can lead to errors.
What is an exception?
Think about events that disrupt regular processing.
True or False: Exceptions always crash the program.
Consider if there are mechanisms to handle errors.
Write a program that handles a division by zero exception and outputs a custom error message.
Think about using a try-catch structure to handle the error.
Create an array and attempt to access an invalid index, capturing the exception in a different catch block than the previous.
Focus on catching specific exceptions based on the type of error.
4 more questions in this section. Enroll free to practise them all.
Enroll free