Which of the following is example of encapsulation?
Steering wheel of the car
Car
Color of the car
Music system of the car
Protecting data from access by unauthorized function is:
Polymorphism
Encapsulation
Data abstraction
Inheritance
Which of the following is an invalid visibility label while inheriting a class?
public
private
protected
friend
You have seen a flask.When you put some ice cubes in it,it will stay for hours without melting and when you pour some hot water it will stay hot.
Name the OOP features that we can correlate with this situation.
Modularity
Data Encapsulation
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 access specifier is used as a default in a class definition?
Which of the following is not an OOP concept?
Overloading
Procedural programming
Which of the following is not a characteristic of OOP?
It emphasizes more on procedure rather than data.
It models real world
It wraps up related data items and associated function in one unit.
It follows top-down approach in program design.
Which of the following concepts provides facility of using object of one class inside another class?
Abstraction
Composition
The concept of hierarchical classification is related to:
Function overloading