31. What is another name of full specialization?
32. What will happen when a programs throws any other type of exception other than specified?
33. Pick out the correct statement about permutation.
34. What will be the output of the following C++ code?
#include <iostream>
#include <utility>
using namespace std;
int main ()
{
pair <int,int>p;
p = make_pair(1,2);
cout<<"Pair(first,second) = ("<<p.first<<","<<p.second<<")\n";
return 0;
}
#include <iostream>
#include <utility>
using namespace std;
int main ()
{
pair <int,int>p;
p = make_pair(1,2);
cout<<"Pair(first,second) = ("<<p.first<<","<<p.second<<")\n";
return 0;
}35. Which of the following(s) can be used to access the last element of a vector v?
36. What is the use of RAII in c++ programming?
37. Which function is used to check whether a character is a tab or space?
38. What can be passed by non-type template parameters during compile time?
39. What will be the output of the following C++ code?
#include <iostream>
#include <exception>
using namespace std;
class myexception: 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 myexception: 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;
}40. Which header file is required to use tuples in your program?
Read More Section(C plus plus miscellaneous)
Each Section contains maximum 100 MCQs question on C plus plus miscellaneous. To get more questions visit other sections.
- C plus plus miscellaneous - Section 1
- C plus plus miscellaneous - Section 2
- C plus plus miscellaneous - Section 3
- C plus plus miscellaneous - Section 4
- C plus plus miscellaneous - Section 6
- C plus plus miscellaneous - Section 7
- C plus plus miscellaneous - Section 8
- C plus plus miscellaneous - Section 9
- C plus plus miscellaneous - Section 10
- C plus plus miscellaneous - Section 11
