
Quiz8
Authored by Moirangthem Sonia
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method can reshape a flat NumPy array into a 2D multiplication table?
np.reshape()
np.flat()
np.array_split()
np.flatten()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is conditional replacement in NumPy?
Replacing all elements of an array
Replacing elements only if they meet a condition
Reshaping the array conditionally
Using np.where() to copy an array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
import numpy as np
arr = np.arange(9).reshape(3,3)
arr[arr%2==0] = -1
print(arr)
All values replaced with -1
Only even values replaced with -1
Only odd values replaced with -1
Only odd values replaced with 1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String-based formatting of NumPy arrays is useful for:
Saving arrays as CSV
Printing arrays in a custom style
Converting arrays to strings permanently
Performing matrix multiplication
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Min-max scaling transforms data values into the range:
[0, ∞)
[-1, 1]
[0, 1]
Any arbitrary range
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function can be used to sort elements in a slice of a NumPy array?
np.order()
np.sort()
np.arrange()
np.reorder()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
arr = np.array([9,3,7,1,5])
print(np.sort(arr))
what will be the output?
[9 3 7 1 5]
[1 3 5 7 9]
[5 7 9 1 3]
[1,3,5,7,9]
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
16 questions
3°TEC_PROGRAMAÇÃO MOBILE - AVALIAÇÃO 2º TRIMESTRE AV3
Quiz
•
Professional Development
16 questions
Основы языка
Quiz
•
Professional Development
15 questions
Python Skills
Quiz
•
1st Grade - Professio...
20 questions
TestNG Fundamentals
Quiz
•
Professional Development
21 questions
PC-Cuestionario5: Variables
Quiz
•
Professional Development
23 questions
SQL
Quiz
•
12th Grade - Professi...
15 questions
BrightChamps Technical Round - C language
Quiz
•
Professional Development
20 questions
Module 2 Review
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L3_22-23
Lesson
•
KG - Professional Dev...
20 questions
Employability Skills
Quiz
•
Professional Development