
Quiz8
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Moirangthem Sonia
Used 1+ times
FREE Resource
Enhance your content in a minute
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
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
20 questions
CPA JYSS 2018 Prelims Paper 1
Quiz
•
7th Grade - Professio...
20 questions
Chapter 3 : Flowchart & Pseudocode
Quiz
•
Professional Development
20 questions
Redes de Computadores II - Protocolo Ethernet
Quiz
•
Professional Development
25 questions
7 ÔT Giữa Hk 1 tin học 7 23 - 24
Quiz
•
Professional Development
20 questions
Révision HTML, CSS et JavaScript
Quiz
•
Professional Development
18 questions
Systemy operacyjne
Quiz
•
8th Grade - Professio...
20 questions
Module 2 Review
Quiz
•
Professional Development
20 questions
the truth table - boolean logic (python - lpthw)
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
