qobjects = [
{
question: "Which of these is a magic method?",
options: [
"greet()",
"__init__()",
"self"
],
correct: 1
},
{
question: "Why are __init__() and __str__() called 'dunder methods'?",
options: [
"Because they start and end with double underscores",
"Because they are always duplicated",
"Because they belong to two classes at once"
],
correct: 0
},
{
question: "How do you call a magic method like __str__()?",
options: [
"By writing obj.__str__() every time",
"You don't - Python calls it automatically",
"By importing the magic module"
],
correct: 1
}
]