Computer Science · Data Structures
Consider a circular queue of size 4 represented by an array with indices 0 to 3. What will be the positions of 'front' and 'rear' after executing the following sequence of operations? 1. Insert four elements A, B, C, and D one after the other. 2. Delete elements A and B. 3. Insert element E.
- 1front = 0, rear = 3
- 2front = 0, rear = 4
- 3front = 1, rear = 3
- 4front = 2, rear = 0✓
Correct answer
front = 2, rear = 0
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