qobjects = [
{
question: "Consider the following code:import numpy as np
arr = np.array(['a', 'b', 'c'])
x = arr[[True, False, True]]
print(x)
What will be the printed result?",
options: [
"['b']",
"['a' 'c']",
"['a' 'b' 'c']"
],
correct: 1
},
{
question: "Consider the following code:import numpy as np
arr = np.array([1, 2, 3, 4, 5, 6])
filter_arr = arr > 3
print(filter_arr)
What will be the printed result?",
options: [
"[False True]",
"[False False False True True True]",
"[4 5 6]"
],
correct: 1
},
{
question: "Consider the following code:import numpy as np
arr = np.array([7, 8, 9, 10])
filter_arr = arr > 9
newarr = arr[filter_arr]
print(newarr)
What will be the printed result?",
options: [
"[10]",
"[False False False True]",
"[False False True True]",
"[9 10]"
],
correct: 0
}
]