Deck 32: Appendix a Operator Precedence Chart

ملء الشاشة (f)
exit full mode
سؤال
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.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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 Deck
1/6
auto play flashcards
العب
simple tutorial
ملء الشاشة (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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 6 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 6 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 6 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 6 في هذه المجموعة.