
NumPy Basics Quiz

Quiz
•
Computers
•
University
•
Easy
Harshita Kanojia
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does NumPy stand for?
Number Python
Numerical Python
Numbers in Python
Numeric Python Programming
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to import NumPy?
import numpy as pnp
import numpy as np
import np as numpy
import NumPy
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main object in NumPy?
list
array
ndarray
matrix
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a 1D NumPy array?
np.array([1, 2, 3])
np.array((1, 2, 3))
np.array{1, 2, 3}
Both A and B
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output shape of np.array([[1,2],[3,4]])?
(2,)
(4,)
(2, 2)
(1, 4)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a NumPy array with 5 zeros?
np.zero(5)
np.zeros(5)
np.empty(5)
np.ones(5)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to create an array with values from 0 to 9?
np.range(10)
np.arrange(10)
np.arange(10)
np.linspace(10)
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Round 1 (Tech Utsav)

Quiz
•
University
25 questions
DSA - Q1

Quiz
•
University
20 questions
Pointers

Quiz
•
University
25 questions
NumPy Syntax Quiz

Quiz
•
University
19 questions
Python Test 2

Quiz
•
University
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
17 questions
Quiz 9

Quiz
•
University
17 questions
PYTHON-QUIZ-2023

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