Consider the peek() operation for the ADT Stack as described by the author. What is its output?

a. true or false
a. there is no output
b. the object that is at the top of the stack
c. the number of items left on the stack


c. the number of items left on the stack

Computer Science & Information Technology

You might also like to view...

The Rotate all text 90° option displays the text from bottom to top and is aligned at the lower left edge of the column

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following is not a numeric format?

A) Accounting B) Currency C) Number D) Special

Computer Science & Information Technology

Which of the following is often not included in an Access template?

A) Form B) Table C) Report D) Macro

Computer Science & Information Technology

The command-line interface tells a user that it?s ready to receive commands by displaying a specific set of characters called a(n) _______________.

A. command B. key C. prompt D. signal

Computer Science & Information Technology