Quiz 2 Flashcards

1
Q

An exception is a _______

A

Object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is one major benefit of having errors signaled by exceptions?

A

Separates the error code from normal program code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why don’t we use exceptions for every error possible?

A

Exceptions come with a lot of overhead, reducing program performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly