qobjects = [
{
question: "What is a List method for removing list items?",
options: [
"pop()",
"push()",
"delete()"
],
correct: 0
},
{
fillintheblanks: "exercise_lists5.htm"
},
{
question: "What will be the result of the following syntax:mylist = ['apple', 'banana', 'cherry']",
options: [
"
mylist.pop(1)
print(mylist)['apple', 'banana']",
"['apple', 'cherry']",
"['banana', 'cherry']"
],
correct: 1
},
{
draganddroptext: "fruits = ['apple', 'banana', 'cherry']fruits.___",
draganddropquestion: "Select the correct function to remove all items from a list:",
options: [
"del()",
"pop()",
"clear()",
"delete()"
],
correct: [2]
}
]