Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Big Java Binder Early Objects
Quiz 15: The Java Collections Framework
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 61
Multiple Choice
You need to access values by an integer position. Which collection type should you use?
Question 62
Multiple Choice
What operation is least efficient in a LinkedList?
Question 63
Multiple Choice
You need to write a program to simulate the effect of adding an additional cashier in a supermarket to reduce the length of time customers must wait to check out. Which data structure would be most appropriate to simulate the waiting customers?
Question 64
Multiple Choice
You need to access values in objects by a key that is not part of the object. Which collection type should you use?
Question 65
Multiple Choice
Which data structure would best be used for storing a set of numbers and sorting them in ascending order?
Question 66
Multiple Choice
Assume that you have declared a map named myMap to hold String elements with Integer keys. Which of the following statements will correctly insert an element into myMap?
Question 67
Multiple Choice
Consider the following code snippet: Map<String, Integer> scores; You expect to retrieve elements randomly by key, and want fastest retrieval times. Which of the following statements will create a structure to support this?
Question 68
Multiple Choice
You need to access values in the order in which they were added (first in, first out) , and not randomly. Which collection type should you use?
Question 69
Multiple Choice
You have decided to store objects of a class in a TreeSet structure. Which of the following statements is correct?
Question 70
Multiple Choice
Assume that you have declared a map named myMap to hold String elements with Integer keys. Which of the following statements will correctly retrieve the value of an element from myMap by using its key?
Question 71
Multiple Choice
You want to enumerate all of the keys in a map named myMap whose keys are type String. Which of the following statements will allow you to do this?
Question 72
Multiple Choice
You need to write a program to build and maintain an address book. Since the program must support the possibility of having duplicate names, which data structure would be most appropriate to model this situation?