Given a Graphics object g, to draw a filled arc with radius 20 centered at (50, 50) and start angle 0 and spanning angle 90, you use ____.

Given a Graphics object g, to draw a filled arc with radius 20 centered at (50, 50) and start angle 0 and spanning angle 90, you use __________.


A. g.fillArc(50, 50, 40, 40, 0, Math.toRadian(90))
B. g.fillArc(50, 50, 40, 40, 0, 90)
C. g.fillArc(30, 30, 40, 40, 0, Math.toRadian(90))
D. g.fillArc(30, 30, 40, 40, 0, 90)
E. g.fillArc(50, 50, 20, 20, 0, 90)

The correct answer is D

Explanation: The angles are in degree, not radians.


Java

Learn More Multiple Choice Question :