11. Which of the following is correct about the first parameter of the main function?
12. What of the following is the equivalent statement for the functor call,
x = f(arg1, arg2);
where f is a functor and arg1 and arg2 are the arguments required by the functors?
x = f(arg1, arg2);
where f is a functor and arg1 and arg2 are the arguments required by the functors?13. Which function is used increment the iterator by a particular value?
14. What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout<<extent<remove_all_extents<string[10][20][30]>::type>::value;
return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout<<extent<remove_all_extents<string[10][20][30]>::type>::value;
return 0;
}15. What will be the output of the following C++ code?
#include <iostream>
#include <queue>
using namespace std;
int main ()
{
priority_queue<int> mypq;
mypq.push(10);
mypq.push(20);
mypq.push(15);
cout << mypq.top() << endl;
return 0;
}
#include <iostream>
#include <queue>
using namespace std;
int main ()
{
priority_queue<int> mypq;
mypq.push(10);
mypq.push(20);
mypq.push(15);
cout << mypq.top() << endl;
return 0;
}16. What is a function template?
17. What will be the output of the following C++ code?
#include <iostream>
#include <locale>
using namespace std;
int main()
{
locale mylocale("");
cout.imbue( mylocale );
cout << (double) 3.14159 << endl;
return 0;
}
#include <iostream>
#include <locale>
using namespace std;
int main()
{
locale mylocale("");
cout.imbue( mylocale );
cout << (double) 3.14159 << endl;
return 0;
}18. Which function is used to check whether a character is an alphabet or number?
19. Which function is used to check whether the vector is empty or not?
20. What is the use of adapter in STL in c++?
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 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
