wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python with DataScience

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

Which Python Library is normally used for Data Visualization?

a)

Numpy

b)

Pandas & Matplotlib

c)

Tkinter

d)

None of the above

2.

Debug this function & find an error in code:

a)

call function with same spelling as used for defining i.e., Sum (10, 5)

b)

define function using def.

c)

delete indentation(spaces) before calling function.

d)

all of the above

3.

What will be the output?

a)
b)
c)
d)
4.

To add a title in the chart we use the function:

a)

Title("Title Of The Chart")

b)

plt.title("Title Of The Chart")

c)

Plt.Title(Title Of The Chart)

5.

How to apply label at horizontal position in any graph?

a)

plt.xlabel(“Horizontal Axis”)

b)

dataset.xlabel(“Horizontal Axis”)

c)

pd.label(“Horizontal Axis”)

6.

What is the value of x when this code executes?

a)

101

b)

99

c)

None of the above, this is an infinite loop

d)

100

7.

Complete the code to iterate the list.

a)

in range(10)

b)

in color

c)

in list

d)

all of the above

8.

What is the output of the following for loop and range() function:

a)

2, 1, 0

b)

 2, 1, 0, -1, -2, -3, -4, -5

c)

2, 1, 0, -1, -2, -3, -4

9.

Return keyword in function is?

a)

Use to exit function

b)

Use to continue a function

c)

Both option 1 and 2

10.

Continue keyword is used to?

a)

Stop the loop

b)

Start the loop

c)

Skip the current value