
Python and NumPy Quiz
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
deepasree varma
Used 2+ times
FREE Resource
Enhance your content in a minute
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]]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
TO/INF/GP-1
Quiz
•
9th Grade - University
10 questions
PYTHON_CHAPTER 2
Quiz
•
University
14 questions
Evaluativo Nº 3 (10/09/2024)
Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
12 questions
Python dasar
Quiz
•
1st Grade
10 questions
Data Science 2
Quiz
•
12th Grade
10 questions
แบบทดสอบ
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
4 questions
Conflict Resolution
Lesson
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
24 questions
CKLA Unit 5 assessment K
Quiz
•
KG
10 questions
STAAR Review - Editing & Revising Clusters
Quiz
•
KG
10 questions
Reflexive Pronouns
Quiz
•
KG - 5th Grade
10 questions
Long i- igh, ie, and y Quiz
Quiz
•
KG - 3rd Grade
12 questions
Quarter Past, Half Past, and Quarter To
Quiz
•
KG - 12th Grade
