NumPy Basics Quiz

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Manjunatha M
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does NumPy stand for?
Numerical Python
Numbers in Python
Numeric Python
NumberPy
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to import NumPy?
import numpy as npy
import numpy as np
import numpy
import num as np
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a NumPy array?
np.array([1, 2, 3])
np.array{[1, 2, 3]}
np.array((1, 2, 3))
np.array[1, 2, 3]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to create an array filled with zeros?
np.empty()
np.zeros()
np.zeros_like()
np.fill()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to create an identity matrix in NumPy?
np.eye()
np.identity()
np.ones()
np.ident()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to find the shape of a NumPy array?
np.shape()
array.shape
array.size
array.dim()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the ndim attribute of a NumPy array return?
The number of elements in the array
The number of dimensions of the array
The shape of the array
The data type of the array elements
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Round2TechQuiz

Quiz
•
University
26 questions
AP COMP SCI A: CodeHS Units 6/7/8 VOCAB

Quiz
•
12th Grade
30 questions
Loops, enums,arrays,conditional statements, variables

Quiz
•
University
27 questions
Modern JavaScript Quiz

Quiz
•
12th Grade
30 questions
Server Side Scripting (PHP)

Quiz
•
12th Grade
25 questions
Week 3-4

Quiz
•
University
31 questions
Types of Research

Quiz
•
University
30 questions
Warmup - Python - Machine Learning

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade