Python_Seires_Quiz_19.07.2023

Python_Seires_Quiz_19.07.2023

12th Grade

20 Qs

quiz-placeholder

Similar activities

Python Pandas Series

Python Pandas Series

12th Grade

18 Qs

XII Series

XII Series

12th Grade

15 Qs

SERIES1 VKL

SERIES1 VKL

12th Grade

23 Qs

Series for XII

Series for XII

12th Grade

25 Qs

Python Pandas-Series

Python Pandas-Series

12th Grade

18 Qs

PYTHON PANDAS SERIES

PYTHON PANDAS SERIES

12th Grade

20 Qs

Data Frame and Series 3

Data Frame and Series 3

12th Grade

20 Qs

Pandas Series & DataFrames

Pandas Series & DataFrames

12th Grade

20 Qs

Python_Seires_Quiz_19.07.2023

Python_Seires_Quiz_19.07.2023

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Vikas Sharma

Used 5+ times

FREE Resource

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

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?