Which function would you use to create a 2x3 array of random integers between 0 and 10?
DS_NumPy_TEST1

Quiz
•
Computers
•
University
•
Hard
RAJU S
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
np.random.randint(0, 10, size=(2, 3))
np.random.randint(2, 3, 0, 10)
np.random.rand(0, 10, (2, 3))
np.random.random_integers(0, 10, size=(2, 3))
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does np.ones((3, 4)) do?
Creates a 3x4 array filled with ones
Creates a 4x3 array filled with ones
Creates a 3x4 identity matrix
Creates a 4x3 identity matrix
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function sorts the elements of an array in ascending order?
np.sort()
np.argsort()
np.order()
np.arrange()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you find the unique elements in a NumPy array?
np.unique()
np.distinct()
np.single()
np.nonduplicate()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to concatenate two arrays along a specified axis?
np.concatenate()
np.append()
np.join()
np.merge()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does np.transpose(arr) do to the array arr?
Rotates the array by 90 degrees
Flattens the array
Transposes the array (flips axes)
Reshapes the array
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of NumPy?
Web development
Data analysis
Scientific computing
Game development
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
S02 - Deep Learning

Quiz
•
University
12 questions
Python Quiz 1.6

Quiz
•
University
10 questions
Data Analytics using Python - Quiz 1

Quiz
•
University
10 questions
Introduction to NumPy (easy)

Quiz
•
University
17 questions
Quiz 9

Quiz
•
University
10 questions
IIP D1 - Introduction to Data Analysis

Quiz
•
University
12 questions
SAIMLDS

Quiz
•
University
9 questions
Clase 5 1C2025

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade