nerdexam
Microsoft

98-379 · Question #113

You create code that calculates the speed of a vehicle by using the following formula: Speed = Miles / Hours When the code runs, the application throws a divide by zero exception. Which type of…

The correct answer is C. Run-time error. See the full explanation below for the reasoning.

Question

You create code that calculates the speed of a vehicle by using the following formula:

Speed = Miles / Hours When the code runs, the application throws a divide by zero exception. Which type of error is thrown by the application?

Options

  • ACompile error
  • BLogic error
  • CRun-time error
  • DSyntax error

How the community answered

(40 responses)
  • A
    13% (5)
  • B
    5% (2)
  • C
    80% (32)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 98-379 Practice