qobjects = [
{
question: "Consider the following code:import numpy as np
arr1 = np.array([5, 2, 3])
newarr = np.prod(arr1)
What will be the result of newarr?",
options: [
"30",
"21",
"10"
],
correct: 0
},
{
question: "Consider the following code:import numpy as np
arr1 = np.array([1, 2, 3])
arr2 = np.array([4, 2, 1])
newarr = np.prod([arr1, arr2], axis=1)
What will be the result of newarr?",
options: [
"48",
"[6 8]",
"[4 4 3]"
],
correct: 1
},
{
question: "Consider the following code:import numpy as np
arr = np.array([1, 2, 3])
newarr = np.cumprod(arr)
What will be the result of newarr?",
options: [
"[1 2 6]",
"6",
"[2 3]"
],
correct: 0
}
]