Finance Train
Menu

Python for Data Science / Practice quiz

Python NumPy

Python NumPy Quiz

4 questions

    1. If you have a NumPy array, in a variable prices, how would you access the data item at the 5th column, 2nd row?
    1. What does arrange(5) do?
    1. Let's say you have a one-dimensional array called Z. What will be the result of the expression Z = Z[::-1].
    1. Let's say you have a 3x3 matrix, X, in the form of a NumPy array. Which of the following expressions will return the 2nd element from the 3rd row?
4 left