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

Wayne raked 30 bags of leaves in 3 hours. if he raked the same number of bags each hour, how many bags of leaves did he rake in one hour?
Explain how to write 50,000 using exponents
Vel rented a bicycle while she was on vacation. She paid a flat rental fee of $55.00, plus $8.50 each day. The total cost was $123. Write an equation you can us
Whats the abswer to 1/2x+3/4=1
James works in a flower shop. He will put 36 tulips in vases. He must use the same number of tulips in each vase. How many tulips could be in each vase?
Desmond's GCSE maths exam is next week. As part of his revision he attempted 31 questions on his least favourite topic of percentages. He got 21 questions fully
What present day state was unsettled by Americans in 1850 and almost completely settled in 1890?
Why a yellow flame is called a safety flame if it could burn u seriously
what do bends or folds in rocks show
a compound mystery.    why is a can of peas an carrots a mixture? what other mixtures can u list