Deck 32: Appendix a Operator Precedence Chart

Full screen (f)
exit full mode
Question
Compared to traditional error handling techniques, exception handling is considered_____ .

A) less efficient
B) more efficient
C) equally efficient
D) either more or less efficient, depending on the situation
E) The two technologies are not comparable.
Use Space or
up arrow
down arrow
to flip the card.
Question
To catch exceptions thrown by a section of code, you must first enclose those lines in a _____block.

A) try
B) finally
C) throw
D) exception
E) None of the Above.
Question
Exception handling requires that you write code to handle _____.

A) all types of errors
B) only errors that could occur in your code
C) a few of the most common errors
D) only those errors you choose to handle
E) Both b and c.
Question
Uncaught exceptions_____ .

A) cause a program to terminate unexpectedly
B) occur when no catch block matches the type of the exception
C) should be avoided
D) make programs less user-friendly
E) All of the above.
Question
A catch block that does not specify which type of exception it catches _____.

A) is a syntax error
B) is useless; it will not catch any type of exception
C) will catch any type of exception that does not already have a handler defined
D) should be the last catch block in a group
E) Both c and d.
Question
A FormatException generally indicates that _____.

A) the user attempted division by zero
B) a method was passed an argument of the wrong type
C) a method was passed the wrong number of arguments
D) the program contains a syntax error
E) None of the above.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/6
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 32: Appendix a Operator Precedence Chart
1
Compared to traditional error handling techniques, exception handling is considered_____ .

A) less efficient
B) more efficient
C) equally efficient
D) either more or less efficient, depending on the situation
E) The two technologies are not comparable.
more efficient
2
To catch exceptions thrown by a section of code, you must first enclose those lines in a _____block.

A) try
B) finally
C) throw
D) exception
E) None of the Above.
try
3
Exception handling requires that you write code to handle _____.

A) all types of errors
B) only errors that could occur in your code
C) a few of the most common errors
D) only those errors you choose to handle
E) Both b and c.
only those errors you choose to handle
4
Uncaught exceptions_____ .

A) cause a program to terminate unexpectedly
B) occur when no catch block matches the type of the exception
C) should be avoided
D) make programs less user-friendly
E) All of the above.
Unlock Deck
Unlock for access to all 6 flashcards in this deck.
Unlock Deck
k this deck
5
A catch block that does not specify which type of exception it catches _____.

A) is a syntax error
B) is useless; it will not catch any type of exception
C) will catch any type of exception that does not already have a handler defined
D) should be the last catch block in a group
E) Both c and d.
Unlock Deck
Unlock for access to all 6 flashcards in this deck.
Unlock Deck
k this deck
6
A FormatException generally indicates that _____.

A) the user attempted division by zero
B) a method was passed an argument of the wrong type
C) a method was passed the wrong number of arguments
D) the program contains a syntax error
E) None of the above.
Unlock Deck
Unlock for access to all 6 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 6 flashcards in this deck.