// Object-oriented programming

Object-oriented programming Quiz

// question 1 of 10
What does __init__ return?
// question 2 of 10
What is the purpose of __init__ versus a regular method?
// question 3 of 10
What does __getitem__ define?
// question 4 of 10
What is an object in OOP?
// question 5 of 10
What is the purpose of defining __eq__ and __hash__ together?
// question 6 of 10
What is the is-a relationship in OOP?
// question 7 of 10
What keyword is used to define a class in Python?
// question 8 of 10
What is a namespace in OOP?
// question 9 of 10
What does setattr(obj, 'name', value) do?
// question 10 of 10
What is the has-a relationship in OOP?