Cpp Programming Quiz 184 – Where the default value of parameter have to be specified?
[B]. Function definition[C]. Function prototype
[D]. Both B or C
Answer: Option C
Answer: Option C
#include
class BixBase
{
public:
float x;
};
class BixDerived : public BixBase
{
public:
char ch;
void Process()
{
ch = (int)((x=12.0)/3.0);
}
void Display()
{
cout<< (int)ch;
}
};
int main()
{
class BixDerived *objDev = new BixDerived;
objDev->Process();
objDev->Display();
return 0;
}
[A].The program will print the output 4.
[B].The program will print the ASCII value of 4.
[C].The program will print the output 0.
[D].The program will print the output garbage.
Answer: Option A
[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 B
Answer: Option C
[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
A destructor has integer return type.
[C].
A destructor has no return type.
[D].
A destructors return type is always same as that of main().
Answer: Option C
Explanation:
No answer description available for this question.
Linker
[C].
Loader
[D].
Compiler
Answer: Option D
Explanation:
No answer description available for this question.