qobjects = [
{
question: "How do you access a property of an object?",
options: [
"Using parentheses: object(property)",
"Using brackets: object[property]",
"Using dot notation: object.property"
],
correct: 2
},
{
question: "What will be the result of the following code:class Person:",
options: [
"Hansen",
"Jackson",
"Error"
],
correct: 0
},
{
question: "Which keyword is used to delete a property from an object?",
options: [
"
lastname = \"Jackson\"
def __init__(self, name):
self.name = name
p1 = Person(\"Emil\")
p2 = Person(\"Tobias\")
Person.lastname = \"Hansen\"
print(p1.lastname)remove",
"delete",
"del"
],
correct: 2
}
]