qobjects = [
{
question: "What is an inner class in Python?",
options: [
"A class that inherits from another class",
"A class defined inside another class",
"A class with private properties"
],
correct: 1
},
{
question: "How do you create an object of an inner class from outside the outer class?",
options: [
"First create an outer class object, then use it to create the inner class object",
"Directly create the inner class object",
"Use the inner keyword"
],
correct: 0
},
{
question: "What will be the result of the following code:class Outer:",
options: [
"Error",
"Hello",
"None"
],
correct: 1
}
]
class Inner:
def display(self):
print(\"Hello\")
outer = Outer()
inner = outer.Inner()
inner.display()