51. What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int n = 15;
for ( ; ;)
cout << n;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int n = 15;
for ( ; ;)
cout << n;
return 0;
}52. Which of the following is correct about Functors?
53. What must be an operand of operator delete?
54. What will be the output of the following C++ code?
#include<iostream>
#include<any>
using namespace std;
int main()
{
float val = 5.5;
any var(val);
cout<<var.type().name()<<endl;
return 0;
}
#include<iostream>
#include<any>
using namespace std;
int main()
{
float val = 5.5;
any var(val);
cout<<var.type().name()<<endl;
return 0;
}55. How many ways are there for constructing a bitset?
56. What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string mys;
char mya[20]= "Hello world";
mys = mya;
cout << mys << '\n';
return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string mys;
char mya[20]= "Hello world";
mys = mya;
cout << mys << '\n';
return 0;
}57. In which of the following relationship objects of related classes are strongly dependent?
58. What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int i;
for (i = 0; i < 10; i++);
{
cout << i;
}
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int i;
for (i = 0; i < 10; i++);
{
cout << i;
}
return 0;
}59. What do maps and sets support?
60. Pick out the incorrect static function member in numeric limits.
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 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 11
