If software can be executed, it is considered to be a functional system. To check your knowledge of software, you can take software trivia quiz questions. However, there might be unprecedented events that inhibit execution, which are identified as exceptions. Every programmer has to have knowledge of the types of exceptions. Take the quiz below to see the extent of knowledge of exceptions and how you treat them. Don't forget to share your result!
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
It specifies the point at which the exception must be handled.
It's the initial point at which the exception occurs.
It's specified as the top row of the methodÂcall stack at the time the exception occurred.
All of the above statements are true.
Rate this question:
The type of exception being caught
The name of the catch block's exception parameter
A final block
An exception handler
Rate this question:
Overriding the Error class.
Overriding the Exception property.
Extending class Exception.
They cannot be created
Rate this question:
A problem a computer has during construction
A problem that a program has during runtime
Something that the computer does not understand
The way a computer signals to the users that it is about to terminate
Rate this question:
There is no difference; the terms can be used interchangeably.
A try statement refers to the block of code following the keyword try, while the try block refers to the try keyword and the block of code following this keyword.
The try block refers to the keyword try followed by a block of code. The try block and its corresponding catch and/or finally clauses together form a try statement.
The try statement refers to the keyword try followed by a block of code. The try statement and its corresponding catch and/or finally clauses together form a try block.
Rate this question:
Control proceeds to the first statement after the final block.
Control returns to the throw point.
The app exits.
Control proceeds to the first statement after the last catch block.
Rate this question:
True
False
Rate this question:
A descriptive message for the exception.
The methodÂcall stack at the time the exception occurred.
The name of the exception.
Instructions on handling the exception.
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
The Message method of class Exception
The Message property of class Exception
The ErrorMessage method of class Exception
The ErrorMessage property of class Exception
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
Is an error
Cannot catch any exceptions
Can catch any exceptions
None of the above
Rate this question:
A final block, if there is one, is placed after the last catch block.
A final block should release all resources acquired in the corresponding try block.
The final block and try block can appear in any order.
A final block is optional.
Rate this question:
The try block must be followed by at least one catch block.
The try block must be followed by a final block.
The try block should contain statements that may process an exception.
The try block should contain statements that may throw an exception.
Rate this question:
ApplicationException class.
ConsoleException class.
Exception class.
SystemException class.
Rate this question:
Pop the exception
Toss the exception
Access Exception properties
Throw the exception
Rate this question:
HelpLink
Source
TargetSite
PrintError
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.