Consider the following statements.
(i)A binary tree can contain at least 2L Nodes at level L.
(ii) A complete binary tree of depth d is a binary tree that contains 2L Nodes at each level L between 0 and d, both inclusive.
(iii) The total number of nodes (Tn ) in a complete binary tree of depth d is 2 d+1 - 1 .
(iv) The height of the complete binary tree can be written as h = log 2 (Tn+1)-1 where Tn is Total number of Nodes.
Which one of the following is correct in respect of the above statements regarding the Binary trees?
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?