Online Test

:

 

What is the output of this program?

   #include <iostream.h>
    using namespace std;
    void print(int i)
    {
        cout << i;
    }
    void print(double  f)
    {
        cout << f;
    }
    int main(void)
    {
        print(5);
        print(500.263);
        return 0;
    }

How many specifiers are present in access specifiers in class?


In C++, dynamic memory allocation is accomplished with the operator ____ 


Which of the following is false?


Given a class named Book, which of the following is not a valid constructor?


What is the output of this program?

 #include <iostream.h>
    using namespace std;
    int func(int m = 10, int n)
    {
        int c;
        c = m + n;
        return c;
    }
    int main()
    {
        cout << func(5);
        return 0;
    }

What do we need to do to pointer for overloading the subscript operator?


How many parameters are required for sort_heap function?


What will happen while using pass by reference


What is the output of this program?
 #include <iostream.h>
    using namespace std;
    void Values(int n1, int n2 = 10)
    {
        using namespace std;
        cout << "1st value: " << n1;
        cout << "2nd value: " << n2;
    }
    int main()
    {
        Values(1);
        Values(3, 4);
        return 0;
    }


What will be the output of the following program?

#include<iostream.h> 
void MyFunction(int a, int b = 40)
{
    cout<< " a = "<< a << " b = " << b << endl;
}
int main()
{
    MyFunction(20, 30);
    return 0; 
}

What is the output of this program?

     #include <iostream.h>
    using namespace std;
    #define MIN(a,b) (((a)<(b)) ? a : b)
    int main ()
    {
        float i, j;
        i = 100.1;
        j = 100.01;
        cout <<"The minimum is " << MIN(i, j) << endl;
        return 0;
    }

 Where does the exceptions are used?


The difference between x and ‘x’ is


What are mandatory parts in function declaration?

 

About Us

TechEpi.com is an online learning website.We cover the latest tech news,online tutorials,blog,online test for Aptitude,C,Java,PHP to improve your knowledge.

Newsletter


Follow TechEpi on