Multiple Choice
Assume that you have declared a map named myMap to hold String elements with Integer keys. Which of the following statements will correctly insert an element into myMap?
A) myMap.insert(3, "apple") ;
B) myMap.put(3, "apple") ;
C) myMap.push(3, "apple") ;
D) myMap.add(3, "apple") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q4: Select an appropriate expression to complete the
Q5: Assuming that names is a Queue of
Q6: Rather than storing values in an array,
Q8: Select an appropriate expression to complete the
Q10: Which of the following statements about hash
Q11: Complete the following code, which is intended
Q12: When using a list iterator, on which
Q13: Select an appropriate declaration to complete the
Q14: What is the meaning of the type
Q95: A collection that allows speedy insertion and