1. A class is analogous to a(n) ______ a. house b. blueprint c. drafting table d
ID: 3566421 • Letter: 1
Question
1. A class is analogous to a(n) ______
a. house
b. blueprint
c. drafting table
d. architect
2. When an object is passed as an argument to a method, this is actually passed.
a. a copy of the object
b. the name of the object
c. a reference to the object
d. none of these; you cannot pass an object
3. This is a class member that holds data.
a. method
b. instance
c. field
d. constructor
4. This Java key word causes an object to be created in memory.
a. create
b. new
c. object
d. construct
5. This is a method that is automatically called when an instance of a class is created.
a. accessor
b. mutator
c. void
d. constructor
6. This is automatically provided for a class if you do not write one yourself.
a. accessor method
b. default instance
c. default constructor
d. variable declaration
7. Which of the following types of methods do not have access to instance fields defined in the
class
a. constructor methods
b. void methods
c. static method
d. instance (non static) methods
8. True or False Each instance of a class has its own set of instance fields.
9. True or False A class may not have more than one constructor.CSIS10A Lab 22 Read Chapter 9 and 11
10. True or False if you write a constructor for a class, it still has the default constructor that Java
provides.
11. True or False A method cannot return a reference to an object.
12. True or False If an object instance is passed to a method, and the method modifies the data in
the instance, the caller of the method does see the change because Java uses pass by value for
method parameters.
Explanation / Answer
1. A class is analogous to a(n) ______
b. blueprint
2. When an object is passed as an argument to a method, this is actually passed.
c. a reference to the object
3. This is a class member that holds data.
c. field
4. This Java key word causes an object to be created in memory.
b. new
5. This is a method that is automatically called when an instance of a class is created.
d. constructor
6. This is automatically provided for a class if you do not write one yourself.
c. default constructor
7. Which of the following types of methods do not have access to instance fields defined in the class
c. static method
8. True or False Each instance of a class has its own set of instance fields. True
9. True or False A class may not have more than one constructor.CSIS10A Lab 22 Read Chapter 9 and 11 False
10. True or False if you write a constructor for a class, it still has the default constructor that Java provides. False
11. True or False A method cannot return a reference to an object.False
12. True or False If an object instance is passed to a method, and the method modifies the data in
the instance, the caller of the method does see the change because Java uses pass by value for
method parameters. True
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.