1.

What are the use of front and rear pointers in CircularQueue implementation?(a) Front pointer points to first element; rear pointer points to the last element(b) Rear pointer points to first element; front pointer points to the last element(c) Front and read pointers point to the first element(d) Front pointer points to the first element; rear pointer points to null objectThe question was asked by my school principal while I was bunking the class.Enquiry is from Data Structures-Queue in portion java.util – The Collections Framework of Java

Answer»

Right answer is (c) Front and READ POINTERS point to the first element

For EXPLANATION: CircularQueue implementation is an abstract CLASS where first and rear POINTER point to the same object.



Discussion

No Comment Found

Related InterviewSolutions