Search Header Logo

Quiz 4.1

Authored by Mohand Mahmoud

Computers

Professional Development

Used 2+ times

Quiz 4.1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

price = 49

txt = "The price is {} dollars"

print(txt.format(price))

what is output ??

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

import numpy as np

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

print(arr)

print(type(arr))

array

tuple

list

all choices is wrong

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

import numpy as np

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

print(d.ndim)


5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

import numpy as np

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

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

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

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])

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

import numpy as np

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

print(arr[3:5])


[3 4 5]

[3:5]

[4,5]

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?