ISDS 505 Final Ch 11 (All Questions Answered Correctly)
Any error condition or unexpected behavior in an executing program is known as an ______________________. a. exclusion b. anomaly c. exception d. omission correct answers c. exception Which of the following is not treated as a C# Exception? a. Your program asks the user to input a number, but the user enters a character. b. You calculate a value that is too large for the answer's variable type. c. You attempt to access an array with a subscript that is too large. d. You attempt to execute a C# program, but the C# compiler has not been installed. correct answers d. You attempt to execute a C# program, but the C# compiler has not been installed. Most exceptions you will use derive from three classes: ______________________. a. Object, ObjectException, and ObjectApplicationException b. Exception, SystemException, and ApplicationException c. FormatException, ApplicationException, and IOException d. SystemException, IOException, and FormatException correct answers b. Exception, SystemException, and ApplicationException Exception objects can be ______________________. a. generated automatically by C# b. created by a program c. both of these d. none of these correct answers c. both of these When a program creates an Exception object, you ______________________. a. must handle it b. can handle it c. must not handle it d. none of these; programs cannot create Exceptions correct answers b. can handle it If you do not use object-oriented techniques, ______________________. a. you can still manage error situations b. you cannot manage error situations c. you can manage error situations but with great difficulty d. error situations will seldom occur correct answers a. you can still manage error situations In object-oriented terminology, you ______________________ a procedure that might not complete correctly. a. circumvent b. try c. catch d. throw correct answers b. try In object-oriented terminology, a method that detects an error condition ______________________ an exception.
Document information
- Uploaded on
- April 5, 2024
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers