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. FALSE
2. TRUE
3. TRUE
4. FALSE
5. FALSE

Computer Science & Information Technology

You might also like to view...

Clicking a MainMenu control in the component tray causes the IDE to ________.

a) switch to Menu mode b) switch to Menu Designer mode c) switch to code view d) switch to component tray mode e) add Menu controls to the Toolbox

Computer Science & Information Technology

The paragraph shown in the accompanying figure includes a button that is created using a(n) ____.

A. background image B. inline image C. background style D. inline style

Computer Science & Information Technology

A(n) ____ takes the bits in a string and changes the 1s to 0s and the 0s to 1s.

A. bit inverter B. unary converter C. Turing inverter D. incrementer

Computer Science & Information Technology

The ____ allows authentication between the server and the client and the negotiation of an encryption algorithm and cryptographic keys before any actual data is transmitted.

A. TLS Record Protocol B. Secure FTP C. TLS Handshake Protocol D. HTTP

Computer Science & Information Technology