4
QuizMultiple Choice

Visual Python

Question 4 • SC-Fundamentals of Computing - Content Recovery - Design & Development

Which line of code moves the ball to the down?

Answer
A
myBall.pos = myBall.pos.y + 2
B
myBall.pos.x = myBall.pos.z - 2
C
myBall.pos.y = myBall.pos.y - 2
D
myBall.pos.z = myBall.pos.z + 2

Explanation

In the usual coordinate system, moving down means decreasing the y-coordinate. Choice C subtracts 2 from myBall.pos.y, so it moves the ball downward.

AI-written and checked against the verified answer.