qobjects = [
{
question: "Which magic method lets you customize what happens when you use the + operator on your own objects?",
options: [
"__add__()",
"__init__()",
"__eq__()"
],
correct: 0
},
{
question: "What is this pattern called, where an operator is given custom behavior for your own class?",
options: [
"Operator overloading",
"Operator inheritance",
"Operator casting"
],
correct: 0
},
{
question: "Without __add__(), what happens if you try p1 + p2 on two custom objects?",
options: [
"Python adds their memory addresses",
"A TypeError is raised",
"Nothing happens"
],
correct: 1
}
]