
Python - Numpy Quiz 3
Authored by Max Diender
Computers
University - Professional Development
Used 16+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would be the answer of this cummulative summation in NumPy?
arr = np.array([1,2,3])
print(np.cumsum(arr))
[1 3 6]
[6]
[3 6 9]
[9]
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct syntax to subtract the numbers from arr1 with the numbers from arr2?
np.substract(arr1, arr2)
np.min(arr1, arr2)
np.sub(arr1, arr2)
np.minus(arr1, arr2)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct method to round decimals in NumPy?
np.around()
np.trunc()
All the other 3 are rounding methods in NumPy
np.fix()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct method for getting the Natural Logarithm (Logarithm at base e)?
arr = np.arange(1, 10)
np.log(arr)
np.loge(arr)
np.natural(arr)
np.ln(arr)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the following syntax?
arr = np.array([100, 200, 50, 75])
newarr = np.diff(arr)
print(newarr)
[100 -150 25]
[-100 150 -25]
[100 25]
-100 -25]
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
10 questions
Data Analytics and Artificial Intelligence
Quiz
•
University
10 questions
DP-100 day 3
Quiz
•
University - Professi...
10 questions
Weekly Contest #10 - TechXNinjas
Quiz
•
University
10 questions
Modulo 1 Python
Quiz
•
University
10 questions
C - Programming ( Output based - Loop )
Quiz
•
Professional Development
10 questions
Java Basics
Quiz
•
University
10 questions
Introducción a Python
Quiz
•
Professional Development
10 questions
Prompt Engineering for Generative AI
Quiz
•
Professional Development
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