Microsoft
98-374 · Question #60
98-374 Question #60: Real Exam Question with Answer & Explanation
Sign in or unlock 98-374 to reveal the answer and full explanation for question #60. The question stem and answer options stay visible for context.
Question
You plan to write an XNA code segment in C# to reverse the direction of the ball when it collides with a screen boundary. You write the following code segment. When you run the code, you discover that sometimes the ball gets stuck at the boundary resulting in a ping-pong effect back and forth. What error causes the ping-pong effect?
Exhibit
Options
- AThe failure of the code to speed up the ball while it is reversing the direction
- BThe failure of the code to reset the ball's position to the boundary on collision
- CThe failure of the code to wait one frame before reversing the direction of the ball
- DThe failure of the code due to accumulated math errors that break the collision detection
Unlock 98-374 to see the answer
You've previewed enough free 98-374 questions. Unlock 98-374 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
