placeholder image to represent content

NumPy Technical Test

Quiz by Asheesh Sharma

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
30 questions
Show answers
  • Q1
    Which function in NumPy is used to create an array with a specified shape filled with zeros?
    numpy.arange
    numpy.ones
    numpy.zeros
    numpy.empty
    30s
  • Q2
    What does the numpy.ndarray.shape attribute return?
    The data type of the array
    The number of elements in the array
    The total size of the array in bytes
    The dimensions of the array
    30s
  • Q3
    Which method would you use to concatenate two NumPy arrays along a specified axis?
    numpy.append
    numpy.concatenate
    numpy.join
    numpy.stack
    30s
  • Q4
    In NumPy, which function would you use to compute the mean of an array?
    numpy.sum
    numpy.mean
    numpy.average
    numpy.median
    30s
  • Q5
    What is the purpose of the numpy.reshape function?
    To remove elements from an array
    To merge two arrays into one
    To sort the elements of an array
    To change the shape of an array without changing its data
    30s
  • Q6
    Which function in NumPy creates an identity matrix?
    numpy.ones_like
    numpy.identity
    numpy.eye
    numpy.zeros_like
    30s
  • Q7
    What does the numpy.linalg.inv function compute?
    The eigenvalues of a matrix
    The transpose of a matrix
    The inverse of a matrix
    The determinant of a matrix
    30s
  • Q8
    Which NumPy function is used to generate evenly spaced values within a specified range?
    numpy.linspace
    numpy.random
    numpy.spacing
    numpy.arange
    30s
  • Q9
    How can you vertically stack two NumPy arrays?
    numpy.hstack
    numpy.append
    numpy.stack
    numpy.vstack
    30s
  • Q10
    Which function is used to compute the standard deviation of a NumPy array?
    numpy.mean
    numpy.std
    numpy.max
    numpy.var
    30s
  • Q11
    Which of the following functions is used to create an identity matrix in NumPy?
    numpy.eye()
    numpy.diag()
    numpy.ident()
    numpy.identity_matrix()
    30s
  • Q12
    What function is used in NumPy to calculate the mean of an array?
    numpy.mid()
    numpy.mean()
    numpy.sum()
    numpy.average()
    30s
  • Q13
    Which method is used to concatenate two NumPy arrays?
    numpy.merge()
    numpy.add()
    numpy.concatenate()
    numpy.join()
    30s
  • Q14
    What function retrieves the unique elements of an array in NumPy?
    numpy.differentiate()
    numpy.distinct()
    numpy.unique()
    numpy.unique_elements()
    30s
  • Q15
    Which function in NumPy can be used to reshape an existing array without changing its data?
    numpy.transform()
    numpy.reshape()
    numpy.reform()
    numpy.resize()
    30s

Teachers give this quiz to your class