Functions

Q1: Which of the following statement is correct about the program given below?
#include<iostream.h>
void Tester(float xx, float yy = 5.0);
class AptitudeCrack
{
    float x; 
    float y; 
    public:
    void Tester(float xx, float yy = 5.0)
    {
        x = xx;
        y = yy;
        cout<< ++x % --y; 
    }
};
int main()
{
    AptitudeCrack objAptitude;
    objAptitude.Tester(5.0, 5.0);
    return 0; 
}

A The program will print the output 0.

B The program will print the output 1.

C The program will print the output 2.

D The program will print the output garbage value.

E The program will report compile time error.


img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.