Quiz8

Quiz8

Professional Development

20 Qs

quiz-placeholder

Similar activities

Smart Draw 8

Smart Draw 8

Professional Development

17 Qs

Quiz 2- Entrada, Saída e Variáveis

Quiz 2- Entrada, Saída e Variáveis

Professional Development

20 Qs

Sec+ CH.2 Review Test

Sec+ CH.2 Review Test

Professional Development

15 Qs

Microsoft Office Advandces 2016

Microsoft Office Advandces 2016

9th Grade - Professional Development

20 Qs

Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik

Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik

1st Grade - Professional Development

20 Qs

SIMKOM

SIMKOM

12th Grade - Professional Development

15 Qs

ICT Flipped Module 2020

ICT Flipped Module 2020

Professional Development

15 Qs

2º-DAM-Evaluación Inicial-HLC

2º-DAM-Evaluación Inicial-HLC

Professional Development

20 Qs

Quiz8

Quiz8

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Moirangthem Sonia

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method can reshape a flat NumPy array into a 2D multiplication table?

np.reshape()

np.flat()

np.array_split()

np.flatten()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is conditional replacement in NumPy?

Replacing all elements of an array

Replacing elements only if they meet a condition

Reshaping the array conditionally

Using np.where() to copy an array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output?
import numpy as np

arr = np.arange(9).reshape(3,3)

arr[arr%2==0] = -1

print(arr)

All values replaced with -1

Only even values replaced with -1

Only odd values replaced with -1

Only odd values replaced with 1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String-based formatting of NumPy arrays is useful for:

Saving arrays as CSV

Printing arrays in a custom style

Converting arrays to strings permanently

Performing matrix multiplication

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Min-max scaling transforms data values into the range:

[0, ∞)

[-1, 1]

[0, 1]

Any arbitrary range

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function can be used to sort elements in a slice of a NumPy array?

np.order()

np.sort()

np.arrange()

np.reorder()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

arr = np.array([9,3,7,1,5])

print(np.sort(arr))

what will be the output?

[9 3 7 1 5]

[1 3 5 7 9]

[5 7 9 1 3]

[1,3,5,7,9]

Create a free account and access millions of resources

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?