
Numpy
Authored by secondary purpose
Computers
University - Professional Development
Used 75+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
import numpy as np
ary = np.array([1,2,3,5,8])
ary = ary + 1
print (ary[1])
Error
1
2
3
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
import numpy as np
a = np.array([1,2,3,5,8])
b = np.array([0,3,4,2,1])
c = a + b
c = c*a
print (c[2])
7
12
21
10
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
import numpy as np
a = np.array([[1,2,3],[0,1,4]])
b = np.zeros((2,3), dtype=np.int16)
c = np.ones((2,3), dtype=np.int16)
d = a + b + c
print (d[1,2])
3
4
5
Error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
import numpy as np
a = np.array([1,2,3,4,5])
b = np.arange(0,10,2)
c = a + b
print (c[4])
Error
13
15
9
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
import numpy as np
a = np.zeros(6)
b = np.arange(0,10,2)
c = a + b
print (c[4])
Error
8
2
10
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
import numpy as np
a = np.array([[0, 1, 0], [1, 0, 1]])
a += 3
b = a + 3
print (a[1,2] + b[1,2])
7
11
6
Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
import numpy as np
a = np.array([[0, 1, 2], [3, 4, 5]])
b = a.sum(axis=1)
print (b)
3
12
[3 12]
[3 5 7]
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
10 questions
Machine Learning (Introduction)
Quiz
•
University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
ÔN CUỐI NĂM KHỐI 5
Quiz
•
Professional Development
20 questions
Network topologies
Quiz
•
8th Grade - University
10 questions
Revisão LP 2023.1
Quiz
•
Professional Development
10 questions
INTO Artificial Intelligence
Quiz
•
University - Professi...
20 questions
Software Engineering Quiz 1
Quiz
•
University
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - University
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade