Python - Numpy Quiz 3

Quiz
•
Computers
•
University - Professional Development
•
Medium

Max Diender
Used 16+ times
FREE Resource
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]
Similar Resources on Wayground
10 questions
C Program Array and strings

Quiz
•
University
10 questions
csharp

Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)

Quiz
•
University
5 questions
Python - Numpy Quiz 2

Quiz
•
University - Professi...
6 questions
Part1 Array

Quiz
•
University
10 questions
DAA-UNIT-4 QUIZ

Quiz
•
University
10 questions
Exploring NumPy Arrays

Quiz
•
University
10 questions
Python Podstawy

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher

Quiz
•
Professional Development
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University