Computer Science 3675
Fall 2000
Additional practice questions

  1. Write a clearly legible T to the left of each of the following that is true, and a clearly legible F to the left of each that is false.

    1. Programs written in an object-oriented style tend to be organized significantly differently from programs written in a functional or procedural style.

    2. The class is an important concept of object-based programming.

    3. In most object-oriented languages, some type checking must be done at run time.

  2. Is a private variable of an object accessible only to that one object, or is it possible for other objects to access it directly? Answer this question for object-based programming and for object-oriented programming.

  3. In a single-inheritance language, is there a limit on the number of base classes that a class can have?

  4. In object-oriented programming, you imagine that objects carry functions with them. Yet, the functions are not really stored with the objects. How does an object locate its functions? How does it know which functions to select? What is the name of the system support that is responsible for locating functions?

  5. How does the mechanism for inheriting variables work in single-inheritance object-oriented languages? Is there a separate implementation of each selector for each class, or does one implementation of each selector work for all classes? How do the selector(s) work?

  6. What distinguishes a virtual method from a nonvirtual one?