Solved

What Is the Function of the Peek Method in a Stack

Question 31

Multiple Choice

What is the function of the peek method in a stack implementation?


A) to return the bottom item without removing it
B) to return the top item without removing it
C) to return the top item and remove it from the stack
D) to return the bottom item and remove it from the stack

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions