What is the output of the following code?queueType queue;int x, y;x = 2;y = 3;queue.addQueue(x);queue.addQueue(y);x = queue.front();queue.deleteQueue();queue.addQueue(x + 2);queue.addQueue(x);queue.addQueue(y - 3);y = queue.front();queue.deleteQueue();cout << "x = " << x << endl;cout << "y = " << y << endl;

A. x = 2
y = 4
B. x = 4
y = 3
C. x = 2
y = 3
D. x = 3
y = 2

Answer: C

Computer Science & Information Technology

You might also like to view...

A WCF web service in Visual Studio 2012 Express for Web consists of ________.

a) a code-behind file b) a Web.config file c) an SVC file d) All of the above

Computer Science & Information Technology

Case-Based Critical Thinking QuestionsCase 6-1With your help, Philip has constructed the initial version of a Flash Web site for Snail's Pace Construction. He now needs to add some pages with interactive elements, including a page that will allow potential clients to submit information about projects that they would like Snail's Pace Construction to complete. Philip asks you for help in learning some of the basics of ActionScript 3.0. You tell Philip that adding a preloader to a Flash file requires ActionScript code along with a loading message and/or an animation placed in the first frame of the ____.

A. Components panel B. Actions panel C. Stage D. Timeline

Computer Science & Information Technology