WorksheetsOOP Basic Concepts
Total questions: 20
Worksheet time: 3mins
Which of the following is correct with respect to the OOP concept in Python?
Objects are real-world entities while classes are not real.
Classes are real-world entities while objects are not real.
Both objects and classes are real-world entities.
Both objects and classes are not real.
What is wrapping of data into a single unit called class called?
Abstraction
Polymorphism
Encapsulation
Inheritance
What is the process in which objects of one class can link and share some common properties from the objects of another class?
Abstraction
Inheritance
Polymorphism
Encapsulation
What is the process of using a function for more than one purpose that allows the use of different internal structures of the object by keeping the same external interface?
Inheritance
Polymorphism
Abstraction
Encapsulation
Choose the Object oriented programming languages from the following:
Turing
Java
Pascal
Python
What is an instance of or a copy of a class?
Class
Object
Attribute
Interface
What is blue print that defines certain characteristics and behavior that is simply a representation of different types of objects?
Class
Object
Attribute
Characteristics
What allows us to consider complex ideas while ignoring irrelevant detail that could confuse us?
Abstraction
Encapsulation
Inheritance
Polymorphism
Which one(s) is/are an object?
public class Rectangle
Student ada = new Student();
Rectangle rect = new Rectangle(10, 3);
ada.reName();
What is move in the following:
p1.move(2,4);
Class
Object
Method
Instance
You can instantiate an object more than once?
True
False
Car, Fruit, Ball & Pet are all examples of potential classes?
True
False
Which of the following might be identified as properties of the Car Class?
Colour
Blue
No. of Doors
No. of Wheels
A dog might be an instance of the Pet class?
True
False
Can dog also be a class?
Yes
No
What is instantiation in python?
The creation of an instance of a class.
The transfer of the characteristics of a class to other classes that are derived from it.
A variable that is defined inside a method and belongs only to the current instance of a class.
A unique instance of a data structure that's defined by its class. An object comprises both data members (class variables and instance variables) and methods.
What is a method in python?
a way of doing something
a special kind of function that is defined in a class definition
the creation of an instance of a class
orderliness of thought or behavior; systematic planning or action
