Exam 15: The Java Collections Framework
Exam 1: Introduction98 Questions
Exam 2: Using Objects76 Questions
Exam 3: Implementing Classes103 Questions
Exam 4: Fundamental Data Types125 Questions
Exam 5: Decisions120 Questions
Exam 6: Loops128 Questions
Exam 7: Arrays and Array Lists118 Questions
Exam 8: Designing Classes95 Questions
Exam 9: Inheritance101 Questions
Exam 10: Interfaces85 Questions
Exam 11: Inputoutput and Exception Handling109 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion110 Questions
Exam 14: Sorting and Searching109 Questions
Exam 15: The Java Collections Framework110 Questions
Exam 16: Basic Data Structures104 Questions
Exam 17: Tree Structures110 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Graphical User Interfaces76 Questions
Exam 20: Streams and Binary Inputoutput82 Questions
Exam 21: Multithreading82 Questions
Exam 22: Internet Networking74 Questions
Exam 23: Relational Databases75 Questions
Exam 24: XML74 Questions
Exam 25: Web Applications75 Questions
Select questions type
Which of the following statements about manipulating objects in a map is NOT correct?
(Multiple Choice)
4.9/5
(38)
Select an appropriate expression to complete the following method, which is designed to visit the elements in theList and replace each occurrence of the string "hello" with the string "goodbye". public static void helloGoodbye(LinkedList<String> theList)
{
ListIterator<String> iterator = theList.listIterator();
While (iterator.hasNext())
{
If (iterator.next().equals("hello"))
{
_____________________________
}
}
}
(Multiple Choice)
4.9/5
(38)
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?
(Multiple Choice)
4.8/5
(39)
Which of the following statements about linked lists is correct?
(Multiple Choice)
4.8/5
(37)
Which of the following statements about the TreeSet class is NOT correct?
(Multiple Choice)
4.7/5
(27)
Which of the following statements about manipulating objects in a map is NOT correct?
(Multiple Choice)
4.8/5
(46)
You need to access values using a key, and the keys must be sorted. Which collection type should you use?
(Multiple Choice)
4.9/5
(48)
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?
(Multiple Choice)
5.0/5
(37)
Which of the following algorithms would be efficiently executed using a LinkedList?
(Multiple Choice)
4.9/5
(37)
Consider the following code snippet:
Map<String, Integer> scores;
If you need to visit the keys in sorted order, which of the following statements will create a structure to support this?
(Multiple Choice)
4.9/5
(36)
When using a list iterator, on which condition will the IllegalStateException be thrown?
(Multiple Choice)
4.9/5
(30)
In a linked list data structure, when does the reference to the first node need to be updated?
I inserting into an empty list
II deleting from a list with one node
III deleting an inner node
(Multiple Choice)
4.9/5
(32)
Which of the following statements about data structures is correct?
(Multiple Choice)
4.9/5
(33)
A linked list ____ encapsulates a position anywhere inside the linked list.
(Multiple Choice)
4.8/5
(33)
Print jobs submitted to a printer would probably be stored in which type of data structure?
(Multiple Choice)
4.7/5
(41)
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?
(Multiple Choice)
4.8/5
(41)
You need to write a program to manage a waiting list of patrons at a restaurant. Which data structure would be most appropriate to model this situation?
(Multiple Choice)
4.8/5
(39)
Which of the following statements about a priority queue structure is NOT correct?
(Multiple Choice)
4.9/5
(31)
Showing 41 - 60 of 110
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)