Unit 6 Quiz Flashcards

1
Q

To provide a generic catch block, define a catch block with an exception type parameter.

T or F

A

True

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

A ________ is a listing of the methods that were called prior to a program crashing, but in reverse order.

A

Call stack trace

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

A program is _____ if it’s able to support larger or smaller amounts of data and more or fewer users.

A

Scalable

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

If you handle an exception with a throws clause, and you need to provide clean up code regardless of whether an exception is thrown, use a finally block.

T or F

A

True

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

______ exceptions are descendants of the RuntimeException class.

A

Unchecked

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

A ________ is an event that disrupts the normal flow of instructions during the execution of a program.

A

Exception

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

When the JVM throws an exception, the JVM looks for a matching catch block.

T or F

A

True

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

__________ must be checked with a try-catch mechanism.

A

Checked Exception

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

If a code fragment has the potential of throwing a checked exception, the compiler will not force you to associate that code fragment with a try-catch mechanism.

T or F

A

False

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

If an exception is thrown, the JVM jumps out of the current try block.

T or F

A

True

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