Exam 11: Exception Handling

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The StackTrace property of an Exception can be a useful debugging tool.How is this property used when debugging?

(Essay)
4.8/5
(30)

A catch block can catch how many types of Exceptions?

(Multiple Choice)
4.7/5
(29)

What represents the degree to which a system is resilient to stress and able to maintain correct functioning?

(Multiple Choice)
4.8/5
(41)

If you are working on a professional project, Microsoft recommends that you use the general Exception class in a catch block.

(True/False)
4.7/5
(33)

Most exceptions that are used by programmers derive from three C# classes.What are those classes?

(Essay)
4.9/5
(40)

What read-only property in the Exception class contains useful information about an Exception object?

(Multiple Choice)
4.9/5
(32)

What block can you use to ensure that input and output related files are properly closed?

(Multiple Choice)
4.8/5
(43)

What methods are used to convert string data to another data type, such as int, double, or bool, without fear of generating an exception?

(Multiple Choice)
4.7/5
(32)

If a finally block is associated with a try…catch pair, what are the three possible outcomes of the try that result in execution of the finally block?

(Essay)
4.9/5
(34)

What method can be used to terminate an application?

(Multiple Choice)
4.9/5
(28)

What type of exception is thrown if there is an issue with file operations, such as opening, reading from, or writing to a file?

(Multiple Choice)
4.8/5
(45)

An exception belonging to what specific class is thrown when an attempt is made to store an element of the wrong type within an array?

(Multiple Choice)
4.9/5
(39)

The memory location where the computer stores the list of locations to which the system must return is known by what term?

(Multiple Choice)
4.8/5
(45)

You can place any number of statements in a try block, including those you know will never throw an exception.

(True/False)
4.7/5
(42)

C# has more than 100 defined Exception subclasses.

(True/False)
4.8/5
(40)

When creating an Exception class, what is not one of the three recommended constructors needed?

(Multiple Choice)
4.8/5
(33)

All classes in the C# programming language, including the Exception class, are descendants of what built in class?

(Multiple Choice)
4.8/5
(36)

When you catch an Exception, what property holds a list of methods in the call stack as its value, allowing you to determine the location of the Exception?

(Multiple Choice)
4.9/5
(39)

In general, what block do you use to perform clean-up tasks that must occur, regardless of whether any errors occurred or were caught?

(Multiple Choice)
4.8/5
(40)
Showing 21 - 39 of 39
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)