What is a correct syntax to create a NumPy array?
Python - Numpy Quiz 1

Quiz
•
Professional Development, Computers
•
University - Professional Development
•
Hard

Max Diender
Used 59+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
np.createArray([1, 2, 3, 4, 5])
np.array([1, 2, 3, 4, 5])
np.object([1, 2, 3, 4, 5])
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct syntax to print the numbers [3, 4, 5] from the array below:
arr = np.array([1,2,3,4,5,6,7])
print(arr[2:5])
print(arr[2:6])
print(arr[2:4])
print(arr[3:6])
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct syntax to return the shape of an array?
shape(arr)
arr.shape
arr.shape()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct syntax to reshape the array below into 4 arrays with 3 elements?
arr = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
newarr = arr.reshape(3, 4)
newarr = arr.shape(3, 4)
newarr = arr.reshape(4, 3)
newarr = arr.shape(4, 3)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct method to join two or more arrays?
np.join()
np.array_join()
np.concatenate()
Similar Resources on Quizizz
5 questions
Python - Numpy Quiz 3

Quiz
•
University - Professi...
10 questions
C Program Array and strings

Quiz
•
University
10 questions
RVS_Tech_quizz_even2024-25

Quiz
•
University
6 questions
Part1 Array

Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)

Quiz
•
University
10 questions
NumPy and Pandas

Quiz
•
Professional Development
10 questions
Arrays and Objects

Quiz
•
Professional Development
10 questions
Rapid Round 2

Quiz
•
University
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