
NumPy Technical Test
Quiz by Asheesh Sharma
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
30 questions
Show answers
- Q1Which function in NumPy is used to create an array with a specified shape filled with zeros?numpy.arangenumpy.onesnumpy.zerosnumpy.empty30s
- Q2What does the numpy.ndarray.shape attribute return?The data type of the arrayThe number of elements in the arrayThe total size of the array in bytesThe dimensions of the array30s
- Q3Which method would you use to concatenate two NumPy arrays along a specified axis?numpy.appendnumpy.concatenatenumpy.joinnumpy.stack30s
- Q4In NumPy, which function would you use to compute the mean of an array?numpy.sumnumpy.meannumpy.averagenumpy.median30s
- Q5What is the purpose of the numpy.reshape function?To remove elements from an arrayTo merge two arrays into oneTo sort the elements of an arrayTo change the shape of an array without changing its data30s
- Q6Which function in NumPy creates an identity matrix?numpy.ones_likenumpy.identitynumpy.eyenumpy.zeros_like30s
- Q7What does the numpy.linalg.inv function compute?The eigenvalues of a matrixThe transpose of a matrixThe inverse of a matrixThe determinant of a matrix30s
- Q8Which NumPy function is used to generate evenly spaced values within a specified range?numpy.linspacenumpy.randomnumpy.spacingnumpy.arange30s
- Q9How can you vertically stack two NumPy arrays?numpy.hstacknumpy.appendnumpy.stacknumpy.vstack30s
- Q10Which function is used to compute the standard deviation of a NumPy array?numpy.meannumpy.stdnumpy.maxnumpy.var30s
- Q11Which of the following functions is used to create an identity matrix in NumPy?numpy.eye()numpy.diag()numpy.ident()numpy.identity_matrix()30s
- Q12What function is used in NumPy to calculate the mean of an array?numpy.mid()numpy.mean()numpy.sum()numpy.average()30s
- Q13Which method is used to concatenate two NumPy arrays?numpy.merge()numpy.add()numpy.concatenate()numpy.join()30s
- Q14What function retrieves the unique elements of an array in NumPy?numpy.differentiate()numpy.distinct()numpy.unique()numpy.unique_elements()30s
- Q15Which function in NumPy can be used to reshape an existing array without changing its data?numpy.transform()numpy.reshape()numpy.reform()numpy.resize()30s