Once applied which of the following CANNOT inspect the applied attribute?
[A].
[B].
[C].
[D].
Answer: Option B
Explanation:
No answer description available for this question.
[B].
[C].
[D].
Answer: Option B
Explanation:
No answer description available for this question.
Data Members
[D].
Both A and C
Answer: Option D
Explanation:
No answer description available for this question.
#include
#include
class IndiaBix
{
public:
void GetData(char *s, int x, int y )
{
int i = 0;
for (i = x-1; y>0; i++)
{
cout<< s[i];
y--;
}
}
};
int main()
{
IndiaBix objBix;
objBix.GetData((char*)"Welcome!", 1, 3);
return 0;
}
[A].The program will print the output me!.
[B].The program will print the output Wel.
[C].The program will print the output !em.
[D].The program will print the output Welcome!.
Answer: Option B
Constructor is called either implicitly or explicitly, whereas destructor is always called implicitly.
[C].
Destructor is always called explicitly.
[D].
Constructor and destructor functions are not called at all as they are always inline.
Answer: Option B
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 B
destructor
[C].
assignment function
[D].
copy constructor
Answer: Option B
Explanation:
No answer description available for this question.
#include
class IndiaBix
{
int x, y;
public:
void SetValue(int &xx, int &yy)
{
x = xx++;
y = yy;
cout<< xx << " " << yy;
}
};
int main()
{
int x = 10;
int &y = x;
IndiaBix objBix;
objBix.SetValue(x , y);
return 0;
}[A].The program will print the output 10 10.
[B].The program will print the output 10 11.
[C].The program will print the output 11 10.
[D].The program will print the output 11 11.
Answer: Option D