NumPy Syntax Quiz

NumPy Syntax Quiz

University

25 Qs

quiz-placeholder

Similar activities

Programação Web 04

Programação Web 04

University

20 Qs

Teknologi Informasi dan Komunikasi

Teknologi Informasi dan Komunikasi

8th Grade - University

20 Qs

Uji Capaian Pembelajaran

Uji Capaian Pembelajaran

8th Grade - University

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

QUIZ BAB 4: SISTEM OPERASI

QUIZ BAB 4: SISTEM OPERASI

8th Grade - University

20 Qs

Responsi UAS PL 2021/2022

Responsi UAS PL 2021/2022

University

20 Qs

Python MCQ

Python MCQ

University

20 Qs

Microsoft Office Advandces 2016

Microsoft Office Advandces 2016

9th Grade - Professional Development

20 Qs

NumPy Syntax Quiz

NumPy Syntax Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Emily Anne

Used 2+ times

FREE Resource

AI

Enhance your content

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is a correct syntax to create a NumPy array?

np.createArray([1,2,3,4,5])

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

np.object([1,2,3,4,5])

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following arrays is a two-dimensional (2-D) array?

42

[1,2,3,4,5]

[[1,2,3],[4,5,6]]

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is a correct syntax to check the number of dimensions in an array?

arr.dim

arr.ndim

arr.dim()

arr.ndim()

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is a correct syntax to print the first item of an array?

print(myArr,1)

print(myArr[0])

print(myArr[1])

5.

MULTIPLE CHOICE QUESTION

2 mins • 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[3,0])

print(arr[7,2])

print(arr[1,2])

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is a correct syntax to print the numbers [3,4,5] from the array below: arr=np.array([1,2,3,4,5,6,7])

print(arr[2:4])

print(arr[3:6])

print(arr[2:5])

print(arr[2:6])

7.

MULTIPLE CHOICE QUESTION

2 mins • 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:])

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?