What function is used to create an array in NumPy?

Numpy Quiz 1

Quiz
•
Computers
•
University
•
Medium
Vishnuvardhan Reddy Avija
Used 6+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numpy.createArray()
numpy.makeArray()
numpy.newArray()
numpy.array()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to reshape a NumPy array?
transform
resize
reshape
adjust
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you concatenate two NumPy arrays?
Use numpy.concatenate((array1, array2), axis=0) to concatenate two NumPy arrays.
Use numpy.add(array1, array2) to concatenate two NumPy arrays.
Combine arrays with array1 + array2 for concatenation.
Use numpy.stack((array1, array2), axis=1) to concatenate two NumPy arrays.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of np.arange(5)?
[0, 1, 2, 3, 4]
[0, 1, 2, 3, 4, 5]
[0, 1, 2, 3]
[1, 2, 3, 4, 5]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function computes the mean of a NumPy array?
numpy.average
numpy.sum
numpy.mean
numpy.median
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the np.zeros() function return?
A list of empty strings.
An array filled with ones.
An array filled with zeros.
A matrix of random numbers.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you change the data type of a NumPy array?
Use the `astype()` method to change the data type of a NumPy array.
Change the data type by reassigning the array to a new variable.
Use the `convert()` function to change the data type.
Use the `change_type()` method to modify the data type.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz 12

Quiz
•
University
10 questions
Linear Algebra Using Python

Quiz
•
University
10 questions
Data Analytics and Artificial Intelligence

Quiz
•
University
12 questions
DS_NumPy_TEST1

Quiz
•
University
10 questions
Reshaping & vStack&hstack( )

Quiz
•
9th Grade - University
17 questions
PYTHON-QUIZ-2023

Quiz
•
University
17 questions
Quiz 9

Quiz
•
University
10 questions
Exploring NumPy Arrays

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade