For automatic objects, constructors and destructors are called each time the objects
1.enter and leave scope
2. inherit parent class
3.are constructed
4.are destroyed
Answer:1
Posted Date:-2021-02-24 02:16:11
1.constructor
2.destructor
3.assignment function
4.copy constructor
Answer 21.logical
2.virtual
3.syntax
4.linker
Answer 31.constructor
2. virtual function
3.destructor
4.main
Answer 11.Constructor is always called explicitly.
2.Constructor is called either implicitly or explicitly, whereas destructor is always called implicitly.
3.Destructor is always called explicitly.
4. Constructor and destructor functions are not called at all as they are always inline.
Answer 21.different
2.same
3.virtual
4.class
Answer 21.default constructor
2.copy constructor
3. Both A and B
4.None of these
Answer 11.Only one
2.Two
3.Three
4.Unlimited
Answer 11.Preprocessor
2.Compiler
3.Linker
4. main() function
Answer 21. destructor
2.delete
3. delete[]
4.kill[]
Answer 31.one
2.two
3.three
4.no
Answer 41.constructor
2.destructor
3.function
4.object
Answer 21. cannot overloaded
2.can be overloaded
3. can be called
4. can be nested
Answer 21.either pass-by-value or pass-by-reference
2.only pass-by-value
3.only pass-by-reference
4.only pass by address
Answer 31.Reverse order
2.Forward order
3.Depends on how the object is constructed
4. Depends on how many objects are constructed
Answer 11.!
2.?
3.~
4.$
Answer 31.are called
2.are inherited
3.are not called
4. are created
Answer 31.enter and leave scope
2. inherit parent class
3.are constructed
4.are destroyed
Answer 11.Only once
2.Twice
3.Thrice
4.Depends on the way of creation of object
Answer 11.call one-argument constructor of the class
2.work without any problem
3.call itself recursively
4.call zero-argument constructor
Answer 31.one
2.two
3.no
4.three
Answer 31.Compile-time error.
2.Preprocessing error.
3.Runtime error.
4.Runtime exception.
Answer 11.When the control comes out of the block in which they are being used.
2.When the program terminates.
3.When the control comes out of the function in which they are being used.
4.As soon as local objects die.
Answer 21.Create constructor
2.Object constructor
3.Dynamic constructor
4.Copy constructor
Answer 41.Zero-argument Constructor
2.Destructor
3.Copy Constructor
4.Copy Destructor
Answer 41.Constructor
2.Destructor
3.Data Members
4.Both A and C
Answer 41.constructor
2.destructor
3.main
4.virtual function
Answer 21.Preprocessor
2.Linker
3.Loader
4.Compiler
Answer 41.Member function
2. Friend function
3.Default constructor
4.const function
Answer 31.A constructor has a return type.
2.A constructor cannot contain a function call.
3.A constructor has no return type.
4.A constructor has a void return type.
Answer 31.A destructor has void return type.
2.A destructor has integer return type.
3.A destructor has no return type.
4.A destructors return type is always same as that of main().
Answer 31. The default constructor of the object is called.
2.The parameterized destructor is called.
3.The default destructor of the object is called.
4.None of the above.
Answer 31.A constructor of a derived class can access any public and protected member of the base class.
2.Constructor cannot be inherited but the derived class can call them.
3.A constructor of a derived class cannot access any public and protected member of the base class.
4. Both A and B.
Answer 41.Constructor has the same name as that of the class.
2.Destructor has the same name as that of the class with a tilde symbol at the beginning.
3.Both A and B.
4. Destructor has the same name as the first member function of the class.
Answer 31.Destructor destroys only integer data members of the object.
2.Destructor destroys only float data members of the object.
3. Destructor destroys only pointer data members of the object.
4.Destructor destroys the complete object.
Answer 41.A destructor has the same name as the class in which it is present.
2.A destructor has a different name than the class in which it is present.
3.A destructor always returns an integer.
4.A destructor can be overloaded.
Answer 11.A constructor has the same name as the class in which it is present.
2. A constructor has a different name than the class in which it is present.
3. A constructor always returns an integer.
4.A constructor cannot be overloaded.
Answer 11.Constructor is a member function of the class.
2.The compiler always provides a zero argument constructor.
3.It is necessary that a constructor in a class should always be public.
4. Both B and C.
Answer 41.constructor
2.copy constructor
3.destructor
4.default constructor
Answer 2