WorksheetsJAVA BASICS
Total questions: 25
Worksheet time: 14mins
Attributes of an object are also known as
methods
properties
classes
functions
Polymorphism related to :
PPO
Class
OPP
OOP
Which from the following is a feature that allows us to perform a single action in different ways.
Abstraction
Polymorphism
Encapsulation
Inheritance
The process by which objects of one class acquire the properties of objects of another class is known as
Polymorphism
Inheritance
Data Hiding
Association
Hiding complexity can also be termed as
Inheritance
Overloading
Data hiding
Abstraction
Which one is NOT the basic element of OOP?
Class
Abstraction
BlueJ
Polymorphism
Name of the Parent class of Mortgage and Current
Account
Current
Mortgage
Bank
Select ALL subclasses
Account
Current
Mortgage
Bank
+ getEndDate
+ setOverdraft
are examples of what in OOP?
Classes
Objects
Attributes / Properties
Methods
+ getAccountNumber
+ addInterest
are examples of what in OOP?
Classes
Objects
Attributes / Properties
Methods
-OpeningDate
-InterestRate
are examples of what in OOP?
Classes
Objects
Attributes / Properties
Methods
Mortgage, Current and Account
are examples of what in OOP?
Classes
Objects
Attributes / Properties
Methods
Which of the these is the functionality of ‘Encapsulation’?
Binds together code and data
Using single interface for general class of actions
Reduce Complexity
All of the mentioned
You can make changes to an object with
methods
attributes
modifiers
parameters
What keyword is used to create an object?
new
create
build
start
main
A method is...
A way of calculating things in Java
A strategy for programming
A predefined set of instructions in a class
A way to sore details in a class
