CARVIEW |
Python oops
Question 1
What is the implicit return type of constructor?
No Return Type
Void
None
A class object in which it is defined
Question 2
Which of the following is associated with objects?
State
Behavior
Identity
All of these
Question 3
Under which pillar of OOPS do base class and derived class relationships come?
Polymorphism
Encapulation
Inheritance
None
Question 4
Identify the option below which is not a property of the object.
Name
Attribute
Identity
Properties
Question 5
Identify the feature which can be implemented using encapsulation.
Polymorphism
Encapsulation
Abstraction
none
Question 6
Match the following concepts and their best possible descriptions

i-b, ii-d, iii-e, iv-f, v-g, vi-a
i-c, ii-a, iii-e, iv-d, v-h, vi-f
i-c, ii-f, iii-h, iv-a, v-g, vi-d
i-b, ii-e, iii-c, iv-f, v-g, vi-h
Question 7
Which of the following is associated with objects?
State
Behaviour
Identity
All of these
Question 8
The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is:
Inheritance
Overriding
Polymorphism
none
Question 9
In Python, a class is ___________ for a concrete object.
a nuisance
a distraction
a blueprint
an instance
Question 10
class Dog:
def __init__(self, name, age):
self.name = name
self.age = age
What will be the correct python syntax for the above written code?
Dog.create("Rufus", 3)
Dog("Rufus", 3)
Dog.__init__("Rufus", 3)
Dog()
There are 12 questions to complete.