A queue receives the following commands (in pseudo-code):

enqueue 4, 6, 8, 3, 1
dequeue three elements
enqueue 3, 1, 5, 6
dequeue two elements
What number is at the front of the queue?
a) 3
b) 4
c) 5
d) 6


a) 3

Computer Science & Information Technology

You might also like to view...

What problems do you foresee in the direct coupling between communicating entities that is implicit in remote invocation approaches? Consequently, what advantages do you anticipate from a level of decoupling as offered by space and time uncoupling? Note: you might want to revisit this answer after reading Chapters 5 and 6

What will be an ideal response?

Computer Science & Information Technology

Which one of these is not the name of a C library function?

a. printf b. sqrt c. void d. scanf e. log

Computer Science & Information Technology

How do software characteristics differ from hardware characteristics?

What will be an ideal response?

Computer Science & Information Technology

When two slides contain similar information and have the same format, _________________________ one slide and then making minor modifications to the new slide save time and increases consistency.

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

Computer Science & Information Technology