Final Exam, CSCI 230, Fall 2008


  1. [5 points] Define Abstract Data Type (ADT)
  2. [5 points] What is information hiding? How is this supported in C++
  3. [4 points] What is a class in C++?
  4. [6 points] Name three different types of member functions, explain what each does.
  5. [10 points] Create a simple EmptyDouble class. This class is initialized to empty, but can be set to hold a double. Implement methods
  6. [3 points] What does operator overloading mean. Give an example.
  7. [5 points] What is a linked list? Give an example and draw a picture.
  8. [5 points] Compare and contrast linked lists and arrays.
  9. [3 points] Declare a struct that can be a node in a linked list.
  10. [5 points] Using the struct from the previous question, write a recursive routine to insert a node into an ordered linked list.
  11. [9 points] When using dynamic memory in a class, what three methods should be implemented? Describe each and tell what each does.