Answer the following questions 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.


1. False.
2. False.
3. False.

Computer Science & Information Technology

You might also like to view...

What is the output of the following code fragment?

int f1(int base, int limit) { if(base > limit) return -1; else if(base == limit) return 1; else return base * f1(base+1, limit); } int main() { cout << f1(12,4)<

Computer Science & Information Technology

IS professionals believe that their field offers few opportunities for unethical behavior. 

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

Computer Science & Information Technology

Query results show records and fields created at ________, which means that the results are created each time you run the query

Fill in the blank(s) with correct word

Computer Science & Information Technology

All dialog boxes include a Help button

Indicate whether the statement is true or false

Computer Science & Information Technology