Search Header Logo

Python_Seires_Quiz_19.07.2023

Authored by Vikas Sharma

Computers

12th Grade

Used 5+ times

Python_Seires_Quiz_19.07.2023
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.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Write the output of the following:

import pandas as pd

S1 = pd.Series(data = range(31, 2, -6), index = [x for x in "aeiou" ])

print(S1)

a 31

e 25

i 19

o 13

u 7

dtype: int64

a 31

e 25

i 19

o 13

dtype: int64

Error

None of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

When we create a series from dictionary then the keys of dictionary become ________________

Index of the series

Value of the series

Caption of the series

None of the series

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Write the output of the following :

>>> S1=pd.Series(14, index = ['a', 'b', 'c'])

>>> print(S1)

a 14

b 14

c 14

dtype: int64

a 14

dtype: int64

Error

None of the above

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Write the output of the following:

>>> S1=pd.Series(14, 7, index = ['a', 'b', 'c'])

>>> print(S1)

a 14

b 7

c 7

dtype: int64

a 14

b 7

dtype: int64

 Error

None of the above

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Write the output of the following :

>>> S1=pd.Series([14, 7, 9] ,index = range(1, 8, 3))

>>> print(S1)

14 1

7  4

9  7

dtype: int64

1 14

4 7

7 9

dtype: int64

Error

None of the above

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many elements will be there in the series named “S1”?

>>> S1 = pd.Series(range(5))

>>> print(S1)

5

4

2

None of the above

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Fill in the blank to get the output as 3

import pandas as pnd

S1=pnd.Series([1,2,3,4], index = ['a','b','c','d'])

print(S1[___________])

‘c’

2

c

All of the above

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?