Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Theoretical Questions | NumPy
Data Science Interview Challenge

book
Theoretical Questions

1. What will the following code output:

2. What does the following code do:

3. How can you extract all items from a NumPy array that are greater than 5?

4. What is the result of the following:

5. If arr is a 1-dimensional NumPy array, what will arr[::2] do?

6. Which of the following will raise an error?

7. How do you calculate the dot product of two arrays a and b?

8. How do you get the unique values from a NumPy array arr?

9. Which method can be used to find the indices of non-zero elements in a NumPy array?

question mark

What will the following code output:

print(type(numpy.array([1, 2, 3])))

Select the correct answer

question mark

What does the following code do:

numpy.arange(0, 10, 2)

Select the correct answer

question mark

How can you extract all items from a NumPy array that are greater than 5?

Select the correct answer

question mark

What is the result of the following:

numpy.linspace(0, 10, 5)

Select the correct answer

question mark

If arr is a 1-dimensional NumPy array, what will arr[::2] do?

Select the correct answer

question mark

Which of the following will raise an error?

Select the correct answer

question mark

How do you calculate the dot product of two arrays a and b?

Select the correct answer

question mark

How do you get the unique values from a NumPy array arr?

Select the correct answer

question mark

Which method can be used to find the indices of non-zero elements in a NumPy array?

Select the correct answer

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 6

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt