Main Page

Previous Page
Next Page

[Page 34 (continued)]



Categorize each of the following items as either hardware or software:

  1. CPU

  2. C++ compiler

  3. ALU

  4. C++ preprocessor

  5. input unit

  6. an editor program


Why might you want to write a program in a machine-independent language instead of a machine-dependent language? Why might a machine-dependent language be more appropriate for writing certain types of programs?


Fill in the blanks in each of the following statements:

  1. Which logical unit of the computer receives information from outside the computer for use by the computer? ________.

  2. The process of instructing the computer to solve specific problems is called ________.

  3. What type of computer language uses English-like abbreviations for machine-language instructions? ________.

  4. Which logical unit of the computer sends information that has already been processed by the computer to various devices so that the information may be used outside the computer? ________.

  5. Which logical unit of the computer retains information? ________.

  6. Which logical unit of the computer performs calculations? ________.

  7. Which logical unit of the computer makes logical decisions? ________.

  8. The level of computer language most convenient to the programmer for writing programs quickly and easily is ________.

  9. The only language that a computer directly understands is called that computer's ________.

  10. Which logical unit of the computer coordinates the activities of all the other logical units? ________.


Why is so much attention today focused on object-oriented programming in general and C++ in particular?

[Page 35]

Distinguish between the terms fatal error and nonfatal error. Why might you prefer to experience a fatal error rather than a nonfatal error?


Give a brief answer to each of the following questions:

  1. Why does this text discuss structured programming in addition to object-oriented programming?

  2. What are the typical steps (mentioned in the text) of an object-oriented design process?

  3. What kinds of messages do people send to one another?

  4. Objects send messages to one another across well-defined interfaces. What interfaces does a car radio (object) present to its user (a person object)?


You are probably wearing on your wrist one of the world's most common types of objectsa watch. Discuss how each of the following terms and concepts applies to the notion of a watch: object, attributes, behaviors, class, inheritance (consider, for example, an alarm clock), abstraction, modeling, messages, encapsulation, interface, information hiding, data members and member functions.

Previous Page
Next Page