81.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
    /* this is comment*
    cout << "hello world";
    return 0;
}

83.
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include<typeinfo>
using namespace std;
int main( )
{
    try
    {
        string strg1("Test");
        string strg2("ing");
        strg1.append(strg2, 4, 2);
        cout << strg1 << endl;
    }
    catch (exception &e)
    {
        cout << "Caught: " << e.what() << endl;
        cout << "Type: " << typeid(e).name() << endl;
    };
    return 0;
}

85.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
template<typename T> 
void loopIt(T x)
{
    int count = 3;
    T val[count];
    for (int ii=0; ii < count; ii++)
    {
        val[ii] = x++;
        cout <<  val[ii] << endl;
    }
};
int main()
{
    float xx = 2.1;
    loopIt(xx);
}

88.
What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
template<typename T>
void print_mydata(T output)
{
    cout << output << endl;
}
int main()
{
    double d = 5.5;
    string s("Hello World");
    print_mydata( d );
    print_mydata( s );
    return 0;
}

89.
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(char)
    {
        cout << "Catch a integer and that integer is:" << x;
    }
}
int main()
{
    cout << "Testing multiple catches\n:";
    test(10);
    test(0);
}

90.
What is a Random number generator?