Font size
WorksheetsINTRODUCTION TO OOPS
Total questions: 10
Worksheet time: 5mins
Which of the following best defines a class?
Parent of an object
Instance of an object
Blueprint of an object
Scope of an object
Pure OOP can be implemented without using class in a program. (True or False)
True
False
Which Feature of OOP illustrated the code reusability?
Polymorphism
Abstraction
Encapsulation
Inheritance
Choose the attributes of Class: time
Hours
second
get Hour
Print Time
Choose the behaviour of Class: time
Hour
Second
PrintTime
getHour
Which of the following is associated with objects?
State
Behaviour
Identity
All the above
What is it called where child object gets killed if parent object is killed?
Aggregation
Composition
Encapsulation
Association
Combining Data and Functions into a single unit is called
Abstraction
Inheritance
Encapsulation
Polymorphism
As a Vehicle user, we know how to use it but its internal working are not known. In OOPs Concept, this principle is known as
Encapsulation
Inheritance
Abstraction
Polymorphism
Advantages of OOPs
Code Reusability
Modular Programming
Easy Maintenance
Security
