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

14. A class\'s ______ members can only be used by its own methods and friends. a

ID: 3685071 • Letter: 1

Question

14.    A class's ______ members can only be used by its own methods and friends.

a. public


b. protected


c. private


d. final

   
15.    A(n) ______ allows two modules to communicate with each other.

a. data structure


b. axiom


c. interface


d. client

   
16.    A subclass inherits all of the following members of its superclass EXCEPT ______.

a. protected methods


b. constructors and destructor


c. data fields


d. public methods

   
17.    A class template can have more than one data-type parameter.

a. True


b. False

   
18.    ______ members of a class can be used only by methods and friends of both the class and any derived class.

a. Private


b. Primitive


c. Protected


d. Public

   
19.    Which of the following declares a list of characters using a class template?

a. char <List> charList;  


b. List <char> charList;  


c. List <T> charList;  


d. List(char) <T> charList;  

   
20.    The items in the ADT list are referenced by ______.

a. name


b. value


c. position number


d. position name

Explanation / Answer

14. c. private

15. c. interface

16. b. constructors and destructor

17. a. True

18. c. Protected

19. b. List <char> charList;

20. c. position number

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