7.5.  Review Questions

[ fromfile: libraries-questions.xml id: libraries-questions ]

  1. What is a platform? What platform do you use? What platform can be found in the labs at your school or work place?

  2. What is code reuse? How is it done? What is good about it?

  3. What is the role of a compiler?

  4. What is the role of a linker?

  5. Name three kinds of C++ libraries.

  6. What is CPPLIBS? Why do you need it?

  7. For each of these items, decide whether it would normally be found in a header (.h) file or an implementation (.cpp) file and explain why.

    1. Function definitions

    2. Function declarations

    3. static object declarations

    4. static object definitions

    5. Class definitions

    6. Class declarations

    7. inline function definitions

    8. inline function declarations

    9. Default argument specifiers

  8. What is the difference between a compile time dependency and a link time dependency?

  9. What is a framework? Are you using one?

  10. What is a design pattern? What do most design patterns have in common?

  11. What is an AntiPattern?