Python - MCQ
Multiple Choice Questions
Python MCQ - Object-Oriented Programming in Python - Set 32
6. _____ represents an entity in the real world with its identity and behavior.
A). A method
B). An object
C). A class
D). An operator
View Answer
Correct: B
7. _____ is used to create an object.
A). class
B). constructor
C). User-defined functions
D). In-built functions
View Answer
Correct: B
8. What is Instantiation in terms of OOP terminology?
A). Deleting an instance of class
B). Modifying an instance of class
C). Copying an instance of class
D). Creating an instance of class
View Answer
Correct: D
9. The __init__() function is a _________
A). constructor
B). destructor
C). method
D). initilized method
View Answer
Correct: A
10. Is that true __init__() function automatically called when an object is created?
A). TRUE
B). FALSE
View Answer
Correct: A