Data Analytics using Python - Quiz 1

Data Analytics using Python - Quiz 1

University

10 Qs

quiz-placeholder

Similar activities

Ayudantía #8 TICS100

Ayudantía #8 TICS100

University

10 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

Ayudantía #7 TICS100

Ayudantía #7 TICS100

University

9 Qs

Computer programming-Array

Computer programming-Array

University

10 Qs

Weekly Contest #3 - TechXNinjas

Weekly Contest #3 - TechXNinjas

University

10 Qs

Chapter 2-1: Array Part 1

Chapter 2-1: Array Part 1

University

12 Qs

NumpyPandas

NumpyPandas

University

10 Qs

Python Numpy

Python Numpy

University

11 Qs

Data Analytics using Python - Quiz 1

Data Analytics using Python - Quiz 1

Assessment

Quiz

Computers

University

Medium

Created by

Karunya Hacks

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to create a numpy array?
numpy.array([1, 2, 3, 4, 5])
[1, 2, 3, 4, 5]
array([1, 2, 3, 4, 5])
numpy.array{(1, 2, 3, 4, 5)}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of np.arange(10,201,10)?
[ 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200]
[10 100 200]
[10 10 10 10 10 10 10 10 10 10]
error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to create an array of zero’s of size 3?
np.zeros(3)
np.array(zeros(3))
array.zeros(3)
np.array.zeros(3)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code:

A1 = np.array(['Juan','Matt','Tom'])

print (A1[0])

print (A1[-2])

print (A1[-0])

Juan Matt Juan

Juan Tom Tom

Error

Tom Matt Juan

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code:

students = np.array([['Alice','Beth','Cathy','Dorothy'] , [65,78,90,81],[71,82,79,92]])

students[...,1]

array(['Beth', '78', '82'], dtype='<U21')

['Alice','Beth','Cathy','Dorothy']

[65,78,90,81],  [71,82,79,92]

error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the code:

heights = [165,170,168,183,172,169]

weights = [61,76,56,81,62,60]

student_bio = np.array([heights,weights])

student_bio.shape

(6, 2)

(2, 6)

array(2, 6)

np.array(6, 2)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the code:

a = np.array([7, 8, 9, 10, 11, 12])

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

np.copyto(j,a)

print (j)

B: [ 1 2 3 4 5 6 ]

error

[ 7  8  9 10 11 12 ]

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?