CS 200 Midterm: CS 200 CSU Midterm1 04

31 views6 pages
15 Feb 2019
School
Course
Professor

Document Summary

________________________________________________________________: [3 pts] give an example of casting in java. _________________________________________________________________: [3 pts] you are running program "java prog1". Circle the letter of each statement that is true in each of the statements that follow the beginning statement. Best case = _______ worst case = _____: [10 pts] in assignment 2, you used mergesort to sort the contacts file. So assignment 1 and 2 required two approaches to the same problem: creating a sorted arraylist by reading in strings from a file. The calling code will need to confirm whether a given contact (of type string) is an allowed email address. You get a choice of data structure for storing the contacts. Which data structure is better for the contacts? (circle one and justify your response based on efficiency and use considerations) ordered arraylist or ordered doubly linked list: [20 pts] the following is a modified version of bailey"s mergesort.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents