Which of the following is NOT true of a priority queue?

A. higher-priority items are popped before those of lower priority
B. items of equal priority are popped in LIFO order
C. items of equal priority are popped according to which item arrived first
D. higher-priority items can jump ahead of lower-priority items


Answer: B

Computer Science & Information Technology

You might also like to view...

Which of these statements concerning the systems development life cycle is true?

A) Designing the system is the first step in the SDLC. B) No phase can occur until the previous phase is completed. C) Although each phase is presented discretely, it is never accomplished as a separate step. D) There is widespread agreement that the SDLC is composed of seven phases.

Computer Science & Information Technology

_________, __________, and ____________ are called white space.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

int mystery(int list[], int first, int last){  if (first == last)     return list[first];  else     return list[first] + mystery(list, first + 1, last);} Consider the accompanying definition of the recursive function mystery. Given the declaration:int beta[10] = {2, 5, 8, 9, 13, 15, 18, 20, 23, 25};What is the output of the following statement?cout << mystery(beta, 4, 7) << endl;

A. 27 B. 33 C. 55 D. 66

Computer Science & Information Technology

By default, a browser displays an Edge Animate project in the ______________ corner of the browser window.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology