Multiple Choice
Assume that you have declared a stack named myStack to hold String elements. Which of the following statements will correctly add an element to myStack?
A) myStack.put("apple") ;
B) myStack.addItem("apple") ;
C) myStack.push("apple") ;
D) myStack.insert("apple") ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q93: The term _ is used in computer
Q94: Which of the following statements about sets
Q95: A(n) _ is a data structure used
Q96: Which method is NOT part of the
Q97: Assume that you have declared a queue
Q99: A binary search requires _ access.<br>A) sequential<br>B)
Q100: Complete the following code snippet, which is
Q101: We might choose to use a linked
Q102: Complete the following code, which is intended
Q103: A collection that allows items to be