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
10 questions
Quiz sobre Arrays em JavaScript

Quiz
•
University
10 questions
Javascript - 1

Quiz
•
Professional Development
10 questions
Tes Awal Modul 1

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

Quiz
•
University
10 questions
CS1010 Lab 4

Quiz
•
University
10 questions
C++ vs Python: A Quiz Introduction

Quiz
•
11th Grade - University
10 questions
Talent Next MCQ-5 (Array)

Quiz
•
University
10 questions
C programming quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade