Numpy

Numpy

Professional Development

10 Qs

quiz-placeholder

Similar activities

Mastering C Programming Concepts

Mastering C Programming Concepts

Professional Development

12 Qs

Day -Wise Assessments | ATOM| SBU  | 2024-25 | Infosys Training

Day -Wise Assessments | ATOM| SBU | 2024-25 | Infosys Training

Professional Development

14 Qs

Technical Quiz

Technical Quiz

Professional Development

5 Qs

Java Networking Fundamentals

Java Networking Fundamentals

Professional Development

15 Qs

Mastering Python Programming Concepts

Mastering Python Programming Concepts

Professional Development

10 Qs

Prueba de JavaScript

Prueba de JavaScript

Professional Development

12 Qs

Numpy

Numpy

Assessment

Quiz

Engineering

Professional Development

Medium

Created by

py thon

Used 13+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to create a NumPy array?

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

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

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

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

[1, 2, 3, 4, 5]

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

42

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

print(myArr,1)

print(myArr[0])

print(myArr[1])

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which syntax would print every other item from the array below:

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

print(arr[1:3:5:7])

print(arr(0: step = 2))

print(arr[::2])

5.

MULTIPLE CHOICE QUESTION

30 sec • 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[1, 2])

print(arr[7, 2])

print(arr[3, 0])

6.

MULTIPLE CHOICE QUESTION

30 sec • 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])

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which syntax would print every other item from the array below:

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

print(arr[1:3:5:7])

print(arr(0: step = 2))

print(arr[::2])

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?