41.
What is the use of empty() function in array classes?

44.
What will be the output of the following C++ code?
#include <iostream>
#include <map>
using namespace std;
int main ()
{
    try {
        map<char, int> mymap;
        map<char, int> :: iterator it;
        mymap['a'] = 50;
        mymap['b'] = 100;
        mymap['c'] = 150;
        mymap['d'] = 200;
        it = mymap.find('b');
        mymap.erase (it);
        mymap.erase (mymap.find('d'));
        cout << mymap.find('a') -> second << '\n';
    }
    catch (...) 
    {
        cout << "Unknown exception: " << endl;
    }
    return 0;
}

45.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
class BaseClass 
{
    public:
    virtual void myFunction()
    {
        cout << "1";
    }
};
class DerivedClass1 : public BaseClass 
{
    public:
    void myFunction()
    {
        cout << "2";
    }
};
class DerivedClass2 : public DerivedClass1 
{
    public:
    void myFunction()
    {
        cout << "3";
    }
};
int main()
{
    BaseClass *p;
    BaseClass ob;
    DerivedClass1 derivedObject1;
    DerivedClass2 derivedObject2;
    p = &ob;
    p -> myFunction();
    p = &derivedObject1;
    p -> myFunction();
    p = &derivedObject2;
    p -> myFunction();
    return 0;
}

46.
What will be the output of the following C++ code?
#include <iostream>
#include <cctype>
using namespace std;
int main(int argc, char const *argv[])
{
    char arr[12] = "H3ll0\tW0r1d";
    for(int i=0;i<12;i++)
    {
	cout<<(bool)isprint(arr[i]);
    }
}

49.
What is the correct syntax of constructing any using copy initialization?

50.
What will be the output of the following C++ code?
#include <iostream>
#include <bitset>
using namespace std;
int main()
{
	bitset<8> b1(20);
	cout<<b1.test(1);
	cout<<b1.test(2);
}