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...
Each citation on a bibliography in MLA style includes a ________ indent and double spacing
A) hanging B) manual C) single D) first line
Computer Science & Information Technology
Which statement is false?
a. Linked lists are collections of data items "lined up in a row"-- insertions and deletions can be made anywhere in a linked list. b. Insertions and deletions are made only at one end of a stack, its top. c. Insertions and deletions are made only at one end of a queue, its tail. d. Binary trees facilitate high-speed searching and sorting of data.
Computer Science & Information Technology