41. What will be the output of the following C++ code?
#include <iostream>
#include <bitset>
using namespace std;
int main()
{
bitset<8> b1(15);
cout<<b1;
}
#include <iostream>
#include <bitset>
using namespace std;
int main()
{
bitset<8> b1(15);
cout<<b1;
}42. How many types of comments are there in c++?
43. What will be the output of the following C++ code?
#include <iostream>
#include <array>
using namespace std;
int main(int argc, char const *argv[])
{
array<int,5> arr1;
arr1.fill(5);
cout<<get<5>(arr1);
return 0;
}
#include <iostream>
#include <array>
using namespace std;
int main(int argc, char const *argv[])
{
array<int,5> arr1;
arr1.fill(5);
cout<<get<5>(arr1);
return 0;
}44. What is subtract_with_carry_engine?
45. What is the difference between normal function and template function?
46. Which type of program is recommended to include in try block?
47. How many types of guarantees are there in exception class can have?
48. Which of the following(s) can be used to access the first element of a vector v?
49. Composition is also a type of . . . . . . . . relationship.
50. How many instances are allowed by map and set while inserting an element into container?
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
