Worksheetspyplot in python class 12 (14/08/20)
Total questions: 20
Worksheet time: 15mins
Method used for creating a line graph
(a)
Method used to label x axis, the horizontal axis
(a)
Method used to label the y axis, the vertical axis
(a)
Method used to display the plot as per given specifications
(a)
Write statement to plot a line graph in blue color with medals in x axis and country in y axis [ matplotlib is imported as plt]
(a)
Write a statement to plot a line graph with medals in x axis and country in y axis having a line width 4(Assume matplotlib is imported as plt)
(a)
Name the argument used to change the style of the line in Aline cahrt as dashed
(a)
Data points being plotted on a chart are called
(a)
Arguments used to change the marker type, it’s size and color
(a)
Which library is used for the data visualisation in Python?
pandas
matplotlib
random
statistics
pyplot interface of matplotlib library is used to create ............... charts.
3 D
2 D
1 D
The function used to display a chart is ..............
print()
display()
show()
output()
Which function is used to create a line chart?
create()
plot()
draw()
paint()
Which one is the correct syntax to import the library for the data visualisation?
import matplotlib
import matplotlib as pyplot
import pyplot
import matplotlib.pyplot as plt
How to use numpy ?
import numpy as np
import pandas as pd
import pyplot as plt
names = np.array(["Reem" , "Salah" , "Haya" , "Maryam" , "Fatema"])
print(names([2))
Mark the right output from the below options
[ 'Haya' ]
[ 'Maryam' ]
[ 'Reem' ]
[ 'Salah' ]
names = np.array(["Reem" , "Salah" , "Haya" , "Maryam" , "Fatema"])
names[2] = "Omar"
print([names])
Mark the right output from the below options
[ "Reem" , "Salah" , "Haya" , "Maryam" , "Fatema" ]
[ "Reem" , "Salah" , "Omar" , "Maryam" , "Fatema" ]
[ "Reem" , "Haya" , "Salah" , "Maryan" , "Fatema" ]
your name
class and sec
12 a
12 b
12 d
12 a(jp)
12 f(jp)
today's date
