OO Programming  «Prev  Next»

Choosing Classes when using OOD - Quiz

Each question is worth one point. Select the best answer for each question.
 
1. In object-oriented program design, what are the highest-level elements?
Please select the best answer.
  A. Procedures
  B. Methods
  C. Classes
  D. Global variables

2. Why might CustomerArray be a poor choice for a class name?
Please select the best answer.
  A. The name does not contain a verb.
  B. The name describes a computer concept.
  C. The name contains a second uppercase letter in the middle.
  D. The name is two words put together instead of a single word.

3. What is one defining characteristic of procedural, or structured, programming?
Please select the best answer.
  A. Top-down design
  B. Defining classes
  C. Identifying the problem domain
  D. Determining interaction of elements in the system

4. What is one reason to eliminate a class from the problem domain?
Please select the best answer.
  A. The class pulls together a number of related pieces of information.
  B. The class is identical to another class.
  C. The class cannot be expressed with a short one-word name.
  D. The class represents an entity that is just a small part of the problem domain.

Correct answers:

Your Score: 0