






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
This is a midterm exam for cmsc132, a computer science course, held in the summer of 2006. It covers topics such as hashing, networking, sorting, algorithmic complexity, regular expressions, recursion, linear data structures, and maps/sets. The exam consists of 8 problems and is closed book and closed notes. Students have to answer short answer questions and write neatly to ensure their answers are graded.
Typology: Exams
1 / 11
This page cannot be seen from the preview
Don't miss anything!







c. ftp client
The static method reverse has the following prototype: public static String reverse(int[] a) The method returns a string with the elements of the integer array in reverse order. For example, the method call reverse(new int[]{10, 20, 30}) will generate the string 30 20 10. An empty space should appear between elements. The method should return the empty string (“”) if an array of size zero is provided. Feel free to add an auxiliary method. Non-recursive solutions will receive no credit.
The following Java class definition is for a singly linked list: public class LinkList
/* Complete this method / } public List