Question:When running a Debug build of an application, you want to display a dialog box if the result of a calculation (stored in the result integer) is less than zero. Which of the following methods does this correctly?
 

A Debug.Assert(result >= 0, “Result error”) 

B Trace.Assert(result >= 0, “Result error”) 

C Debug.WriteIf(result >= 0, “Result error”) 

D Trace.WriteIf(result >= 0, “Result error”) 

+ Answer
+ Report
Total Preview: 1178

Copyright © 2024. Powered by Intellect Software Ltd