Home / MCQ Bank / Computer
Computer Heaps Difficulty: Medium

Which property is common to both max-heaps and min-heaps?

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C++ code? #include <iostream> #include <deque> using namespace std; int main () { unsigned int i; deque<int> mydeque; deque<int> :: iterator it; mydeque.push_back ( 100 ); mydeque.push_back ( 200 ); mydeque.push_back ( 300 ); for (it = mydeque.begin(); it != mydeque.end(); ++it) mydeque.clear(); cout << ' ' << *it; } In C++, which access specifier allows the members of a base class to be accessible in the derived class as well as from outside the class? Which of the following is apply function in R? Which of the following global variables is used to get parameters? When exceptions are used?