Computer Science · Data Structures
Suppose a queue contains the ages of students in a class. The current elements in the queue are 10, 12, 14, 13, 11, 16, 15. What would be the contents of the queue if we perform 2 successive add(9) operations on it?
- 110, 12, 14, 13, 11, 16, 15, 9, 9✓
- 29, 9, 10, 12, 14, 13, 11, 16, 15
- 39, 10, 12, 14, 13, 11, 16, 15, 9
- 410, 12, 14, 13, 11, 9, 9
Correct answer
10, 12, 14, 13, 11, 16, 15, 9, 9
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Data Structures?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Data Structures