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
What is a correct syntax to create a NumPy array?
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 Wayground
8 questions
CPT027 Review Quiz 1

Quiz
•
University
10 questions
DAY 4 - Arrays & String Assessment _14 June 24

Quiz
•
University
10 questions
exception

Quiz
•
University
10 questions
Quiz 8: Arrays&Vector

Quiz
•
University
10 questions
Arrays

Quiz
•
11th Grade - University
10 questions
Array in C

Quiz
•
University
10 questions
Quiz 11

Quiz
•
University
10 questions
Scipy and Numpy Quiz

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade