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...

Select all that apply. Which of the following are key events?

a. when a user rolls a mouse over the monitor b. when a user presses a key c. when a user presses and releases a key that produces a Unicode character d. when a user releases a key

Computer Science & Information Technology

?Which of the five forces in Michael Porter's model refers to entry barriers and the relative threat of new competitors?

A. ?Potential entrants B. Buyers C. Suppliers D. Rivalry among existing firms

Computer Science & Information Technology

A mobile malicious code is also known as ____________________ because it is hiding inside a harmless-looking piece of code.?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

How is data stored in a NoSQL database?

What will be an ideal response?

Computer Science & Information Technology