Big Java Binder Early Objects

Computing

Quiz 8 :
Designing Classes

Quiz 8 :
Designing Classes

Showing 1 - 20 of 95
Next Quiz
arrow
Which of the following is considered by the text to be the most important consideration when designing a class?
Free
Multiple Choice
Answer:

Answer:

B

arrow
Which of the following questions should you ask yourself in order to determine if you have named your class properly?
Free
Multiple Choice
Answer:

Answer:

C

arrow
Which class category has static methods and constants, but no objects?
Free
Multiple Choice
Answer:

Answer:

C

arrow
A class named CurrencyTranslator would most probably fall into which of the following class categories?
Multiple Choice
Answer:
arrow
Why does the Scanner class belong to the category of classes known as actors?
Multiple Choice
Answer:
arrow
Which of the following would be an appropriate name for a game-related class?
Multiple Choice
Answer:
arrow
Which of the following most likely indicates that you have chosen a good name for your class?
Multiple Choice
Answer:
arrow
Which of the following describes the first thing you should do when beginning a new object-oriented programming activity?
Multiple Choice
Answer:
arrow
Under which of the following conditions would the public interface of a class be considered cohesive?
Multiple Choice
Answer:
arrow
General Java variable naming conventions would suggest that a variable named NICKEL_VALUE would most probably be declared using which of the following combinations of modifiers?
Multiple Choice
Answer:
arrow
Which of the following is a good indicator that a class is overreaching and trying to accomplish too much?
Multiple Choice
Answer:
arrow
Given the following class definition, which of the following are considered part of the class's public interface? public class CashRegister { Public static final double DIME_VALUE = 0.1; Private static int objectCounter; Public void updateDimes(int dimes) {. . .} Private boolean updateCounter(int counter) {. . .} }
Multiple Choice
Answer:
arrow
A class (ClassOne) is considered to have a dependency on another class (ClassTwo) under which of the following conditions?
Multiple Choice
Answer:
arrow
A UML class diagram would be most useful in visually illustrating which of the following?
Multiple Choice
Answer:
arrow
Why is it generally considered good practice to minimize coupling between classes?
Multiple Choice
Answer:
arrow
Which of the following represents a good strategy regarding cohesion and coupling?
Multiple Choice
Answer:
arrow
Which of the following is a true statement regarding consistency in coding?
Multiple Choice
Answer:
arrow
Which of the following describes an immutable class?
Multiple Choice
Answer:
arrow
Which type of method modifies the object on which it is invoked?
Multiple Choice
Answer:
arrow
The String class is an example of which of the following types of classes?
Multiple Choice
Answer:
Showing 1 - 20 of 95
Next Quiz