CSC 351 - Chapter 14 Flashcards

1
Q

Language Without Exception Handling

A
  • when exception occurs, control goes to operating system and a message is displayed
  • can still define, detect, raise and handle exceptions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Language With Exception Handling

A
  • programs can catch exceptions with the possibility of fixing the problem
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Exception

A
  • unusual event detected by hardware or software that may require processing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Exception Handling

A
  • the special processing that may be required
  • exceptions are bound to handlers by connecting the type of expression in the throw statement to the formal parameter in the catch
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Unhandled Exception

A
  • propagated to the caller of the function in which it is raised
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Continuation

A
  • after a handler completes execution, control flows to the first statement after the last handler in the sequence of handlers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Assertion Statement

A
  • statement in the program declaring a boolean expression regarding the current state
  • if false, assertion error is thrown
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Event

A
  • notification that something specific has occured
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Event Handler

A
  • segment of code that is executed in response to an event
How well did you know this?
1
Not at all
2
3
4
5
Perfectly