Answer the following statements true (T) or false (F)

1. If 5 items are added to a stack, the first item to be removed from the stack is the first item that was added to the stack.
2. A stack has a first in, first out property.
3. The peek operation of the ADT stack changes the stack.
4. A program can use the operations of the ADT stack without knowing how the operations are implemented.
5. If the characters in a string are added to a stack one at a time, characters removed from the stack will occur in the order in which they appear in the original string.

1. False
2. False
3. False
4. True
5. False

Computer Science & Information Technology

You might also like to view...

A simple path in a graph is one in which a path passes through the same vertex at least twice.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Movie clip symbol Timelines are helpful in creating ____ animations.

a. retro b. nested c. smooth d. inclusive

Computer Science & Information Technology