Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Big Java Early Objects
Quiz 3: Implementing Classes
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
Consider the following method comment and method header:
Fill in the blank.
Question 22
Multiple Choice
We want to change the BankAccount class so that all accounts will have a monthly fee.The instance variable monthlyFee will hold the monthly fee.Which of the following constructors properly sets the monthly fee to a default value of 20?
Question 23
Multiple Choice
We want to create a class that represents a geometric sequence.A geometric sequence is a sequence of numbers that begin at some value and then multiplies each value by some constant to get the next value.For example, the geometric sequence 1, 2, 4, 8, 16 starts at 1 and multiplies each term by 2 to get the next.The geometric sequence 10.8, 5.4, 2.7, 1.35 starts at 10.8 and multiplies each term by 0.5 to get the next.The basic framework of a geometric sequence class is below:
Which of the constructor specifications below will allow this code to behave as desired?
Question 24
Multiple Choice
What is the name of the utility that formats comments into a set of documents that you can view in a Web browser?
Question 25
Multiple Choice
What are the operations that any programmer can use to create and manipulate objects of the class called?
Question 26
Multiple Choice
The javadoc utility is used to
Question 27
Multiple Choice
Consider the following code to declare a constructor for the Player class:
Which statement is true?
Question 28
Multiple Choice
Which of the following corresponds to the getArea method header for a Square class assuming an integer value for a side length?
Question 29
Multiple Choice
What is the name of the constructor for the BankAccount class?
Question 30
Multiple Choice
We want to create a class that represents a geometric sequence.A geometric sequence is a sequence of numbers that begin at some value and then multiplies each value by some constant to get the next value.For example, the geometric sequence 1, 2, 4, 8, 16 starts at 1 and multiplies each term by 2 to get the next.The geometric sequence 10.8, 5.4, 2.7, 1.35 starts at 10.8 and multiplies each term by 0.5 to get the next.The basic framework of a geometric sequence class is below:
Question 31
Multiple Choice
Consider the following method comment and method header:
Fill in the blank.
Question 32
Multiple Choice
We want to change the BankAccount class so that all accounts will have a monthly fee.Which of the following will properly define the instance variable monthlyFee that holds the monthly fee?
Question 33
Multiple Choice
Which special delimeter is used with the javadoc utility to document method arguments?
Question 34
Multiple Choice
.Consider the following method comment and method header:
Fill in the blank.
Question 35
Multiple Choice
Why is it a good idea for a programmer to write comments about a method first, before implementing it?
Question 36
Multiple Choice
We want to create a class that represents a geometric sequence.A geometric sequence is a sequence of numbers that begin at some value and then multiplies each value by some constant to get the next value.For example, the geometric sequence 1, 2, 4, 8, 16 starts at 1 and multiplies each term by 2 to get the next.The geometric sequence 10.8, 5.4, 2.7, 1.35 starts at 10.8 and multiplies each term by 0.5 to get the next.The basic framework of a geometric sequence class is below: public class Geometricsequence { private double currentValue; private double multiplier; } Assume that the parameters to the constructor are initial and mult. What should the body of the constructor be?
Question 37
Multiple Choice
We want to change the BankAccount class so that all accounts will have a monthly fee.The instance variable monthlyFee will hold the monthly fee.Which of the following is the correct public interface for a constructor that sets both the initial balance and monthly fee?
Question 38
Multiple Choice
What is the purpose of a clean and concise design for an object's public interface?
Question 39
Multiple Choice
We want to change the BankAccount class so that all accounts will have a monthly fee.The instance variable monthlyFee will hold the monthly fee.Which of the following methods deducts the value of the monthly fee from the account?