61. Which of the following is a Modifying Sequence Operation?
62. Pick out the correct statement about the override.
63. Which of the following is corect way of constructing bitset using binary string?
64. By using which operator does point to next element is represent in iterator?
65. What is the use of type() function in any container?
66. What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int var = -12;
try {
cout<<"Inside try\n";
if (var < 0)
{
throw var;
cout<<"After throw\n";
}
}
catch (int var ) {
cout<<"Exception Caught\n";
}
cout<<"After catch\n";
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int var = -12;
try {
cout<<"Inside try\n";
if (var < 0)
{
throw var;
cout<<"After throw\n";
}
}
catch (int var ) {
cout<<"Exception Caught\n";
}
cout<<"After catch\n";
return 0;
}67. What will be the output of the following C++ code?
#include <iostream>
using namespace std;
void test(int x)
{
try
{
if (x > 0)
throw x;
else
throw 'x';
}
catch(int x)
{
cout<<"integer:"<<x;
}
catch(char x)
{
cout << "character:" << x;
}
}
int main()
{
test(10);
test(0);
}
#include <iostream>
using namespace std;
void test(int x)
{
try
{
if (x > 0)
throw x;
else
throw 'x';
}
catch(int x)
{
cout<<"integer:"<<x;
}
catch(char x)
{
cout << "character:" << x;
}
}
int main()
{
test(10);
test(0);
}68. What header file is included to use array classes?
69. Which header file is required to use get() function?
70. How many iterators are needed for the defining a new 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
