Practice More Questions From: Week 3 Summative Assessment

## Q:

### What is the Python keyword that allows us to use a library?

## Q:

### What are the first two arguments to the matplotlib scatter() function?

## Q:

### Jupyter Notebooks can be thought of as a data scientist’s lab workbook. True or false?

## Q:

### If I create a numpy array like this: data = [[1,2], [3,4], [5,6]] data = np.array(data) What would data[:,1] give me?

## Q:

### What is the correct syntax to retrieve [2,4,6] if I declare a numpy array like this? Select all that apply. data = [[1,2], [3,4], [5,6]] data = np.array(data)

## Q:

### If I have a two-dimensional NumPy array called data, does np.mean(data) calculate the mean along in a column-wise fashion?

## Q:

### Which of the following methods will calculate the column-wise mean of a NumPy array we have declared like this: data = [[1,2], [3,4], [5,6]] data = np.array(data) Select all that apply.

## Q:

### How do I plot multiple datasets on the same graph?

## Q:

### In the following line, why do I put two variable names in front of the function call? fig, graph = plt.subplots()

## Q:

### Which submodule does the Ellipse and other shape functionalities appear in, in matplotlib?

## Q:

### K-means assigns points to clusters by selecting the cluster with a mean closest to the point. True or False?

## Q:

### Which function can be used to compute the Euclidean distance between two points?

## Q:

### Which syntax computes the distance between two points x1 and x2, where negative values should also work? Select all that apply:

## Q:

### Briefly, what does a list comprehension do?

## Q:

### Which function is being called on all items in the list in this list comprehension? [np.sqrt(d) for d in np.ones(10)]

## Q:

### Which code normalises the first value into the range 0-1, where values are declared like this: values = [-100.0, 10.0, 57.0, 260.0]

## Q:

### How do you get a column-wise minimum using NumPy, assuming you have a two dimensional array called data?

Subscribe

0 Comments