PrepAway - Latest Free Exam Questions & Answers

Which exception type should you use if the database does not exist at installation time…

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. Domain.com consists of a Development department.
You as the developer of Domain.com use a client computer named Certkiller -WS209 as developing collateral.

You are busy creating a class that derives from Installer. The class that you created is used by Microsoft Windows Forms application to install a custom component which uses an existing Micrsoft Access database.

Which exception type should you use if the database does not exist at installation time and you need to throw an exception and have the installation rolled back?

PrepAway - Latest Free Exam Questions & Answers

A.
You should install InstallException

B.
You should install ApplicationException

C.
You should install SqlException

D.
You should install FileNotFoundException

Explanation:
The InstallException passes information to the Microsoft Windows Installer and causes the installation to be rolled back.

Incorrect Answers:
B: The ApplicationException will not cause the installation to roll back.
C: The SqlException will not cause the installation to roll back.
D: The FileNtFoundException will not cause the installation to roll back.


Leave a Reply