1. Which is used to define the member of a class externally?
Α. :
B. ::
C. #
D. None of the mentioned
2. Which of the following is a valid class declaration?
A. class A { int x; };
B. class B { }
C. public class A{}
D. object A { int x; };
3. Constructors are used to
A. initialize the objects
B. construct the data members
C. both a & b
D. None of the mentioned
4. In linked list implementation of a queue, front and rear pointers are tracked. Which of these pointers will change during an insertion into EMPTY queue?
A. Only front pointer
B. Only rear pointer
C. Both front and rear pointer
D. None
5. An array of size MAX_SIZE is used to implement a circular queue. Front, Rear, and count are tracked. Suppose front is 0 and rear is MAX_SIZE -1. How many elements are present in the queue?
A. Zero
B. One
C. MAX SIZE-1
D. MAX SIZE