21. What is the purpose of the volatile keyword in C++?
22. Which of the following is not a valid C++ standard library container?
23. What is the purpose of the const keyword in C++?
24. What does RAII stand for in C++?
25. Which class is used to design the base class?
26. What will be the output of the following C++ code?
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << numeric_limits<float> :: is_exact;
cout << numeric_limits<double> :: is_exact;
cout << numeric_limits<long int> :: is_exact;
cout << numeric_limits<unsigned char> :: is_exact;
}
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << numeric_limits<float> :: is_exact;
cout << numeric_limits<double> :: is_exact;
cout << numeric_limits<long int> :: is_exact;
cout << numeric_limits<unsigned char> :: is_exact;
}
27. Where does the abstract class is used?
28. Which is the best design choice for using pointer to member function?
29. What is an abstract class in C++?
30. Which function is used to check whether a character is punctuation mark?
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 2
- C plus plus miscellaneous - Section 3
- C plus plus miscellaneous - Section 4
- C plus plus miscellaneous - Section 5
- 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