True or False?
Question 14
The returned value of the createImage method is type JFrame .
True or False?
Question 15
The return type of the getGraphics methods is Graphics .
True or False?
Question 16
Objects instantiated from the GM2D02.Point and GM2D02.Line classes are not graphical objects.
True or False?
Question 17
Objects instantiated from the GM2D02.Point and GM2D02.Line classes are underlying data objects that are suitable for use in mathematicaloperations.
True or False?
Question 18
A call to the draw method of the GM2D02.Line class causes an object of the standard Java Point2D.Double class to be rendered onto the specified graphics context.
True or False?
Question 19
The Line2D.Double object is a graphical object and the GM2D02.Line is an underlying data object.
True or False?
Question 20
The GM2D02.Line class is a member of the standard Java library, whereas the Line2D.Double class is a member of the special game math library named GM2D02 .
True or False?
Question 21
One of the problems with object-oriented programming is that objects don't know how to do useful things for themselves.
True or False?
Question 22
A call to the draw method of the GM2D02.Point class causes an object of the standard Java Ellipse2D.Double class to be rendered onto the specified graphics context.
True or False?
Question 23
The constructor for the Java standard Ellipse2D.Double class requires four incoming parameters that specify the coordinates of the upper-left cornerof a rectangle followed by the width and the height of the rectangle.
True or False?
Question 24
An object of type Ellipse2D.Double represents an ellipse that is bounded by the four sides of a rectangle. If the rectangle is square, theellipse becomes a square.
True or False?
Question 25
Kjell tells us that a vector is a geometrical object that has two properties: length and direction. He also tells us that a vector does not have a position.
True or False?
Question 26
The draw method of the GM2D02.Vector class requires three parameters:
- A reference to an object of the GM2D02.Vector class.
- A reference to the off-screen graphics context
- on which the visual manifestation of the vector will be drawn.
- A reference to an object of the class
GM2D02.Point
- that will be used to determine the position on the off-screen image in which the visual manifestation will appear.
True or False?
Question 27
The visual manifestation of a vector can be placed anywhere in space, and one placement is just as correct as the next
True or False?
Question 28
Although the visual manifestation of a vector can be placed anywhere in space, and one placement is just as correct as the next, certain placements maybe preferable to others in some cases so as to better represent the problem being modeled by the use of vectors.
True or False?
Question 29
The rendering of a GM2D02.Vector object by the draw method of the GM2D02.Vector class draws a small circle to visually identify the head of the vector.