Koofers

Quiz for COMP 385 - DATA STRUCTURES II at Wentworth Institute of Technology (WIT)

Quiz Information

Material Type:Quiz 1
Professor:Staff
Class:COMP 385 - DATA STRUCTURES II
Subject:Computer Science
University:Wentworth Institute of Technology
Term:--
Keywords:
  • Declaration
  • Professional
  • Public String
  • Data Structures
Login / Sign Up to View Document
Preview Page 1Preview Page 2Preview Page 3Preview Page 4

Sample Document Text

NAME___________________________________________________ Wentworth Institute of Technology Division of Professional and Continuing Studies COMP385 Section 71 – Data Structures II - Fall, 2005 Quiz 1 – Open Book 1. List the names of 5 types of sorting algorithms a.________________________________________________________ b.________________________________________________________ c.________________________________________________________ d.________________________________________________________ e.________________________________________________________ 2. What will this recursive program print? public static void main (String[] args) { mysteryPrint("Reverse"); MyInput.pause(); } static void mysteryPrint(String inString) { int n = inString.length()-1; if (inString.length()!=0)mysteryPrint(inString.substring(0,n)); for(int j=n; j>=0; j--) System.out.print(inString.charAt(j)); System.out.println(); } PROBLEMS 3,4,5 ALL USE THE FOLLOWING CLASS, CALLED Rectangle public class Rectangle ...
155, "/var/app/current/tmp/"