qobjects = [
{
question: "Consider the following code:x = 300
def myfunc():
x = 200
myfunc()
print(x)
What will be the printed result?",
options: [
"200",
"300",
"200300"
],
correct: 1
},
{
question: "Consider the following code:x = 300.",
options: [
"200",
"300",
"200300"
],
correct: 0
},
{
question: "Which statement keyword can be used for variables inside nested function?",
options: [
"
def myfunc():
global x
x = 200
myfunc()
print(x)local",
"nonglobal",
"nonlocal"
],
correct: 2
}
]