Multiple Choice
What is the output of the following code? queueType<int> 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
Correct Answer:

Verified
Correct Answer:
Verified
Q8: Popping an element from an empty stack
Q17: The bottom element of the stack is
Q18: To describe a queuing system,we use the
Q20: What is the output of the following
Q21: What is the output of the following
Q24: In the linked implementation of stacks,the stack
Q26: In a queuing system,we use a(n)_ variable
Q28: The postfix expression 2 4 6 *
Q28: When describing a queuing system,we use the
Q29: In the array representation of a stack,