Warning
: implode(): Invalid arguments passed in
/www/wwwroot/jobquiz.info/mdiscuss.php
on line
336
The size of a derived class object is equal to the sum of sizes of data members in base class and the derived class. ?->(Show Answer!)
Toggle navigation
Home
KPSC Previous Question Papers
Article Category
kerala psc
upsc
General
Popular Pages
Multiple Choice Question in കറന്റ് അഫയേഴ്സ് മേയ് 11
Multiple Choice Question in കറന്റ് അഫയേഴ്സ് - ഏപ്രില് 07
Multiple Choice Question in കറന്റ് അഫയേഴ്സ് - ക്വിസ് | ഡിസംബര് 05 - 12
Multiple Choice Question in കറന്റ് അഫയേഴ്സ് മേയ് 26
Multiple Choice Question in current-affairs-2017-01-22
Multiple Choice Question in current-affairs-2016-12-22
Multiple Choice Question in current-affairs-2017-04-27
Multiple Choice Question in biochemistry-structure-and-properties-of-peptides
Multiple Choice Question in biochemical-engineering-fluid-flow
Multiple Choice Question in current-affairs-2017-05-07
Question Answer Bank
Multiple Choice Question Bank
Question Answer Category
Multiple Choice Question Category
Home
->
Multiple Choice Questions
Question Set
1. The size of a derived class object is equal to the sum of sizes of data members in base class and the derived class.
(A): False
(B): True
Previous Question
Show Answer
Next Question
Add Tags
Report Error
Show Marks
Ask Your Doubts Here
Type in
(Press Ctrl+g to toggle between English and the chosen language)
Post reply
Comments
Show Similar Question And Answers
QA->Average height of 10 students in a class is 150 cm. A boy of height 160 cm left the class and a boy of height 148 cm is admitted. Then what is the average height of the students in the class now?....
QA->A sum of Rs. 550 is divided among A,B and C such that of A’s share of B’s share and of C’s share may be all equal. Fiind the share of C?....
QA->A solar system object of rocky composition and comparable in size to a small city is most likely _______?....
QA->If the product of two numbers is 120 and the sum of their square is 289, then the sum of the two numbers is....
QA->A sum of money at simple interest amounts to Rs.815 in 3 years and to Rs. 854 in 4 years. The sum is....
MCQ->What will be the output of the following program? #include<iostream.h> class Base { int x, y; public: Base() { x = y = 0; } Base(int xx) { x = xx; } Base(int p, int q = 10) { x = p + q; y = q; } void Display(void) { cout<< x << " " << y << endl; } }objDefault(1, 1); class Derived: public Base { Base obj; public: Derived(int xx, int yy): Base(xx, xx + 1) { } Derived(Base objB = objDefault) { } }; int main() { Derived objD(5, 3); Derived ptrD = new Derived(objD); ptrD->Display(); delete ptrD; return 0; }....
MCQ->Which of the following statements are correct about Inheritance in C#.NET? A derived class object contains all the base class data. Inheritance cannot suppress the base class functionality. A derived class may not be able to access all the base class data. Inheritance cannot extend the base class functionality. In inheritance chain construction of object happens from base towards derived.....
MCQ->The size of a derived class object is equal to the sum of sizes of data members in base class and the derived class.....
MCQ->What will be the output of the following program? #include<iostream.h> class Base { public: int S, A, M; Base(int x, int y) { S = y - y; A = x + x; M = x x; } Base(int, int y = 'A', int z = 'B') { S = y; A = y + 1 - 1; M = z - 1; } void Display(void) { cout<< S << " " << A << " " << M << endl; } }; class Derived : public Base { int x, y, z; public: Derived(int xx = 65, int yy = 66, int zz = 67): Base(x) { x = xx; y = yy; z = zz; } void Display(int n) { if(n) Base::Display(); else cout<< x << " " << y << " " << z << endl; } }; int main() { Derived objDev; objDev.Display(-1); return 0; }....
MCQ->What will be the output of the following program? #include<iostream.h> class Base { public: char S, A, M; Base(char x, char y) { S = y - y; A = x + x; M = x x; } Base(char, char y = 'A', char z = 'B') { S = y; A = y + 1 - 1; M = z - 1; } void Display(void) { cout<< S << " " << A << " " << M << endl; } }; class Derived : public Base { char x, y, z; public: Derived(char xx = 65, char yy = 66, char zz = 65): Base(x) { x = xx; y = yy; z = zz; } void Display(int n) { if(n) Base::Display(); else cout<< x << " " << y << " " << z << endl; } }; int main() { Derived objDev; objDev.Display(0-1); return 0; }....
×
×
Type The Issue
×
Your Marks
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...
Privacy
|
Terms And Conditions
Question ANSWER With Solution