Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

pyplot in python class 12 (14/08/20)

Total questions: 20

Worksheet time: 15mins

Name
Class
Date
1.

Method used for creating a line graph

(a)  

2.

Method used to label x axis, the horizontal axis

(a)  

3.

Method used to label the y axis, the vertical axis

(a)  

4.

Method used to display the plot as per given specifications

(a)  

5.

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)  

6.

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)  

7.

Name the argument used to change the style of the line in Aline cahrt as dashed

(a)  

8.

Data points being plotted on a chart are called

(a)  

9.

Arguments used to change the marker type, it’s size and color

(a)  

10.

Which library is used for the data visualisation in Python?

a)

pandas

b)

matplotlib

c)

random

d)

statistics

11.

pyplot interface of matplotlib library is used to create ............... charts.

a)

3 D

b)

2 D

c)

1 D

12.

The function used to display a chart is ..............

a)

print()

b)

display()

c)

show()

d)

output()

13.

Which function is used to create a line chart?

a)

create()

b)

plot()

c)

draw()

d)

paint()

14.

Which one is the correct syntax to import the library for the data visualisation?

a)

import matplotlib

b)

import matplotlib as pyplot

c)

import pyplot

d)

import matplotlib.pyplot as plt

15.

How to use numpy ?

a)

import numpy as np

b)

import pandas as pd

c)

import pyplot as plt

16.

names = np.array(["Reem" , "Salah" , "Haya" , "Maryam" , "Fatema"])

print(names([2))

Mark the right output from the below options

a)

[ 'Haya' ]

b)

[ 'Maryam' ]

c)

[ 'Reem' ]

d)

[ 'Salah' ]

17.

names = np.array(["Reem" , "Salah" , "Haya" , "Maryam" , "Fatema"])

names[2] = "Omar"

print([names])

Mark the right output from the below options

a)

[ "Reem" , "Salah" , "Haya" , "Maryam" , "Fatema" ]

b)

[ "Reem" , "Salah" , "Omar" , "Maryam" , "Fatema" ]

c)

[ "Reem" , "Haya" , "Salah" , "Maryan" , "Fatema" ]

18.

your name

4 lines
19.

class and sec

a)

12 a

b)

12 b

c)

12 d

d)

12 a(jp)

e)

12 f(jp)

20.

today's date

4 lines