An abstract class is which of the following?
A class that has direct instances, but whose descendants may have direct instances.
A class that has no direct instances, but whose descendants may have direct instances.
A class that has direct instances, but whose descendants may not have direct instances
A class that has no direct instances, but whose descendants may not have direct instances
Which of the following is correct about function overloading?
The types of arguments are different.
The order of argument is different.
The number of argument is same.
Both 1 and 2.
Which of the following is example of encapsulation?
Steering wheel of the car
Car
Color of the car
Music system of the car
Which of the following is an invalid visibility label while inheriting a class?
Public
Private
Protected
Friend
While doing transactions in an ATM counter, the account holder can check his balance, withdraw cash, deposit etc. He is not aware of the background processes like interest calculation, transaction that takes place in bank etc. Name the OOP feature that you can correlate with the above situation.
Data Encapsulation
Data Abstraction
Inheritance
Modularity
Which of the following access specifier is used as a default in a class definition?
Which of the following programming approach used functions as a key concept to perform action-oriented tasks?
Structured programming
Modular programming
Procedure-oriented programming
Object-oriented programming
The concept of hierarchical classification is related to:
Abstraction
Function overloading
Which of the following is an abstract data type?
Int
Double
String
Class
How many types of polymorphisms are supported by C++?
1
2
3
4