Self-Assessment 1 Flashcards
Which feature of OOP described the reusability of code?
D. Inheritance allows a new class to reuse the properties and methods of an existing class, promoting reusability.
Which of the following is not an OOP?
D. C is a procedural programming language, not object-oriented, unlike Java, C#, and C++.
OOP acronym for
C. Object Oriented Programming
Which feature of OOPS derives the class from another class?
A. Inheritance allows a new class (derived class) to acquire properties and methods from an existing class (base class).
Which of the following is correct about class?
D. Class data members are private by default while those of structure are public by default
Which of the following is not an access specifier?
B. Char
Which of the following OOP concept is not true for the C++ programming language?
D. C++ program must contain at least one class
What is the extra feature in classes which was not in the structures?
A. Member Functions
Which operator is used to define a member function outside the class?
D. :: (Scope Resolution Operator)
Nested member function is
B. A member function may call another member function within itself
Which of the following is syntax of C++ class member function?
B. return_type class_name :: member_function
Which among the following feature does not come under the concept of OOPS?
A. Platform independent
The combination of abstraction of the data and code is viewed in
C. Object
Object is a technique which can be viewed as an abstraction of the combination of data and code.
Which private member functions access scope?
B. Member functions which can only be used within the class.
Which syntax among the following shows that a member is private in a class?
B. private: function Name (parameters)