Exam 10: Exception Handling
Exam 1: An Overview of Computer Programming50 Questions
Exam 2: Applications and Data50 Questions
Exam 3: Making Decisions50 Questions
Exam 4: Looping50 Questions
Exam 5: Arrays50 Questions
Exam 6: Using Methods50 Questions
Exam 7: Object-Oriented Concepts50 Questions
Exam 8: More Object Concepts50 Questions
Exam 9: Event-Driven Programming With Graphical User Interfaces50 Questions
Exam 10: Exception Handling50 Questions
Exam 11: System Modeling With the Uml50 Questions
Exam 12: Manipulating Larger Quantities of Data50 Questions
Select questions type
____ is thrown when you attempt to store an object that is the wrong data type in an array.
(Multiple Choice)
4.9/5
(41)
Programmers sometimes call a situation in which nothing goes wrong the ____________________.
(Short Answer)
4.8/5
(37)
____ is thrown when an arithmetic operation produces a result for which the value is greater than the assigned memory location can accommodate.
(Multiple Choice)
4.8/5
(39)
A(n) ____ is an unexpected or error condition that occurs while a program is running.
(Multiple Choice)
4.9/5
(33)
A catch block has no return type and ____ be called directly.
(Multiple Choice)
4.8/5
(30)
When a program throws an exception, you always have to deal with it.
(True/False)
4.9/5
(39)
Probably the most often used error-handling solution before object-oriented programming was to make a decision before working with a potentially error-causing value.
(True/False)
4.8/5
(32)
When you create a segment of code in which something might go wrong, you place the code in an error block.
(True/False)
4.8/5
(39)
The object-oriented techniques to manage errors, such as dividing a value by 0, comprise the group of methods known as ____.
(Multiple Choice)
4.8/5
(31)
The memory location known as the ____ is where the computer stores the list of method locations to which the system must return.
(Multiple Choice)
4.9/5
(38)
When you create an exception, it is conventional to end its name with ____.
(Multiple Choice)
4.7/5
(35)
By inheriting from the Exception class, you gain access to methods contained in the ____.
(Multiple Choice)
4.7/5
(42)
When appropriate, specialized ____ classes provide an elegant way for you to handle error situations.
(Multiple Choice)
4.8/5
(36)
Many well-designed programs that try code do not include any catch blocks; instead, they contain only ____.
(Multiple Choice)
4.8/5
(36)
A(n) ____ statement indicates the end of the catch block in the pseudocode.
(Multiple Choice)
4.8/5
(27)
The ____ block is used when the program uses data files that must be closed.
(Multiple Choice)
4.8/5
(31)
Object-oriented ____________________ provides a more elegant solution for handling error conditions than in previous procedural approaches.
(Short Answer)
4.8/5
(37)
Exceptions can be particularly useful when you throw them from ____, which do not have a return type, so they have no other way to send information back to the calling method.
(Multiple Choice)
4.9/5
(48)
When you include a(n) ____________________ block, you are assured that the finally statements will execute before the method is abandoned, even if the method closes prematurely.
(Short Answer)
4.8/5
(40)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)