The discipline for a stack is:

a) data first inserted is the data first out.
b) for a misbehaving stack, 30 lashes.
c) data last inserted is the data first out.
d) depends on the application of the stack.

c) data last inserted is the data first out.

Part a) is for a queue, which we haven't studied, b) is a joke, c) A stack is LIFO, last-in/first-out. Part d) is nonsense.

Computer Science & Information Technology

You might also like to view...

____ is copyrighted software marketed under a try-before-you-buy policy.

A. Shareware B. Vaporware C. Freeware D. Open source

Computer Science & Information Technology

Located at the bottom of the screen, the ____________________ displays the vertical page position.

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

Computer Science & Information Technology