61. Which header file is used for Iterators?
62. What will be the output of the following C++ code?
#include <iostream>
#include <exception>
using namespace std;
class myexc: public exception
{
virtual const char* what() const throw()
{
return "My exception";
}
} myex;
int main ()
{
try
{
throw myex;
}
catch (exception& e)
{
cout << e.what() << endl;
}
return 0;
}
#include <iostream>
#include <exception>
using namespace std;
class myexc: public exception
{
virtual const char* what() const throw()
{
return "My exception";
}
} myex;
int main ()
{
try
{
throw myex;
}
catch (exception& e)
{
cout << e.what() << endl;
}
return 0;
}
63. What is the use of make_heap in the heap operation?
64. What will be the output of the following C++ code?
#include <stdio.h>
#include <math.h>
int main ()
{
printf ("The value of -3.1416 is %lf\n", fabs (-3.1416));
return 0;
}
#include <stdio.h>
#include <math.h>
int main ()
{
printf ("The value of -3.1416 is %lf\n", fabs (-3.1416));
return 0;
}
65. What are the predefined exceptions in c++?
66. Pick out the correct library in the following choices.
67. In how many categories, containers are divided?
68. Which header file is used to declare the standard exception?
69. Pick out the wrong header file about strings.
70. What is the type of the first item in the heap?
Read More Section(Standard Template Library (STL) in C plus plus)
Each Section contains maximum 100 MCQs question on Standard Template Library (STL) in C plus plus. To get more questions visit other sections.