Quiz for:
Lecture on Numpy Functions

Question 1

Which parameter allows you to specify the sorting algorithm in the np.sort function?

Question 2

How can you create a numpy array from a list of lists?

Question 3

What is the result of np.sort(arr1), without specifying the axis parameter?

Question 4

What is the primary advantage of numpy's reliance on precompiled C libraries?

Question 5

Which numpy function is used to calculate the dot product of two matrices?

Question 6

In numpy, what value of the axis parameter would you use to operate column-wise?

Question 7

If arr1 has dimensions 2x3, what should be arr2's dimensions for np.dot(arr1, arr2.T) to be valid?

Question 8

What function would you use to perform a column-wise sort on a numpy array?

Question 9

How do you import numpy in a Python script?

Question 10

For memory allocation considerations in numpy, which aspect is crucial?

Question 11

When calling arr1.sum(axis=1), what operation is being performed?

Question 12

What command do you use to launch Jupyter Notebook from the Command Prompt?

Question 13

Which sorting algorithm is NOT an option for the 'kind' parameter in np.sort?

Question 14

Which function in numpy computes the cross product of two vectors?

Question 15

Which command do you use to change directories in Command Prompt?