EVENT DRIVEN MIDTERM HANDOUT 1

It is represented by classes.
Thread
Exception
All the exceptions are subclasses in the built-in exception class named?
Exception
Thread
What are the 2 types of Exceptions?
ExceptionObject
ApplicationException
SystemException
This is a type of exception where these exceptions are user program-generated.
ApplicationException
SystemException
This is a type of exception where these exceptions are generated by Common Language Runtime (CLR).
ApplicationException
SystemException
What are the 9 few exceptions which are commonly used?
System.Exception
System.ArithmeticException
System.OverflowException
System.ArgumentException
ExceptionObject
System.ArgumentNullException
System.IndexOutOfRangeException
System.OutOfMemoryException
System.StackOverflowException
System.FormatException
This is a few exceptions that commonly used where it is at the top of the standards’ exceptions hierarchy.
System.OverflowException
System.Exception
System.ArithmeticException
This is a few exceptions that commonly used where the runtime system in C# generates all the exceptions.
System.IndexOutOfRangeException
System.StackOverflowException
System.Exception
This is a few exceptions that commonly used where it is errors in arithmetic or conversion operation will be thrown in this exception.
System.ArithmeticException
System.ArgumentNullException
System.OutOfMemoryException
This is a few exceptions that commonly used where it is when an overflow occurs in a checked operation, it will be thrown in OverflowException.
System.ArgumentException
System.OverflowException
System.FormatException
This is a few exceptions that commonly used where any invalid argument in a method will be thrown in this exception.
System.ArgumentException
System.Exception
System.OutOfMemoryException
This is a few exceptions that commonly used where if there is an unacceptable argument passed to a method, it will be thrown in ArgumentNullException.
System.IndexOutOfRangeException
System.ArgumentNullException
System.ArithmeticException
This is a few exceptions that commonly used where it throw in this exception when attempting to index an array through an index that is either less than zero or greater than the maximum length of index.
System.IndexOutOfRangeException
System.OverflowException
System.StackOverflowException
This is a few exceptions that commonly used where if the available memory becomes too low to accommodate a memory allocation request, it will be thrown in OutOfMemoryException.
Ystem.ArgumentException
System.ArithmeticException
System.OutOfMemoryException
This is a few exceptions that commonly used where the exception StackOverflowException is called when the execution stack is exhausted by having too many pending method calls.
System.ArgumentNullException
System.StackOverflowException
System.ArgumentException
This is a few exceptions that commonly used where this exception checks the format of the string or argument if it is invalid.
System.FormatException
System.ArgumentNullException
System.ArithmeticException
What are the 4 keywords in handling exceptions in C#?
Try
Object
Catch
Throw
Finally
It is a keywords in C# for handling exception where this keyword is used to check for the occurrence of any exceptions enclosed to it.
Catch
Throw
Try
Finally
It is a keywords in C# for handling exception where this keyword catches the exception that is thrown on the occurrence of exception in a try block.
Finally
Catch
Throw
Try
It is a keywords in C# for handling exception where this keyword used to throw an exception manually.
Try
Catch
Finally
Throw
It is a keywords in C# for handling exception where this keyword executes a given statement even if the exception is thrown or not thrown.
Catch
Throw
Finally
Try
It is a keywords in C# for handling exception where this keyword block cannot transfer control by using break, continue, return, or goto.
Finally
Catch
Try
Throw
What will be use to catch exceptions to check the errors in the code and generate in the runtime system automatically?
Try-catch block
Exception_Object
What is the keyword for manually throwing exception?
Try-catch
Throw
It is an instance of a class derived from the Exception class.
Exception_Object
Throw
This is an operator that is used to create a new object.
new
Throw
Creating one’s own exception is possible in .NET Framework?
True
False
Is this the simplest form for a custom exception class?
True
False
Is this the right format for adding a constructor in custom exception class?
True
False
Is this the right syntax for throwing an exception?
True
False
{"name":"EVENT DRIVEN MIDTERM HANDOUT 1", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"It is represented by classes., All the exceptions are subclasses in the built-in exception class named?, What are the 2 types of Exceptions?","img":"https://www.quiz-maker.com/3012/CDN/95-4639815/exep.png?sz=1200"}
Powered by: Quiz Maker