Font size
Worksheetsobject oriented programming
Total questions: 35
Worksheet time: 19mins
A single object can also be referred to as an...
Object
Singular Object
Instance
Singular
Car, Fruit, Ball & Pet are all examples of potential classes?
True
False
A dog might be an instance of the Pet class?
True
False
How many lines will this code print?
x = 10
while x > 0:
print(x)
x = x - 3
5
2
3
4
Real-world objects contain ___ and ___.
state
behavior
attributes
methods
A software object's state is stored in ___.
encapsulation
inheritance
polymorphism
fields
A software object's behavior is exposed through ___.
methods
encapsulation
abstraction
inheritance
Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data ___.
inheritance
polymorphism
abstraction
encapsulation
A blueprint for a software object is called a ___.
object
program
API
class
What are the pillars of OOP?
Inheritance
Transparency
Abstraction
Accountability
Refers to the bundling of data, along with the methods that operate on that data, into a single unit.
Inheritance
Polymorphism
Abstraction
Encapsulation
Ability for a data or message to be processed in more than one form.
Abstraction
Encapsulation
Polymorphism
Inheritance
Known as hiding of data
Logical Schema
Data Abstraction
Data Independence
Data Types
A hierarchy of classes that share a set of attributes and methods.
Abstraction
Inheritance
Encapsulation
Polymorphism
Type of programming that is based on objects rather than just functions and procedures.
Structural Programming
Logic Programming
Functional Programming
Object Oriented Programming
It is the way of thinking about software construction by creating pure functions.
Logic Programming
Functional Programming
Object Oriented Programming
Structural Programming
What are/is the reasons why we use object-oriented programming?
Scalability
Lower cost of development
Security and Reliability
All of the Above
It refers to the method of programming which consists of a completely structured control flow.
Logic programming
Functional Programming
Object Oriented Programming
Structural Programming
Is it true that the polymorphism offers a lot of flexibility in OOPs?
Yes
No
Characteristics of OOP..
Abstraction
Encapsulation
Inheritance
Polymorphism
seriously.. i am not sure with my answer :(
A ________ is blue print that defines certain characteristics and behavior. It is simply a representation of different types of objects.
Class
Object
Attribute
Characteristics
An _________ is an instance or of a copy of a class.
Class
Object
Attribute
__________ is the process of using a function for more than one purpose. It allows the use of different internal structures of the object by keeping the same external interface.
Inheritance
Polymorphism
Abstraction
Encapsulation
The extends keyword is used. This is the process of getting properties from one class to another - one way of organizing classes.
Class
Inheritance
Interface
Package
It has characteristics or attributes. The values of an object's attributes give the object a state.
Object
Class
Inheritance
Interface
The process by which objects of one class acquire the properties of objects of another class is known as
Polymorphism
Inheritance
Data Hiding
Association
Which from the following is a feature that allows us to perform a single action in different ways.
Abstraction
Polymorphism
Encapsulation
Inheritance
What is the alternative for x = x + 5?
x += 5;
x -= 4;
x = y + 5;
x=+5
