CSE 143 Quiz 2                                                       05 Jul 2000


name ____________________________________________ student number ______________

                                                         section ______________

You have six minutes to complete this quiz.  Write your answers on this page.



1.  Mark the changes necessary to rewrite the swap function below using
    reference parameters:

  void swap(int *x, int *y)

  {

      int temp = *x;

      *x = *y;

      *y = temp;

  }

2.  The vector ADT presented in lecture has seven operations:  create, destroy,
    and five others.  Name any three of the five remaining operations.