1. Which of these interface declares core method that all collections will have?
A . set
B . EventListner
C . Comparator
D . Collection
2. Which of these interface handle sequences?
A . Set
B . List
C . Comparator
D . Collection
3. Which of this interface must contain a unique element?
A . Set
B . List
C . Array
D . Collection
4. Which of these is a Basic interface that all other interface inherits?
A . Set
B . Array
C . List
D . Collection
5. Which of these is static variable defined in Collections?
A . EMPTY_SET
B . EMPTY_LIST
C . EMPTY_MAP
D . All of the mentioned
6. Which of these packages contain all the collection classes?
A . javlang
B . javutil
C . javnet
D . javawt
7. Which of these classes is not part of Java’s collection framework?
A . Maps
B . Array
C . Stack
D . Queue
8. Which of this interface is not a part of Java’s collection framework?
A . List
B . Set
C . SortedMap
D . SortedList
9. Which of these methods deletes all the elements from invoking collection?
A . clear()
B . reset()
C . delete()
D . refresh()
10. What is Collection in Java?
A . A group of objects
B . A group of classes
C . A group of interfaces
D . None of the mentioned
11. Which of these classes is not part of Java’s collection framework?
A . Maps
B . Array
C . Stack
D . Queue
12. Which of these methods deletes all the elements from invoking collection?
A . clear()
B . reset()
C . delete()
D . refresh()
13. The collection
A . extends Collections class
B . extends Iterable interface
C . implements Serializable interface
D . implements Traversable interface
14. Which of these interfaces declares core method that all collections will have?
A . set
B . EventListner
C . Comparator
D . Collection
15. Which of these interfaces handle sequences?
A . Set
B . List
C . Comparator
D . Collection
16. Which of these interface is not a part of Java’s collection framework?
A . List
B . Set
C . SortedMap
D . SortedList
17. Which of these interface must contain a unique element?
A . Set
B . List
C . Array
D . Collection
18. Which of these is Basic interface that all other interface inherits?
A . Set
B . Array
C . List
D . Collection
19. Which of these is an incorrect form of using method max() to obtain maximum element?
A . max(Collection c)
B . max(Collection c, Comparator comp)
C . max(Comparator comp)
D . max(List c)
20. Which of these methods sets every element of a List to a specified object?
A . set()
B . fill()
C . Complete()
D . add()
21. Which of these methods can randomize all elements in a list?
A . rand()
B . randomize()
C . shuffle()
D . ambigous()
22. Which of these methods can convert an object into a List?
A . SetList()
B . ConvertList()
C . singletonList()
D . CopyList()
23. Which of these is true about unmodifiableCollection() method?
A . unmodifiableCollection() returns a collection that cannot be modifie
B . unmodifiableCollection() method is available only for List and Set.
C . unmodifiableCollection() is defined in Collection class.
D . None of the mentione
24. Which of these is static variable defined in Collections?
A . EMPTY_SET
B . EMPTY_LIST
C . EMPTY_MAP
D . All of the mentioned
25. Which of these standard collection classes implements a dynamic array?
A . AbstractList
B . LinkedList
C . ArrayList
D . AbstractSet
26. Which of these class can generate an array which can increase and decrease in size automatically?
A . ArrayList()
B . DynamicList()
C . LinkedList()
D . DynamicList()
27. Which of these method can be used to increase the capacity of ArrayList object manually?
A . Capacity()
B . increaseCapacity()
C . increasecapacity()
D . ensureCapacity()
28. Which of these method of ArrayList class is used to obtain present size of an object?
A . size()
B . length()
C . index()
D . capacity()
29. Which of these methods can be used to obtain a static array from an ArrayList object?
A . Array()
B . covertArray()
C . toArray()
D . covertoArray()
30. Which of these method is used to change an element in a LinkedList Object?
A . change()
B . set()
C . redo()
D . add()
☞ Java Programming Objective Type Question Bank - [ Java Programming ]
☞ Java Programming Objective Type Questions-Part-1 - [ Java Programming ]
☞ Java Programming Objective Type Questions-Part-2 - [ Java Programming ]
☞ Java Programming Objective Type Questions-Part-3 - [ Java Programming ]
☞ Java Programming Objective Type Questions-Part-4 - [ Java Programming ]
☞ Java Programming Objective Type Questions-Part-5 - [ Java Programming ]
☞ PPS MCQs - Unit-1 - [ PPS ]
☞ PPS MCQs - Unit-2 - [ PPS ]
☞ PPS MCQs - Unit-3 - [ PPS ]
☞ Machine Learning MCQs - Unit-1 - [ ML ]
☞ Machine Learning MCQs - Unit-2 - [ ML ]
☞ Data Mining MCQs - Unit-1 - [ DM ]
☞ Data Mining MCQs - Unit-2 - [ DM ]
☞ Data Mining MCQs - Unit-3 - [ DM ]
☞ Data Mining MCQs - Unit-4 - [ DM ]
☞ Data Mining MCQs - Unit-5 - [ DM ]
☞ Object Oriented Programming through Java MCQs - Unit-1 - [ OOP_JAVA ]
☞ Object Oriented Programming through Java MCQs - Unit-2 - [ OOP_JAVA ]
☞ Object Oriented Programming through Java MCQs - Unit-3 - [ OOP_JAVA ]
☞ Object Oriented Programming through Java MCQs - Unit-4 - [ OOP_JAVA ]
☞ Object Oriented Programming through Java MCQs - Unit-5 - [ OOP_JAVA ]
☞ Database Management System Objective Type Question Bank-Unit-1 - [ DBMS ]
☞ Database Management System Objective Type Question Bank-Unit-2 - [ DBMS ]
☞ Database Management System Objective Type Question Bank-Unit-3 - [ DBMS ]
☞ Database Management System Objective Type Question Bank-Unit-4 - [ DBMS ]
☞ Database Management System Objective Type Question Bank-Unit-5 - [ DBMS ]
☞ Computer Organization and Architecture (COA) Objective Question Bank-Unit-1 - [ COA ]
☞ Computer Organization and Architecture (COA) Objective Question Bank-Unit-2 - [ COA ]
☞ Computer Organization and Architecture (COA) Objective Question Bank-Unit-3 - [ COA ]
☞ Computer Organization and Architecture (COA) Objective Question Bank-Unit-4 - [ COA ]
☞ Computer Organization and Architecture (COA) Objective Question Bank-Unit-5 - [ COA ]
☞ R - Programming MCQs - Unit-1 - [ R-Programming ]
☞ R - Programming MCQs - Unit-2 - [ R-Programming ]
☞ R - Programming MCQs - Unit-3 - [ R-Programming ]
☞ R - Programming MCQs - Unit-4 - [ R-Programming ]
☞ R - Programming MCQs - Unit-5 - [ R-Programming ]
☞ Formal Languages and Automata Theory (FLAT) MCQs - Unit-1 - [ FLAT ]
☞ Formal Languages and Automata Theory (FLAT) MCQs - Unit-2 - [ FLAT ]
☞ Formal Languages and Automata Theory (FLAT) MCQs - Unit-3 - [ FLAT ]
☞ Formal Languages and Automata Theory (FLAT) MCQs - Unit-4 - [ FLAT ]
☞ Formal Languages and Automata Theory (FLAT) MCQs - Unit-5 - [ FLAT ]
☞ Artificial Intelligence (AI) MCQs - Unit-1 - [ Artificial Intelligence ]
☞ Artificial Intelligence (AI) MCQs - Unit-2 - [ Artificial Intelligence ]
☞ Artificial Intelligence (AI) MCQs - Unit-3 - [ Artificial Intelligence ]
☞ Artificial Intelligence (AI) MCQs - Unit-4 - [ Artificial Intelligence ]
☞ Artificial Intelligence (AI) MCQs - Unit-5 - [ Artificial Intelligence ]
☞ Design and Analysis of Algorithms MCQs - Unit-1 - [ DAA ]
☞ Design and Analysis of Algorithms MCQs - Unit-2 - [ DAA ]
☞ Design and Analysis of Algorithms MCQs - Unit-3 - [ DAA ]
☞ Design and Analysis of Algorithms MCQs - Unit-4 - [ DAA ]
☞ Design and Analysis of Algorithms MCQs - Unit-5 - [ DAA ]
☞ Software Engineering MCQs - Unit-1 - [ SE ]
☞ Software Engineering MCQs - Unit-2 - [ SE ]
☞ Software Engineering MCQs - Unit-3 - [ SE ]
☞ Software Engineering MCQs - Unit-4 - [ SE ]
☞ Software Engineering MCQs - Unit-5 - [ SE ]