Common Lisp Exam

The exam that covers the Common Lisp material through Friday of this week is this coming Monday in EPS 108 from noon until 12:50 p.m. You may bring one 8.5 by 11 sheet of notes. The best way to practice for the exam is to work the daily exercises and to understand how to solve Program 1.

Material to Understand

Exercises

  1. Use CLOS to create a class called generic-list. This class should have methods called make-empty, is-empty, insert-item, and remove-item. Insert-item and remove-item should both operate from the front of the list.
  2. Test the above methods to make sure that they work.
  3. Add a class called stack. Have this class inherit as many of the generic-list methods as possible.
  4. Add a class called queue. Have this class also inherit as many of the generic-list methods as possible.
  5. Test the methods for stack and queue to make sure that they work.