Cpp Programming Quiz 44 – Which of the following is an abstract data type?
[B]. double[C]. string
[D]. Class
Answer: Option D
Answer: Option D
Answer: Option B
two
[C].
three
[D].
no
Answer: Option D
Explanation:
No answer description available for this question.
[A].Only 1 is correct.
[B].Only 2 is correct.[C].Both 1 and 2 are correct.
[D].Both 1 and 2 are incorrect.
Answer: Option C
[B].
[C].
[D].
Answer: Option C
Explanation:
No answer description available for this question.
#include
class BixBase
{
int x, y;
public:
BixBase(int xx = 10, int yy = 10)
{
x = xx;
y = yy;
}
void Show()
{
cout<< x * y << endl;
}
};
class BixDerived
{
private:
BixBase objBase;
public:
BixDerived(int xx, int yy) : objBase(xx, yy)
{
objBase.Show();
}
};
int main()
{
BixDerived objDev(10, 20);
return 0;
}
[A].The program will print the output 100.
[B].The program will print the output 200.
[C].The program will print the output Garbage-value.
[D].The program will report compile time error.
Answer: Option B
The program will print the output 108.
[C].
The program will print the output garbage value.
[D].
The program will report compile time error.
Answer: Option A
Explanation:
No answer description available for this question.