31.
What will be the output of the following C++ code?
#include<iostream>
#include<stdlib.h>
using namespace std; 
template<class T, class U, class V=double>
class A  
{
    T x;
    U y;
    V z;
};
 
int main()
{
   A<int, int> a;
   A<double, double> b;
   cout << sizeof(a) << endl;
   cout << sizeof(b) << endl;
   return 0;
}

33.
What will be the output of the following C++ code?
#include <iostream>
#include <queue>
using namespace std;
int main ()
{
    queue<int> myqueue;
    int sum (0);
    for (int i = 1; i <= 10; i++) 
        myqueue.push(i);
    while (!myqueue.empty())
    {
        sum += myqueue.front();
        myqueue.pop();
    }
    cout << sum << endl;
    return 0;
}

36.
What will be the output of the following C++ code?
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main()
{
    srand((unsigned)time(0));
    int ran;
    int low = 1, high = 10;
    int range = (high - low) + 1;
    for(int index = 0; index < 1; index++)
    {
        ran = low + int(range * rand() / (RAND_MAX + 1.0));
        cout << ran << endl;
    }
}

38.
Pick out the correct statement about multiple inheritances.