Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

12revision2

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following is not a valid plotting function of pyplot?

a)

line()

b)

plot()

c)

bar()

2.

Pyplots _____________ function is used to create horizontal bar chart

a)

barh()

b)

line()

c)

bar()

3.

Pyplots _________ function is used to create histogram

a)

hist()

b)

boxplot()

c)

bar()

4.

Pyplot is a sub-library of matplotlib library

a)

true

b)

false

5.

what is cumulative histogram?

a)

each bin gives the count in that bin

b)

each bin gives the count in that bin plus all bins for smaller values

6.

How do you create a cumulative histogram using pyplot?

a)

plt.hist(x,bins=30,cumulative=true)

b)

pd.hist(x,bins=30,cumulative=false)

7.

What is data visualisation?

a)

writing data randomwise

b)

displaying data in a graphical chart ,figures and bars

8.

When should you create histograms and when should you create bar charts to present data visually?

a)

histograms are used to compare variables. while bar charts are used to show distributions of variables

b)

histograms are used to show distributions of variables while bar charts are used to compare variables.

9.

write a python program, to display titles for the X-axis as "Range 1", Y-axis as "Log Range" and for the whole chart as "My Chart".

a)

plt.title("My Chart")plt.xlabel("Range 1")plt.ylabel("Log Range")

b)

plt.title("My Chart")plt.xlabel("Range 1")plt.xlabel("Log Range")

10.

import__________________________ #Statement 1

Games=["Subway Surfer","Temple Run","Candy Crush","Bottle Shot","Runner Best"]

Rating=[4.2,4.8,5.0,3.8,4.1]

plt.___________(Games,Rating) #Statement 2 plt.xlabel("Games")

plt.______________("Rating") #Statement 3 plt._______________ #Statement 4


Choose the right code from the following for statement 1

a)

matplotlib as plt

b)

pyplot as plt

c)

matplotlib.pyplot as plt

d)

matplotlib.plt as pyplot

11.

import__________________________ #Statement 1

Games=["Subway Surfer","Temple Run","Candy Crush","Bottle Shot","Runner Best"]

Rating=[4.2,4.8,5.0,3.8,4.1]

plt.___________(Games,Rating) #Statement 2 plt.xlabel("Games")

plt.______________("Rating") #Statement 3 plt._______________ #Statement 4


Choose the right code from the following for statement 2 to plot a bar graph?

a)

line()

b)

hist()

c)

bar()

d)

barh()

12.

import__________________________ #Statement 1

Games=["Subway Surfer","Temple Run","Candy Crush","Bottle Shot","Runner Best"]

Rating=[4.2,4.8,5.0,3.8,4.1]

plt.___________(Games,Rating) #Statement 2 plt.xlabel("Games")

plt.______________("Rating") #Statement 3 plt._______________ #Statement 4


Choose the correct option for the statement 3.

a)

title("Rating")

b)

ytitle("Rating")

c)

ylabel("Rating”)

d)

yaxis("Rating")

13.

import__________________________ #Statement 1

Games=["Subway Surfer","Temple Run","Candy Crush","Bottle Shot","Runner Best"]

Rating=[4.2,4.8,5.0,3.8,4.1]

plt.___________(Games,Rating) #Statement 2 plt.xlabel("Games")

plt.______________("Rating") #Statement 3 plt._______________ #Statement 4


Choose the right function/method from the following for the statement 4.

a)

display()

b)

print()

c)

show()

d)

bar()

14.

import__________________________ #Statement 1

Games=["Subway Surfer","Temple Run","Candy Crush","Bottle Shot","Runner Best"]

Rating=[4.2,4.8,5.0,3.8,4.1]

plt.___________(Games,Rating) #Statement 2 plt.xlabel("Games")

plt.______________("Rating") #Statement 3 plt._______________ #Statement 4


if we wants to change the above plot to the any other shape, which statement, should he change.

a)

Statement 1

b)

Statement 2

c)

Statement 3

d)

Statement 4

15.

Define line chart?

a)

graph that presents categorical data with rectangular bars

b)

Type of chart which displays information as a series of data points connected by straight line segments

c)

circular statistical graphics

16.

--- are the different colours that identify different sets of data that plotted on the plot

a)

x axis

b)

legends

c)

y axis

17.

CSV means

a)

comma seperated values

b)

comma sequence values

c)

comma and values

18.

---- function is used to read data from a CSV file in your dataframe

a)

write_csv()

b)

read_csv()

c)

read_to()

19.

---- function is used to store dataframes data to a CSV file.

a)

write_csv()

b)

to_csv()

c)

read_to()

20.

a CSV file can take --- character as seperator

a)

:

b)

]

c)

,

d)

:;