wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Reshaping & vStack&hstack( )

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

__________ is a library used to create data structures and carry out scientific calculations.

a)

Python

b)

Numpy

c)

Pycharm

d)

Bar chart

2.

How to use numpy ?

a)

import numpy as np

b)

import pandas as pd

c)

import pyplot as plt

3.

import numpy as

a)

np

b)

pd

c)

nd

4.

How to reverse an array which function among the following options is used?

a)

reverse()

b)

transpose()

c)

transform()

5.

What does the word "appending" mean?

a)

adding something extra

b)

changing something

6.

Which function below is used to add an extra row in an existing table?

a)

vstack()

b)

hstack()

c)

transpose()

7.

Which function is used to add extra column to an existing table ?

a)

hstack()

b)

transpose()

c)

vstack()

8.

What is a correct syntax to create a NumPy array?

a)

np.array([1, 2, 3, 4, 5])

b)

np.object([1, 2, 3, 4, 5])

c)

np.createArray([1, 2, 3, 4, 5])

9.

Which of the following arrays is a two dimensional (2-D) array?

a)

[1, 2, 3, 4, 5]

b)

[[1, 2, 3], [4, 5, 6]]

c)

42

10.

Each location of an element in an array is called ______________

a)

Size

b)

Length

c)

Index

d)

Element