Sail E0 Webinar

MCQs

Total Questions : 105 | Page 11 of 11 pages
Question 101.

Which of these standard collection classes implements all the standard functions on 

list data structure?


  1.    Array
  2.    LinkedList
  3.    HashSet
  4.    AbstractSet
 Discuss Question
Answer: Option A. -> Array

None.


Question 102.

Which of these object stores association between keys and values?


  1.    Hash table
  2.    Map
  3.    Array
  4.    String
 Discuss Question
Answer: Option B. -> Map

None.


Question 103.

Which of these class object uses key to store value?


  1.    Dictionary
  2.    Map
  3.    Hashtable
  4.    All if the mentioned
 Discuss Question
Answer: Option D. -> All if the mentioned

Dictionary, Map & Hashtable all implement Map interface hence all of them uses keys to 

store value in the object.


Question 104.

Which of these class object can be used to form a dynamic array?


  1.    ArrayList
  2.    Map
  3.    Vector
  4.    ArrayList & Map
 Discuss Question
Answer: Option D. -> ArrayList & Map

Vectors are dynamic arrays, it contains many legacy methods that are not part of 

collection framework, and hence these methods are not present in ArrayList. But 

both are used to form dynamic arrays.


Question 105.

Which of these class object has architecture similar to that of array?


  1.    Bitset
  2.    Map
  3.    Hashtable
  4.    All if the mentioned
 Discuss Question
Answer: Option A. -> Bitset

Bitset class creates a special type of array that holds bit values. This array can increase 

in size as needed.


Latest Videos

Latest Test Papers