The following are statements related to queues.
(i) The last item to be added to a queue is the first item to be removed
(ii) A queue is a structure in which both ends are not used
(iii) The last element hasn’t to wait until all elements preceding it on the queue are removed
(iv)A queue is said to be a last-in-first-out list or LIFO data structure.
Which of the above is/are related to normal queues?
A queue where the delimiter -queue operation depends not on FIFO, is called a priority queue
The data of the problem is of 2GB and the hard disk is of 1GB capacity, to solve this problem we should
Consider the function X as under
int X (int& Value)
{
return Value;
} Now a and b are integers in a calling function. Which one of the following is a valid call to the above function X.
In the call by value methodology, a copy of the object is passed to the called function.
The tree data structure is a
When should you use a const reference parameter?
Here is the start of a C++ class declaration:
class foo
{
public:
void x(foo f);
void y(const foo f);
void z(foo f) const;Which of the three member functions can alter the PRIVATE member variables of the foo object that activates the function?
What is the maximum depth of recursive calls a function may make?
Suppose n is the number of nodes in a complete Binary Tree then maximum steps required for a search operation are,
In the linked list implementation of the stack class, where does the push member function places the new entry on the linked list?