True or false about queues
Exercise and reference answers
- Questions
- Statement is true
- No
- Statement
- A queue adds and removes at the same end.
- Statement is true
- Yes
- Statement
- REAR is also called TAIL of a queue.
- Statement is true
- No
- Statement
- PEEK removes the front element.
- Statement is true
- Yes
- Statement
- The longest waiting element leaves first.
- Statement is true
- Yes
- Statement
- Print jobs are served on a FIFO basis.
- Instructions
- Decide whether each statement is true or false.
Explanation
_Source: syllabus Computer Science, Ch 3 'Stack' and Ch 4 'Queue'_