91.
What will be the output of the following C++ code?
#include <iostream>  
#include <algorithm> 
#include <vector> 
 
using namespace std;
 
bool IsOdd (int i) 
{ 	
	return (i%2)==1; 
}
 
int main () 
{
  vector<int> v = {4,2,10,5,1,8};
  for(int i=0;i<v.size();i++)
  	cout<<v[i]<<" ";
  cout<<endl;
  sort(v.begin(), v.end());
  for(int i=0;i<v.size();i++)
  	cout<<v[i]<<" ";
  return 0;
}

93.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
template<typename T> 
inline T square(T x)
{
    T result;
    result = x * x;
    return result;
};
int main()
{
    int i, ii;
    float x, xx;
    double y, yy;
    i = 2;
    x = 2.2;
    y = 2.2;
    ii = square(i);
    cout << i << " "  << ii << endl;
    yy = square(y);
   cout << y << " " << yy << endl;
}

95.
What are Iterators?

97.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
class Base
{
    protected:
    int a;
    public:
    Base() 
    { 
        a = 34; 
    }
    Base(int i)
    { 
       a = i; 
    }
    virtual ~Base() 
    { 
        if (a < 0)  throw a; 
    }
    virtual int getA()
    {
       if (a < 0) 
        { 
            throw a;
        }
    }
};
int main()
{
    try
    {
        Base b(-25);
        cout << endl << b.getA();
    }
    catch (int) 
    {
        cout << endl << "Illegal initialization";
    }
}