nerdexam
Microsoft

98-379 · Question #93

98-379 Question #93: Real Exam Question with Answer & Explanation

The correct answer is B. Unit. See the full explanation below for the reasoning.

Question

You are writing tests for an application that tracks model rocket launches. The application includes a function named Velocity that calculates the velocity of a launch, as shown in the following code. (Line numbers are included for reference only.) You need to test that the Velocity function: - Throws an exception if the launch is null - Returns epsilon if the time is below the measurement threshold - Returns zero if the launch did not result in any movement - Returns the velocity as distance divided by total seconds Which type of tests must you write?

Exhibit

98-379 question #93 exhibit

Options

  • AEnd-to-end
  • BUnit
  • CIntegration
  • DPerformance

Community Discussion

No community discussion yet for this question.

Full 98-379 Practice