What is the sum of the contents of queue2?

Given two initially empty queues, queue1 and queue2 and the following commands.
queue1.enqueue(1)
queue1.enqueue(2)
queue2.enqueue(3)
queue1.enqueue(4)
queue1.dequeue()
queueFront = queue1.peekFront()
queue1.enqueue(queueFront)
queue2.enqueue(5)
queue1.dequeue()
queue2.enqueue(7)

a. 4
b. 15
c. 19
d. none of these

b. 15

Computer Science & Information Technology

You might also like to view...

Most organizations that have trademarks attempt to protect these secrets using nondisclosure agreements (NDAs)

Indicate whether the statement is true or false.

Computer Science & Information Technology

The == symbol is referred to as the ______ operator.?

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

Computer Science & Information Technology