Multiple choice

What will be the output of the following statement? g.fillRect(40,40,200,20);

  1. Displays a rectangle of 200X200 pixels starting with top left corner at 40X40 pixels

  2. Displays a rectangle of 40X400 pixels starting with top left corner at 200X200 pixels

  3. Displays a circle of 200X200 pixels starting with top left corner at 40X40 pixels

  4. Displays a circle of 40X40 pixels starting with top left corner at 200X200 pixels

  5. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This statement will draw the rectangle of 200X200 at left corner at 40X40 of the screen.