Lab 11 Answer Sheet

This lab is to be worked in a group.



Name:________________________Netid:_______________Section:_______

Name:________________________Netid:_______________Section:_______

Name:________________________Netid:_______________Section:_______



Part 1: Prelab



  1. ________________________________________________

    ________________________________________________


    ________________________________________________



  2. ________________________________________


    ________________________________________


    ________________________________________


    ________________________________________





  3. _________________________________________________________



    _________________________________________________________


  4. _________________________________


    _________________________________


    _________________________________


    _________________________________



  5. _________________________________


    _________________________________


    _________________________________


    _________________________________


    _________________________________




Part 2: Using QuickSort

1. Fill in the blanks to call the qsort function to sort the array in ascending order.

qsort( __________________ , __________________ , __________________ , __________________ );

2. Fill in the blanks to call the qsort function to sort the array in descending order.

qsort( __________________ , __________________ , __________________ , __________________ );



Part 3: Swapping Strings

3. Write the first "word" in the list that begins with the letter 'w'.

_______________________________________________________


4. Write the last "word" in the list.

_______________________________________________________