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)
Explanation:
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.
You might also like to view...
Most U.S. consumers will pay higher prices for U.S.-made products.
Answer the following statement true (T) or false (F)
Interpreted programs can be modified and tested immediately.
Answer the following statement true (T) or false (F)
How data is summarized can be changed in a PivotTable report
Indicate whether the statement is true or false.
Which of the following options means that if a value in the primary key field is modified, all values in the foreign key field are automatically updated as well?
A. Cascade Repeat Values B. Cascade Application Parts C. Cascade Delete Related Records D. Cascade Delete Related Fields