Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 1. 1. (TCO 4) If the derived class classD overrides a public member fun

ID: 3558616 • Letter: Q

Question

Question 1.1. (TCO 4) If the derived class classD overrides a public member function, functionName, of the base class classB, then to specify a call to that public member function of the base class, you use the ____ statement. (Points : 4)        classD::functionName();
       classB::functionName();
       classD.functionName();
       classB.functionName(); Question 2.2. (TCO 4) Consider the following class definition.

class dClass: bClass
{
//class members list
};

The class dClass is derived from the class bClass using the ____ type of inheritance. (Points : 4)        public
       private
       protected
       static Question 3.3. (TCO 4) Which one of the following statements is a correct example of inheritance? (Points : 4)        An automobile has an engine.
       An automobile is a mustang.
       A mustang is an automobile.
       An engine is part of an automobile. Question 4.4. (TCO 4) C++ supports _____. (Points : 4)        both single and multiple inheritance
       only single inheritance
       only multiple inheritance
       neither single nor multiple inheritance Question 5.5. (TCO 4) Single inheritance means _____. (Points : 4)        that the derived class is derived from a single base class
       that only multiple classes can be derived from the given base class
       that only one base class can be derived
       Single inheritance is not possible in C++. Question 6.6. (TCO 4) The private members of a base class can _____. (Points : 4)        never be accessed by a derived class
       be directly and indirectly accessed by a derived class
       be indirectly accessed by a derived class
       be directly accessed by a derived class Question 7.7. (TCO 4) To overload a member function of the base class, _____. (Points : 4)        the name of the function and the formal parameter list of the corresponding function in the derived class must be same
       the name of the function must be different, and the formal parameter list of the corresponding function in the derived class must be same
       the name of the function and the formal parameter list of the corresponding function in the derived class must be different
       the name of the function must be the same, and the formal parameter list of the corresponding function in the derived class must be different Question 8.8. (TCO 4) The constructors of a derived class _____. (Points : 4)        cannot directly initialize private members that are inherited from the base class
       can directly initialize any members that are inherited from the base class
       cannot directly initialize public members that are inherited from the base class
       can directly initialize private member functions that are inherited from the base class Question 9.9. (TCO 4) The existing classes, from which you create new classes, are called the ____ classes. (Points : 4)        child
       base
       sibling
       derived Question 10.10. (TCO 4) If inheritance is private, then _____. (Points : 4)        the public and protected members of the base class become private members of the derived class
       all the private members of the base class become public members of the derived class
       the protected members of the base class become public members of the derived class
       none of the members of the base class become members of the derived class Question 11.11. (TCO 7) Which term designates the ability to combine data and operations on that data in a single unit? (Points : 4)        Inheritance
       Encapsulation
       Polymorphism
       Composition. Question 12.12. (TCO 7) Overriding a base-class member function with a derived member function demonstrates the concept of _____. (Points : 4)        overloading
       inheritance
       polymorphism
       abstraction Question 13.13. (TCO 7) Which of the following are effective tools for managing software complexity? (Points : 4)        Dynamic and static binding
       Inheritance and polymorphism
       Encapsulation and instantiation
       Simulation and debugging Question 14.14. (TCO 7) The literal definition of polymorphism is _____. (Points : 4)        many forms
       flexible morphing
       plastic or flexible composition
       many objects from one class Question 15.15. (TCO 7) Any child class function with the same name and argument list as the parent class does what to the parent function? (Points : 4)        Overloads
       Specializes
       Generalizes
       Overides Question 16.16. (TCO 8) Which preprocessor directive essentially inserts another file into your source file? (Points : 4)        ifndef
       define
       include
       fstream Question 17.17. (TCO 8) What is a preprocessor directive? (Points : 4)        An instruction to the preprocessor
       An instruction to the linker
       An instruction to the debugger
       An instruction to the compiler Question 1.1. (TCO 4) If the derived class classD overrides a public member function, functionName, of the base class classB, then to specify a call to that public member function of the base class, you use the ____ statement. (Points : 4)        classD::functionName();
       classB::functionName();
       classD.functionName();
       classB.functionName();

Explanation / Answer

1)classB::functionName();
2)private
3)A mustang is an automobile
4)both single and multiple inheritance
5)that the derived class is derived from a single base class
6)be indirectly accessed by a derived class
(by calling a method of base class which can access private variables)
7)the name of the function must be the same, and the formal parameter list of the corresponding function in the derived class must be different
8)cannot directly initialize private members that are inherited from the base class
9)base
10)the public and protected members of the base class become private members of the derived class
11)Encapsulation
12)polymorphism
13)Encapsulation and instantiation
14)many forms
15)Overides
16)include
17)An instruction to the preprocessor

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote