Cpp Programming 95 – How many instances of an abstract class can be created?
[B]. 5[C]. 13
[D]. 0
Answer: Option D
Answer: Option D
#include
int BixFunction(int m)
{
m *= m;
return((10)*(m /= m));
}
int main()
{
int c = 9, *d = &c, e;
int &z = e;
e = BixFunction(c-- % 3 ? ++*d :(*d *= *d));
z = z + e / 10;
cout<< c << " " << e;
return 0;
}
Answer: Option D
#include
class IndiaBix
{
int x, y;
public:
IndiaBix()
{
x = 0;
y = 0;
}
IndiaBix(int xx, int yy)
{
x = xx;
y = yy;
}
IndiaBix(IndiaBix *objB)
{
x = objB->x;
y = objB->y;
}
void Display()
{
cout<< x << " " << y;
}
};
int main()
{
IndiaBix objBix( new IndiaBix(20, 40) );
objBix.Display();
return 0;
}
[A].The program will print the output 0 0 .
[B].The program will print the output 20 40 .
[C].The program will print the output Garbage Garbage .
[D].The program will report compile time error.
Answer: Option B
Answer: Option C
destructor
[C].
function
[D].
object
Answer: Option B
Explanation:
No answer description available for this question.
The parameterized destructor is called.
[C].
The default destructor of the object is called.
[D].
None of the above.
Answer: Option C
Explanation:
No answer description available for this question.
The program will print the output Int .
[C].
The program will print the output Char .
[D].
The program will print the output Final .
Answer: Option C
Explanation:
No answer description available for this question.