
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The instructions and conditions for quiz #3 in the cs2143-2144 data structures spring 2012 course. Students are required to identify the status of a queue based on given conditions involving the queue's flags in and out, and the flag of. The document also includes the queue class definition.
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

CS2143-2144 Data Structures Spring 2012 Quiz # 3(1 March 2012) Time 10 Minutes Max. Marks 10
Name: Reg. No: ___
For the following queue class, identify the status of queue, i.e., Empty, Full, OF will be set to 1 and OF will be set to 0 , under the following conditions: the flag OF will behave as discussed in the last class, i.e., in the start it will be 0, when in passes the size and out is not at first location, it will be 1. When in and out comes to same location it will again become 0. Is there some condition missing as per your implementation in the assignment 7? Point it out.
class queue { protected: char *p; int size; int in; int out; int OF; public: queue(int s); void input(char x); char output(); };