qobjects = [
{
question: "To create a ufunc, you have to add it to the ufunc library using a specific function, what function?",
options: [
"frompyfunc()",
"topyfunc()",
"withpyfunc()"
],
correct: 0
},
{
question: "How many arguments does the frompyfunc() function take?",
options: [
"3",
"4",
"5"
],
correct: 0
},
{
question: "What is a correct way to check if a function is a ufunc or not?",
options: [
"if type(np.add) == np.ufunc:",
"
print('add is ufunc')if np.add isufunc():",
"
print('add is ufunc')if add.type == np.ufunc:"
],
correct: 0
}
]
print('add is ufunc')