ramanwaterfalls9042 ramanwaterfalls9042
  • 17-07-2019
  • Computers and Technology
contestada

_____ means retrieve the element at the top of a stackwithout removing it.

a. Peek
b. Top
c. Push
d. Pop
e. none of the above

Respuesta :

demimurray573
demimurray573 demimurray573
  • 28-07-2019

Answer:

A - Peek

Explanation:

The peek method retrieves the element at the top of a stack without deleting/removing it, the only exception that can occur is when the stack used is empty. It would look as follows when you use the method >> STACK.peek().

Answer Link

Otras preguntas

The questions are above
If it takes 27.3 days for the moon to make 1 revolution around the Earth, why does it take a total of 29.5 days to complete 1 set of phases?
Identify the length if MN. 6.5 12.5 11.5 5.5
solve the inequality 4 - x < 9
Which of the following best explains what a forward contract is
Is it true or false?
A microwave oven uses a current of 0.45 Amps in a voltage of 120 Volts how much power does a microwave use?
What was a cause of opposition to the war in both the North and the South? O A. Military victories O B. European involvement O C. Food shortages O D. All of the
An electric clothes dryer has a resistance of 8 ohms. It draws 30 A of current. What is the voltage, in volts, of the wall outlet that it is plugged into? Answe
Find the equation of the line using the info given and write the answers in slope – intercept form. perpendicular to y = −3 through the point (2, 5)