Season 5 #Spaic Python Weekly Quiz

Quiz
•
Computers, Other
•
KG - Professional Development
•
Medium
ouhammouch hanane
Used 15+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to create an array using Numpy for this list (np.nan as the first element, and the next element are integers from 2 to 5)
array(np.nan,2,3,4,5)
array([np.nan,2,3,4,5])
np.array([np.nan,2,3,4,5])
All the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To create c copy of an array a = np.array([0, 1])
in Numpy
c = a
c = a.copy()
All the above
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How to create an array using Numpy for a list from 0 to 4
arr=np.array([0,1,2,3,4])
arr = np.arange(5)
arr = np.arange(0, 5, 1)
arr=np.array(0,1,2,3,4)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to specifie the number of element to return in an array using NumPy
np.linspace(a, b, num=c)
np.array(a, b, num=c)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To transpose the value of an array in Numpy (arr = np.arange(8)) we can use (transposed = np.transpose(arr))
True
False
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How to create an array of 5 elements, all of which are 0/1 in Numpy
np.zeros(5) / np.ones(5)
np.array([0,0,0,0,0] )/ np.array([1,1,1,1,1])
np.arange(0)/np.arange(1)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the arange function do in Numpy?
Returns a 1-D array of numbers based on a a given range and interval
Returns a random array
Squares each value of an array
Returns the largest element of an array
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
DATA STRUCTURES QUIZ

Quiz
•
University
20 questions
РЭУ тест по Python

Quiz
•
University
20 questions
Numpy

Quiz
•
University
15 questions
Python Quiz

Quiz
•
University
20 questions
APCS A - Array 6.1,6.2,6.3,6.

Quiz
•
9th - 12th Grade
20 questions
Quiz8

Quiz
•
Professional Development
16 questions
Final Assessment

Quiz
•
Professional Development
15 questions
Area and Arrays

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
12 questions
3-5 Digital Citizenship: Appropriate Use

Quiz
•
3rd - 5th Grade
10 questions
Keyboard Typing

Quiz
•
4th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade