
Review Ch 2
Authored by Andriansyah Andriansyah
Computers, Performing Arts
1st - 3rd Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers=list(range(1,40))
print(len(numbers))
39
40
41
42
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
test = list(range(1,10))
print(10 in test)
True
10
9
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = np.array([5,0,3,3,7,9])
print(x.ndim)
1
6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = [5, 0, 3, 3, 7, 9, 3, 5, 2, 4]
print(x1[:5])
[7 3 3 0 5]
[5 0 3 3 7]
[3 3 7 5 0]
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
x = [5, 0, 3, 3, 7, 9, 3, 5, 2, 4]
y = x1[::2]
print(y[5])
error
5
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
x = np.array([[5, 0, 3, 3], [7, 9, 3, 5], [2, 4, 7, 6]])
print(x[:2, :3])
[[5 0 3] [7 9 3]]
[[7 9 3] [5 0 3]]
[7 9 3]
[5 0 3]
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
x = np.array([[5, 9, 8, 9], [4, 3, 0, 3]])
y = x
y[2,0]=3
print(x)
[[5, 9, 8, 9], [4, 3, 0, 3]]
[[5, 9, 8, 9], [3, 3, 0, 3]]
[[3, 9, 8, 9], [4, 3, 0, 3]]
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?