Answer the following statements true (T) or false (F)
1. A real-world example of the queue data structure can be seen in a stack of cafeteria trays where the last tray pushed onto the stack is the first tray removed.
2. In a static stack class, the constructor function can dynamically allocate memory for the stack array.
3. Stacks and queues can be implemented as arrays or linked lists.
4. The programmer must declare in advance the size of a dynamic stack or queue.
5. A stack that is implemented as a linked list is known as a deque.
1. F
2. T
3. T
4. F
5. F
You might also like to view...
The order of data in the worksheet determines how the pie slices are ordered in a pie chart
Indicate whether the statement is true or false
A(n) ________ operator, such as the greater than or less than symbol, can can be used in a query criterion to limits the results produced by the query
A) operand B) delimiter C) comparison D) wildcard