FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the difference between “ellipse()” and “rect()”?
A
“rect()” draws a circle and “ellipse()” draws a circle.
B
“rect()” draws a rectangle and “ellipse()” draw a rectangle.
C
“rect()” draws a polygon and “ellipse()” draws a triangle.
D
“rect()” draws a rectangle and “ellipse()” draws a circle.
Explanation: 

Detailed explanation-1: -Description. Draws an ellipse (oval) to the screen. By default, the first two parameters set the location of the center of the ellipse, and the third and fourth parameters set the shape’s width and height. If no height is specified, the value of width is used for both the width and height.

Detailed explanation-2: -A circle is a special case of an ellipse where the two foci or fixed points inside the ellipse are coincident and the eccentricity is zero. In a circle, all the diameters are the same size, but in an ellipse there are major and minor axes which are of different lengths.

There is 1 question to complete.