wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Google Colab Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is Google Colab?

a)

A text editor

b)

A cloud-based Jupyter notebook environment

c)

A web browser

d)

A Python library

2.

Which command is used to install libraries in Google Colab?

a)

install library

b)

pip install library

c)

!pip install library

d)

import library

3.

Which library is commonly used for creating static, animated, and interactive visualizations in Python?

a)

NumPy

b)

Pandas

c)

Matplotlib

d)

Scikit-learn

4.

What is the primary function of the seaborn library?

a)

Data manipulation

b)

Statistical data visualization

c)

Machine learning

d)

Text processing

5.

Which command is used to display plots inline within a Google Colab notebook?

a)

%matplotlib inline

b)

plt.show()

c)

sns.show()

d)

display()

6.

What is the purpose of the plt.plot() function in Matplotlib?

a)

To create a bar chart

b)

To create a line plot

c)

To create a scatter plot

d)

To create a histogram

7.

Which Seaborn function is used to create a heatmap?

a)

sns.heatmap()

b)

sns.lineplot()

c)

sns.scatterplot()

d)

sns.barplot()

8.

What is the primary use of the plotly library in Python?

a)

Creating static plots

b)

Creating interactive plots

c)

Data cleaning

d)

Machine learning

9.

Which command is used to import the Matplotlib library in Python?

a)

import matplotlib as plt

b)

import matplotlib.pyplot as plt

c)

import matplotlib.plot as plt

d)

import matplotlib.graph as plt

10.

What does the sns.set() function do in Seaborn?

a)

Sets the style and color palette for plots

b)

Creates a scatter plot

c)

Loads a dataset

d)

Displays a plot

11.

Which function is used to create a histogram in Matplotlib?

a)

plt.hist()

b)

plt.bar()

c)

plt.scatter()

d)

plt.pie()

12.

What is the purpose of the sns.pairplot() function in Seaborn?

a)

To create a single plot

b)

To create a grid of scatter plots for all pairs of variables

c)

To create a bar plot

d)

To create a line plot

13.

Which library provides high-level commands for creating a variety of plot types useful for statistical data exploration?

a)

NumPy

b)

Pandas

c)

Seaborn

d)

Scikit-learn

14.

What is the purpose of the plt.xlabel() function in Matplotlib?

a)

To set the title of the plot

b)

To set the label for the x-axis

c)

To set the label for the y-axis

d)

To display the plot

15.

Which command is used to mount Google Drive in Google Colab?

a)

!mount drive

b)

import drive

c)

from google.colab import drive

d)

drive.mount()