Object Oriented Programming Using C++ - Section 2 Multiple Questions and Answers.




16.In a class, member variables are often called its _________, and its member functions are sometimes referred to as its behaviour, or ____________.
A. attributes, methods
B. attributes, activities
C. values, morals
D. data, activities

17.Which of these keywords are access specifiers?
A. near and far
B. table and row
C. private and public
D. opened and closed

18.When a class serves as base class for many derived classes, the situation is called:
A. polymorphism
B. hierarchical inheritance
C. hybrid inheritance
D. multipath inheritance

19.When two or more classes serve as base class for a derived class, the situation is known as
A. multiple inheritance
B. polymorphism
C. encapsulation
D. hierarchical inheritance

20.Multiple inheritance leaves room for a derived class to have _______ members:
A. dynamic
B. private
C. public
D. none of these

«»



Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers