wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

pandas, matplotlib, validation

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

The most popular data visualization library in python is _______.

a)

pip

b)

matinfolib

c)

matplotlib

d)

matpiplib

2.

Which of the following methods should be employed in the code to display a plot?

a)

Display()

b)

Show()

c)

Execute()

d)

Plot()

3.

Which Python Package is used for 2D graphics?

a)

matplotlib.pyplot

b)

matplotlib.pip

c)

matplotlib.numpy

d)

matplotlib.plt

4.

Pandas deals with following data structures

a)

Series

b)

Series and Data Frames

c)

Series, DataFrames and Panel

d)

None of Above

5.

DataFrame in pandas is

a)

1. dimensional array

b)

2. dimensional array

c)

3.dimensional array

d)

4.None of the above

6.

Which is the correct Pandas syntax to read in a csv file and assign it to a DataFrame df?

a)

df = read_csv('file.csv')

b)

df = read('file.csv', type = 'csv')

c)

df = pd.read_csv('file.csv')

d)

df = with open('file.csv') as pd.DataFrame

7.

Type the syntax that returns the top 5 rows in DataFrame df with the native Pandas function (not slicing):

(a)  

8.

Which type of data validation ensures that a value falls within a specific range?

a)

Input mask

b)

Range check

c)

Limited choice

d)

Presence check

9.

What type of data validation verifies that a required field is not left blank?

a)

Range check

b)

Limited choice

c)

Format check

d)

Presence check

10.

What validation type would ensure that letters have been entered instead of digits on a form?

a)

Length Check

b)

Data Type Check

c)

Presence Check