NumPy Quiz

Quiz
•
Computers
•
Professional Development
•
Medium
Lilesh Pathe
Used 2+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is NumPy primarily used for?
Creating GUIs
File handling
Numerical computations
Web development
Game development
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function creates an array with values [0, 1, 2, 3, 4]?
np.arange(5)
np.range(5)
np.linspace(0,5)
np.array(5)
np.series(5)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create an array of all ones with shape (2,3)?
np.ones((2,3))
np.ones[2,3]
np.one((2,3))
np.full((2,3), 1.0)
Both a and d
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of np.array([1, 2, 3]) * 2?
[1, 2, 3, 1, 2, 3]
[2, 4, 6]
[1, 2, 3, 2]
[1, 4, 9]
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does np.array([1, 2, 3]).ndim return?
1
2
3
0
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will np.arange(1, 10, 2) output?
[1, 2, 3, 4, 5, 6, 7, 8, 9]
[1, 3, 5, 7, 9]
[1, 2, 4, 6, 8]
[2, 4, 6, 8, 10]
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of np.array([[1, 2], [3, 4]]).shape?
(2, 2)
2
(4,)
(2,)
(1, 4)
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Java programming

Quiz
•
Professional Development
20 questions
SPARK FIDDLE

Quiz
•
Professional Development
25 questions
COCAT - DAA

Quiz
•
University - Professi...
20 questions
Quiz 4.1

Quiz
•
Professional Development
20 questions
DAA

Quiz
•
Professional Development
20 questions
Bertelsmann AI Track Quiz Initiative #3

Quiz
•
University - Professi...
16 questions
Fundamentals II. Final de módulo

Quiz
•
Professional Development
20 questions
Java Quiz

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development