MIDTERMS | Exceptions | Event-Driven Programming

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

Exception

It is represented by classes.

2
New cards

Exception

All the exceptions are subclasses in the built-in exception class named _, wherein it is a part of namespace System.

3
New cards

ApplicationException

These exceptions are user program-generated.

4
New cards

SystemException

These exceptions are generated by Common Language Runtime (CLR).

5
New cards

System.Exception

This is at the top of the standards’ exceptions hierarchy. The runtime system in C# generates all the exceptions.

6
New cards

System.ArithmeticException

Errors in arithmetic or conversion operation will be thrown in this exception.

7
New cards

System.OverflowException

When an overflow occurs in a checked operation, it will be thrown in __________.

8
New cards

System.ArgumentException

Any invalid argument in a method will be thrown in this exception.

9
New cards

System.ArgumentNullException

If there is an unacceptable argument passed to a method, it will be thrown in ______________.

10
New cards

System.IndexOutOfRangeException

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.

11
New cards

System.OutOfMemoryException

If the available memory becomes too low to accommodate a memory allocation request, it will be thrown in __________.

12
New cards

System.StackOverflowException

The exception __________ is called when the execution stack is exhausted by having too many pending method calls.

13
New cards

System.FormatException

This exception checks the format of the string or argument if it is invalid.

14
New cards

try

This keyword is used to check for the occurrence of any exceptions enclosed to it.

15
New cards

catch

This keyword catches the exception that is thrown on the occurrence of exception in a try block.

16
New cards

throw

It is used to throw an exception manually.

17
New cards

finally

This keyword executes a given statement even if the exception is thrown or not thrown.

18
New cards

finally

This block cannot transfer control by using break, continue, return, or goto.

19
New cards

can

The throw keyword (can/cannot) be used outside of the try-catch block, but without the try-catch block, there will be an interruption in the process.

Explore top flashcards

Unit 11: Evolution
Updated 861d ago
flashcards Flashcards (95)
Biology Test 2
Updated 712d ago
flashcards Flashcards (24)
Unit 6 MWH
Updated 994d ago
flashcards Flashcards (28)
CRIM EXAM 2
Updated 733d ago
flashcards Flashcards (113)
Unit 11: Evolution
Updated 861d ago
flashcards Flashcards (95)
Biology Test 2
Updated 712d ago
flashcards Flashcards (24)
Unit 6 MWH
Updated 994d ago
flashcards Flashcards (28)
CRIM EXAM 2
Updated 733d ago
flashcards Flashcards (113)