Solved

What Does the Following Code Fragment Do? Circle Circle =

Question 32

Multiple Choice

What does the following code fragment do? Circle circle = new Circle(100, 100, 50) ;
Circle.setFill(Color.GREEN) ;
Rectangle rectangle = new Rectangle(70, 70, 225, 75) ;
Rectangle.setStroke(Color.BLUE) ;
Rectangle.setStrokeWidth(2) ;
Rectangle.setFill(null) ;


A) It creates a green circle, centered at coordinates (100, 100) .
B) It creates a rectangle which overlaps the circle since its upper-left corner is at coordinates (70, 70) and its dimensions are 225 X 75.
C) Since the rectangle's fill color is set to null, the circle will be visible through the rectangle.
D) The rectangle will have a blue border.
E) All of these are true.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions