wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Quiz - 6

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Shape() function in Numpy array is used to

a)

None of the Mentioned

b)

Change the shape of the array

c)

Assigns the desired shape to the array

d)

Find the shape of the array

2.

what is the use of the zeros() function in Numpy array in python ?

a)

To make a Matrix with first row 0

b)

To make a Matrix with all element 0

c)

To make a Matrix with all diagonal element 0

d)

None of the above

3.

Which of the following find the maximum number in the Numpy array?

a)

max(array)

b)

array.max()

c)

array(max)

d)

None of the above

4.

Numpy in the Python provides the

a)

Function

b)

Lambda function

c)

Type casting

d)

Array

5.

How to use numpy ?

a)

import numpy as np

b)

import pandas as pd

c)

import pyplot as plt

d)

import math as np

6.

Pandas deals with following data structures

a)

Series

b)

Series and Data Frames

c)

Series, DataFrames and Panel

d)

None of Above

7.

Full form of NaN is

a)

Not a Null

b)

Not a Number

c)

Not a Numeric

d)

None of these

8.

pandas is a:

a)

Data Structure

b)

Series

c)

Dataframe

d)

Library

9.
print(df.iloc[5]) will give output
a)
first five rows
b)
0-4 rows
c)
only 5th row
d)
Error in syntax
10.

Which function from the options given below can read the dataset from a large text file?

a)

read_json

b)

read_pickle

c)

read_hdf

d)

read_csv