Chapter 13 Questions
Multiple Choice Questions
1. A priority queue orders its items by ______.
a. position
b. value
c. priority value
d. size
2. The first item to be removed from a priority queue is the item ______.
a. at the front of the priority queue
b. at the end the priority queue
c. with the highest value
d. with the highest priority value
3. Which data structure represents a waiting line and limits insertions to be made at the back of the data structure
and limits removals to be made from the front?
a. Stack.
b. tree.
c. Linked list
d. Queue.
4. Which of the following characterizes a stack?
a. FIFO
b. LIFO
c. FILO
d. LILO
5. Which of the following characterizes a queue?
a. FIFO
b. LIFO
c. FILO
d. LILO
6. Which of the following is not an ADT Queue operation as presented by the author?
a. test if queue is empty
b. add new entry to back of queue
c. add new entry to front of queue
d. get entry that was added earliest to the queue
7. Which of the following ADT Queue operators does not have return type specified as bool?
a. isEmpty
b. dequeue
c. peekFront
d. enqueue
8. Which of the following ADT Queue operators has a parameter?
a. isEmpty