<< Chapter < Page Chapter >> Page >

True or False?

Answer 13

Question 14

The returned value of the createImage method is type JFrame .

True or False?

Answer 14

Question 15

The return type of the getGraphics methods is Graphics .

True or False?

Answer 15

Question 16

Objects instantiated from the GM2D02.Point and GM2D02.Line classes are not graphical objects.

True or False?

Answer 16

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?

Answer 17

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?

Answer 18

Question 19

The Line2D.Double object is a graphical object and the GM2D02.Line is an underlying data object.

True or False?

Answer 19

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?

Answer 20

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?

Answer 21

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?

Answer 22

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?

Answer 23

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?

Answer 24

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?

Answer 25

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?

Answer 26

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?

Answer 27

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?

Answer 28

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.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Game 2302 - mathematical applications for game development. OpenStax CNX. Jan 09, 2016 Download for free at https://legacy.cnx.org/content/col11450/1.33
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Game 2302 - mathematical applications for game development' conversation and receive update notifications?

Ask