DS_NumPy_TEST1

Quiz
•
Computers
•
University
•
Hard
RAJU S
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function would you use to create a 2x3 array of random integers between 0 and 10?
np.random.randint(0, 10, size=(2, 3))
np.random.randint(2, 3, 0, 10)
np.random.rand(0, 10, (2, 3))
np.random.random_integers(0, 10, size=(2, 3))
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does np.ones((3, 4)) do?
Creates a 3x4 array filled with ones
Creates a 4x3 array filled with ones
Creates a 3x4 identity matrix
Creates a 4x3 identity matrix
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function sorts the elements of an array in ascending order?
np.sort()
np.argsort()
np.order()
np.arrange()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you find the unique elements in a NumPy array?
np.unique()
np.distinct()
np.single()
np.nonduplicate()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to concatenate two arrays along a specified axis?
np.concatenate()
np.append()
np.join()
np.merge()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does np.transpose(arr) do to the array arr?
Rotates the array by 90 degrees
Flattens the array
Transposes the array (flips axes)
Reshapes the array
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of NumPy?
Web development
Data analysis
Scientific computing
Game development
Create a free account and access millions of resources
Similar Resources on Wayground
7 questions
1D Array

Quiz
•
University
10 questions
SOAL MODUL 4 : Pemahaman Looping dan Kondisional

Quiz
•
10th Grade - University
15 questions
Python Skills

Quiz
•
1st Grade - Professio...
15 questions
Python Workshop Day - 2

Quiz
•
University
10 questions
Array

Quiz
•
University
10 questions
TA MODUL 7 (VERSI 3)

Quiz
•
University
10 questions
NumPy

Quiz
•
9th Grade - University
10 questions
Exploring Data Visualization

Quiz
•
9th Grade - 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
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University