Java Interview Questions on Collection - 13 Questions
Question: 1
(A) Compilation Error
(B) Exception
(C) 1
(D) 0
Level: Beginner Category of MCQ: collection
Question: 2
(A) Nothing is printed
(B) IndexOutOfBoundsException
(C) Compilation Error
(D) 0
Level: Practitioner Category of MCQ: collection
Question: 3
(A) Nothing is printed
(B) Compilation Error
(C) Exception
(D) 5
Level: Practitioner Category of MCQ: collection
Question: 4
(A) Nothing is printed
(B) 5
(C) 0
(D) true
Level: Practitioner Category of MCQ: collection
Question: 5
(A) -1
(B) 0
(C) IndexOutOfBoundsException
(D) None of the above
Level: Practitioner Category of MCQ: collection
Question: 6
(A) true
(B) -2
(C) Compilation Error
(D) 0
Level: Practitioner Category of MCQ: collection
Question: 7
Question: 8
(A) True
(B) False
Level: Beginner Category of MCQ: collection
Question: 9
(A) 22
(B) 12
(C) 11
(D) 21
Level: Beginner Category of MCQ: collection
Question: 10
(A) True
(B) False
Level: Practitioner Category of MCQ: collection
Question: 11
(A) O(1)
(B) O(n)
(C) O(log(n))
(D) None of these
Level: Expert Category of MCQ: collection
Question: 12
(A) O(n)
(B) O(1)
(C) O(log(n))
(D) None of these
Level: Expert Category of MCQ: collection
Question: 13
(A) HashTable
(B) EnumSet
(C) Vector
(D) ArrayList
Level: Expert Category of MCQ: collection