Search Header Logo

Quiz 9

Authored by Mohand Mahmoud

Computers

University

Used 2+ times

Quiz 9
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

import numpy as np

arr = np.array([1, 2, 3, 4, 5])

print(arr)

[1 2 3 4 5]

(1 2 3 4 5)

1 2 3 4 5

{1 2 3 4 5}

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

import numpy as np

arr = np.array([1, 2, 3, 4, 5])

print(arr)

print(type(arr))

array

list

tuple

all choices is wrong

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

import numpy as np

d = np.array([[[1, 2, 3], [4, 5, 6]], [[1, 2, 3], [4, 5, 6]]])

print(d.ndim)

0

4 X 3

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

import numpy as np

arr = np.array([[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]])

print(arr[-1, 0, -2])

2

5

8

11

5.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

import numpy as np

arr = np.array([[1,2,3,4,5], [6,7,8,9,10]])

print(arr[-2, -5] * arr[0, 0] *arr[1, 1])

5

7

30

error

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

import numpy as np

arr = np.array([1, 2, 3, 4, 5, 6, 7])

print(arr[3:5])

[3 4 5]

[3:5]

all choices is wrong

[4 5]

7.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

import numpy as np

arr = np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]])

print(arr[0:1, 1:-2])

[]

[[2 3]]

[[2 3],[7 8]]

all choices is wrong

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?