What does the np.array() function do?

NumPy Functions and Operations Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Muhammad Talha
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Creates a dictionary
Creates a list
Creates a multidimensional array
Creates a pandas DataFrame
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a method to create a NumPy array?
np.zeros()
np.ones()
np.arrays()
np.random.random()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default data type of a NumPy array when not specified?
int32
float64
int64
object
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which NumPy function is used to generate evenly spaced numbers over a specified range?
np.linspace()
np.arange()
np.arange_spaced()
np.range()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does arr.reshape(4, 3) do?
Flattens the array
Reshapes the array into a 4x3 matrix
Transposes the array
Adds dimensions to the array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods can be used to flatten a multidimensional NumPy array?
np.flatten()
arr.reshape(-1)
np.change()
Both B and C
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output shape of np.array([1, 2, 3, 4, 5, 6]).reshape(2, -1)? where -1 means numpy will automatically select number for you.
(2, 2)
(2, 3)
(3, 2)
(6, 1)
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
15 questions
Area With Arrays

Quiz
•
10th - 12th Grade
20 questions
CLASS_XII_SERIES_MCQ

Quiz
•
12th Grade
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
15 questions
Basic Data Structures - Intro to CS

Quiz
•
12th Grade
18 questions
ICT01: Introduction to MATLAB basics

Quiz
•
11th - 12th Grade
20 questions
Sjmit-Q2-[Workshop-MAR-25]

Quiz
•
12th Grade - University
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University