
Python and NumPy Quiz

Quiz
•
Computers
•
Professional Development
•
Hard
deepasree varma
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is NumPy?
NumPy is a Python library used for numerical computing.
NumPy is a programming language.
NumPy is used for web development.
NumPy is a database management system.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to import NumPy?
import numpy as numpy
import numpy as npy
import numpy as n
import numpy as np
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a NumPy array?
numpy.create_array()
numpy.array()
numpy.array([])
numpy.make_array()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? import numpy as np arr = np.array([1, 2, 3, 4, 5]) print(arr[2])
2
3
4
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? import numpy as np arr = np.array([[1, 2, 3], [4, 5, 6]]) print(arr[1, 2])
6
5
1
2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? import numpy as np arr = np.array([[1, 2, 3], [4, 5, 6]]) print(arr[:, 1])
[1, 4]
[2, 4]
[3, 6]
[2, 5]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? import numpy as np arr = np.array([[1, 2, 3], [4, 5, 6]]) print(arr[1:, 1:])
[[1, 2, 3], [4, 5, 6]]
[[5, 6]]
[[2, 3], [5, 6]]
[[4, 5, 6]]
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Analisis Data Deforestasi (PLB)

Quiz
•
11th Grade
10 questions
NumpyPandas

Quiz
•
University
10 questions
Senz AIoT Savants - ML & C++

Quiz
•
Professional Development
9 questions
Ayudantía #7 TICS100

Quiz
•
University
15 questions
[Python For All] Quiz 5 - Numpy

Quiz
•
University
12 questions
DS_NumPy_TEST1

Quiz
•
University
9 questions
advanced storage techniques ( arrays , DataFrame)

Quiz
•
9th - 10th Grade
10 questions
NumPy

Quiz
•
9th Grade - University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Disney Characters

Quiz
•
KG
20 questions
Place Value

Quiz
•
KG - 3rd Grade
12 questions
Continents and Oceans

Quiz
•
KG - 8th Grade
20 questions
Logos

Quiz
•
KG
15 questions
Short Vowels

Quiz
•
KG - 2nd Grade
20 questions
Capitalization in sentences

Quiz
•
KG - 4th Grade
10 questions
Math 6- Warm Up #2 - 8/19

Quiz
•
KG - 12th Grade
10 questions
Nouns

Quiz
•
KG - 12th Grade