


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: DATA STRUCTURES I; Subject: Computer Science; University: Wentworth Institute of Technology; Term: Unknown 1989;
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



COMP380 Section 71 - Data Structures I - Spring, 2006
Short Answers – 5 points each.
(a)Declare an enumerated class called “Emotion”. Have the items in this class be “happy”, “sad”, “angry”. (b) Write an enhanced for loop that prints out the values of Emotion
a. What operation is EASY to do for an array-based list, but is hard to do with Linked? Why? b. What operation is EASY to do for Linked lists, but is Hard to do with array-based lists? Why?
Part II - Programming Exercises - 40 points DO ONE OUT OF THE FOLLOWING THREE PROBLEMS Note that grading will take into account the quality of the comments in your code.