VERIFIED ANSWERS
\Q\.Commenting and proper indentation are important tools that can increase readability and
understanding of your code and should always be used.
True or false - ANSWERS✔-True
\Q\.Suppose I create a new kind of Java object, called "Kangaroo". Further suppose that at any
given time, all instances of this new object type have some facts associated with them. These
include the Kangaroo's location, stomach capacity, and current attitude towards pea soup. What
is another name for these facts?
-Attributes
-Parameters
-Associations
-Values - ANSWERS✔-Attributes
\Q\.When we create a new class that inherits from an existing class, we use this keyword to
specify the class to inherit from:
subclasses
extends
implements
inherits - ANSWERS✔-extends
\Q\.An instance of a class is called a:
variable
name
, object
memory location - ANSWERS✔-object
\Q\.A Jeroo method that requires you to specify a direction when you call it is:
turn()
pick()
plant()
hop() - ANSWERS✔-turn()
\Q\.What term describes the following concept: When you call a method, the receiver
determines how to respond (that is, determines which implementation of the method will be
executed).
object-oriented
generalization
polymorphism
specialization - ANSWERS✔-polymorphism
\Q\.When we create a new class that inherits from another, we call this new class a:
-all of these are correct
-child class
-derived class
-subclass - ANSWERS✔-all of these are correct
\Q\.What should fill in the blank to complete this constructor correctly?
public class MyJeroo extends Jeroo
{