WorksheetsINTRODUCTION TO OOP TECHNIQUE
Total questions: 15
Worksheet time: 8mins
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
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
Apple is a derivation of the Fruit class?
True
False
“Write once and use it multiple time” can be achieved by
(A) redundancy
(B) reusability
(C) modification
(D) composition
Insulation of the data from direct access by the program is called as
(A) Data hiding
(B) Encapsulation
(C) Polymorphism
(D) Abstraction
The ability of a message or function to be displayed in more than one form is ____
Data Abstraction
Inheritance
encapsulation
Polymorphism
The Object Oriented Programing has been developed to overcome the drawbacks of _____ programming.
Procedural
Modular
Functional
both a and b
Basically an object is created from a
Behaviour
Class
Characteristics
Module
The technique of building new classes (derived class) from an existing class (Base class )is called _____
Parent class
Data hiding
Inheritance
Polymorphism
The mechanism by which the data and functions are bound together into a single unit is known as
Class
Object
ENCAPSULATION
POLYMORPHISM
The term is used to describe a programming approach based on classes and objects is
(A) OOP
(B) POP
(C) ADT
(D) SOP
Which of the following is a user defined data type?
int
float
class
object
