Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

ISRO | ISRO CS 2014 | Question 36

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Consider a standard Circular Queue ‘q’ implementation (which has the same condition for Queue Full and Queue Empty) whose size is 11 and the elements of the queue are q[0], q[1], q[2]…..,q[10].
The front and rear pointers are initialized to point at q[2] . In which position will the ninth element be added?
(A) q[0]
(B) q[1]
(C) q[9]
(D) q[10]


Answer: (A)

Explanation: Circular queue whose total size is 11, front and rear pointers are initialized to point at q[2]:

333

Therefore, 9th element will be added at pointer q[0].

So, option (A) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 16 May, 2018
Like Article
Save Article
Similar Reads