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)- A13% (5)
- B5% (2)
- C80% (32)
- D3% (1)
Community Discussion
No community discussion yet for this question.