Numpy
Quiz
•
Engineering
•
Professional Development
•
Practice Problem
•
Medium
py thon
Used 15+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to create a NumPy array?
np.array([1, 2, 3, 4, 5])
np.object([1, 2, 3, 4, 5])
np.createArray([1, 2, 3, 4, 5])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following arrays is a two dimensional (2-D) array?
[1, 2, 3, 4, 5]
[[1, 2, 3], [4, 5, 6]]
42
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to print the first item of an array?
print(myArr,1)
print(myArr[0])
print(myArr[1])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which syntax would print every other item from the array below:
arr = np.array([1,2,3,4,5,6,7])
print(arr[1:3:5:7])
print(arr(0: step = 2))
print(arr[::2])
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to print the number 8 from the array below:
arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])
print(arr[1, 2])
print(arr[7, 2])
print(arr[3, 0])
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which syntax would print the last 4 numbers from the array below:
arr = np.array([1,2,3,4,5,6,7])
print(arr[4])
print(arr[3:])
print(arr[4:])
print(arr[:4])
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which syntax would print every other item from the array below:
arr = np.array([1,2,3,4,5,6,7])
print(arr[1:3:5:7])
print(arr(0: step = 2))
print(arr[::2])
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
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 Engineering
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
