Java Collections Qcm (2)
Java Collections Qcm (2)
A) A single object
B) A group of objects
C) Only numbers
D) Only strings
A) java.io
B) java.sql
C) java.util
D) java.lang
A) List
B) Set
C) Map
D) Queue
A) HashSet
B) ArrayList
C) TreeMap
D) HashMap
A) Set
B) HashSet
QCM - Java Collections (50 Questions)
C) List
D) TreeSet
A) put(Object o)
B) append(Object o)
C) add(Object o)
D) insert(Object o)
A) Object
B) Boolean
C) Integer
D) Array
A) Set
B) List
C) Map
D) Queue
A) ArrayList
B) HashMap
C) Scanner
D) LinkedList
A) get()
B) retrieve()
C) fetch()
D) obtain()
A) ArrayList
B) HashSet
C) LinkedList
D) Vector
A) Added twice
B) Replaces old
C) Ignored
D) Throws error
A) ArrayList
B) LinkedHashSet
C) HashSet
D) LinkedList
A) HashSet
B) LinkedList
C) TreeSet
D) PriorityQueue
A) delete()
B) remove()
C) eliminate()
D) destroy()
A) Unique
B) Duplicate
C) Null always
QCM - Java Collections (50 Questions)
D) Primitive types
A) List
B) Set
C) Map
D) Queue
A) Insertion order
B) Random order
C) Natural ordering
D) Hash code
A) has()
B) find()
C) contains()
D) search()
A) List
B) Set
C) Queue
D) Map
A) Hash code
B) Insertion time
C) Priority
D) Size
A) Only FIFO
QCM - Java Collections (50 Questions)
A) deleteAll()
B) clear()
C) removeAll()
D) empty()
A) Constant
B) Linear
C) Quadratic
D) Random
A) java.util
B) java.sql
C) java.io
D) java.lang
A) Random order
B) Sorted order
C) Insertion order
D) No order
A) length()
B) count()
C) size()
D) measure()
QCM - Java Collections (50 Questions)
A) ArrayList
B) HashSet
C) LinkedList
D) TreeSet
A) compareTo()
B) equals()
C) hashCode()
D) toString()
A) TreeMap
B) HashMap
C) HashSet
D) LinkedList
A) delete()
B) remove()
C) eliminate()
D) discard()
A) Arrays only
B) Sets
C) Lists
D) Maps
A) ArrayList
B) Vector
QCM - Java Collections (50 Questions)
C) HashSet
D) TreeMap
A) HashMap
B) TreeMap
C) LinkedHashMap
D) SortedMap
A) ArrayList
B) HashMap
C) Vector
D) HashSet
A) HashMap
B) TreeMap
C) Hashtable
D) None
A) Set
B) Map
C) List
D) TreeSet
A) first()
B) getFirst()
C) peek()
D) retrieve()
A) HashSet
B) TreeSet
C) LinkedHashSet
D) HashMap
A) Comparable
B) Collection
C) Iterator
D) List
A) move()
B) hasNext()
C) next()
D) step()
A) Maps
B) Lists
C) Sets
D) Arrays only
A) T
B) V
C) E
D) All of these
A) Runtime casting
B) Compile-time type checking
C) Memory allocation
QCM - Java Collections (50 Questions)
D) Performance slowing
A) 5
B) 10
C) 15
D) 20
A) Error thrown
B) Last value replaces previous
C) Duplicates allowed
D) Runtime exception
A) List
B) Set
C) Map
D) Queue
A) HashSet
B) ArrayList
C) LinkedList
D) Vector
A) Descending
B) Ascending
C) Random
D) Insertion order