8.2.1 Exceptions.

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

210

Subject

Computer Science

Date

Nov 24, 2024

Type

docx

Pages

1

Uploaded by DrRoseLoris32

Report
1) For a function that may contain a throw, allof the functioris statements, including the throw, must be surrounded by 2 O Te ® False y block. 2) Athrow executed ina fur Iast return statement in the function. O True False Iy causes ajump to the 3) A goal of exception handingis to avoid polluting norma code with distracting error-handing code. ® Te O False Correct nory/catch blocks appear in the function, the throw causes automat exitng from he function. T o s then checked for try/catch block untl excepton s caugnt or main) s ex Correct Athow intry block causes an immediate jump tothe catch block. trow notwithin a y bock causes immeciate xit o the cale without executing any resum Without ry/catch funcrionaliy programemers cormonly resort o specalreunn values ke or an e
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help