PrepAway - Latest Free Exam Questions & Answers

You need to meet the requirements

You are debugging an application that calculates loan interest. The application includes the followingcode.
(Line numbers are included for reference only.)

You have the following requirements:
-The debugger must break execution within the Calculatelnterest() method when the loanAmount variable
is less than or equal to zero. -The release versionof the code must not be impacted by any changes.
You need to meet the requirements.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Insert the following code segment at tine 05: Debug.Write(loanAmount > 0);

B.
Insert the following code segment at line 05: Trace.Write(loanAmount > 0);

C.
Insert the following code segment at line 03: Debug.Assert(loanAmount > 0);

D.
Insert the following code segment at line 03: Trace.Assert(loanAmount > 0);

Explanation:
This question differs from the other time it is asked in this exam because its only the “release” version that they
are speaking about. Since Debug symbols do not carry over into release versions, C is the answer.

8 Comments on “You need to meet the requirements


Leave a Reply