Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
A special method that is automatically called when an object is created
A method that is used to define a new object
A method that is used to create a new instance of a class
A method that is used to convert an object to a string
The process of creating a new class from an existing class
The process of deleting a class
The process of creating an object from a class
None of the above
What is the syntax to create a new instance of a class in Python?
object = ClassName()
object = new ClassName()
object = create ClassName()
object = instance ClassName()
self
new
create
They are defined inside the class but outside any method
They are shared by all instances of a class
They are accessed using the class name
To hide implementation details
To define variables in a class
To create new objects
To call methods from other classes
It is called when an object is created from a class
It is called when an object is deleted
It is used to define instance variables
They are defined inside a method
They are accessed using the instance name
cmp
eq
lt
gt
this
me
current