qobjects = [
{
question: "There are two methods that you have to implement when you create an iterator, which two?",
options: [
"__iter__() and __next__()",
"__next__() and __prev__()",
"__init__() and __end__()"
],
correct: 0
},
{
question: "Which statement can be used to stop the iteration?",
options: [
"break",
"stop",
"StopIteration"
],
correct: 2
},
{
question: "True or False. Lists, tuples, dictionaries, and sets are all iterable objects.",
options: [
"True",
"False"
],
correct: 0
}
]