
Quiz8

Quiz
•
Computers
•
Professional Development
•
Medium
Moirangthem Sonia
Used 1+ times
FREE Resource
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]
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
C-Quest

Quiz
•
Professional Development
17 questions
Java Basics

Quiz
•
Professional Development
16 questions
JavaScript ( review I )

Quiz
•
Professional Development
15 questions
Foundations II. Challenge I

Quiz
•
Professional Development
16 questions
Fundamentals II. Final de módulo

Quiz
•
Professional Development
20 questions
Quiz 4.1

Quiz
•
Professional Development
20 questions
Bertelsmann AI Track Quiz Initiative #3

Quiz
•
University - Professi...
16 questions
Final Assessment

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development