Assume that the dequeue function, called on lines 4 and 6, stores the number removed from the queue in the value variable. What will the statement on line 7 display?

Given the following code, assume the myQueue object is a queue that can hold integers and that value is an int variable.
```
1 myQueue.enqueue(0);
2 myQueue.enqueue(1);
3 myQueue.enqueue(2);
4 myQueue.dequeue(value);
5 myQueue.enqueue(3);
6 myQueue.dequeue(value);
7 cout << value << endl;
```

a. 0
b. 1
c. 2
d. 3
e. None of these


b. 1

Computer Science & Information Technology

You might also like to view...

The ReDim statement causes an array to lose its current contents unless the word ReDim is followed by the keyword

(A) CInt (B) MyBase (C) Preserve (D) Add

Computer Science & Information Technology

In many cases, FAQs (frequently asked questions) describe the particular netiquette, or web guidelines for protocol and courtesy, that exist on a particular newsgroup or site.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following is the path to the Increase or Decrease Indent button?

A. (Home tab | Clipboard group) B. (Home tab | Editing group) C. (Home tab | Alignment group) D. (Home tab | Number group)

Computer Science & Information Technology

Which of the following would not be used to build websites with interactive capabilities?

A. Active Server Pages (ASP) B. PHP (PHP: Hypertext Preprocessor) C. FORTRAN D. Java Server Pages (ISP)

Computer Science & Information Technology