NEW
Font size
WorksheetsObject Oriented Programming Assessment 1
Total questions: 15
Worksheet time: 7mins
Which definition best describes an object?
Instance of a class
Instance of itself
Child of a class
Overview of a class
In a class, member variables are often called its _________, and its member functions are sometimes referred to as its behaviour, or ____________.
data, activities
attributes, activities
attributes, activities
attributes, methods
An Object can be declared prior to the class definition.
False
True
Select the features of Object Oriented Programming.
Encapsulation
Polymorphism
Inheritance
Abstraction
All of the Above
How many classes can be defined in a single program?
As many as you want
Only 1
Only 100
Only 999
Which is not feature of OOP in general definitions?
Modularity
Code reusability
Duplicate/Redundant data
Efficient Code
What is the First OOP Languages?
Python
Pearl
Scala
Simula
Which of the following best defines a class?
Instance of an object
Parent of an object
Scope of an object
Blueprint of an object
Which of the following concepts of OOPS means exposing only necessary information to client?
Encapsulation
Abstraction
Data Hiding
Data Binding
These have identity, state, and behavior.
class
object
method
void
The wrapping up of data and functions into a single unit is called:
overloading
encapsulation
object
class
The process by which objects of one class acquire the properties of objects of another class is known as:
Polymorphism
Inheritance
Data Hiding
None of the above.
A single object can also be referred to as an...
Instance
Object
Singular
Singular Object
Which of the two features match each other?
Inheritance and Encapsulation
Encapsulation and Polymorphism
Encapsulation and Abstraction
Abstraction and Polymorphism
A software object's behavior is exposed through ___.
Methods
Abstraction
Inheritance
Encapsulation
