Which NumPy function is used to sort an array in ascending order?
Anonymous Quiz
14%
A) np.order()
17%
B) np.arrange()
63%
C) np.sort()
6%
D) np.sorted()
❤1
Which function is used to find the index of elements that match a condition?
Anonymous Quiz
22%
A) np.find()
14%
B) np.search()
16%
C) np.where()
49%
D) np.index()
❤1
Which NumPy function combines two arrays row-wise?
Anonymous Quiz
18%
A) np.hstack()
22%
B) np.vstack()
57%
C) np.concatenate()
3%
D) np.split()
❤2
What is the main difference between copy() and view() in NumPy?
Anonymous Quiz
6%
A) Both behave exactly the same.
45%
B) copy() shares data with the original array, while view() creates an independent copy.
47%
C) copy() creates an independent copy, while view() shares data with the original array.
2%
D) view() removes duplicate values.
❤1
Which NumPy function returns only the unique values from an array?
Anonymous Quiz
22%
A) np.distinct()
57%
B) np.unique()
19%
C) np.remove_duplicates()
2%
D) np.filter()
❤2