wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Science

Total questions: 35

Worksheet time: 18mins

Name
Class
Date
1.

Which of the following statements best describes a DataFrame in Python, often used in Data Science?

a)

A DataFrame is a collection of functions used to manipulate data.

b)

A DataFrame is a two-dimensional, size-mutable, and labeled data structure similar to a table in a relational database.

c)

A DataFrame is a Python library used for machine learning.

d)

A DataFrame is a process of cleaning and transforming raw data into a usable format.

2.

What is the primary goal of Data Science?

a)

To collect as much data as possible

b)

To develop theories about data structures

c)

To extract useful insights from data

d)

To maintain large databases

3.

What is data in the context of Data Science?

a)

Random information

b)

Raw facts and figures

c)

Organized knowledge

d)

Mathematical formulas

4.

Which of the following is NOT a type of data?

a)

Structured

b)

Unstructured

c)

Semi-structured

d)

Sequential

5.

What does a database table primarily consist of?

a)

Data points and axes

b)

Rows and columns

c)

Files and folders

d)

Lists and arrays

6.

In a relational database, what do columns represent?

a)

Individual records

b)

Attributes or fields

c)

Keys for searching

d)

Functions

7.

Which Python library is most commonly used for data manipulation in Data Science?

a)

NumPy

b)

pandas

c)

matplotlib

d)

TensorFlow

8.

What is a DataFrame in Python?

a)

A collection of rows and columns like a table

b)

A type of list that stores values

c)

A special type of graph used for data visualization

d)

A built-in function in Python

9.

Which function in Python is used to read a CSV file into a DataFrame?

a)

read_file()

b)

open_csv()

c)

pd.read_csv()

d)

load_data()

10.

What does the term “data cleaning” refer to in data preparation?

a)

Arranging data in a specific order

b)

Removing errors and inconsistencies in data

c)

Generating new data

d)

Visualizing data

11.

Which Python function is used to display the first few rows of a DataFrame?

a)

display()

b)

show()

c)

head()

d)

top()

12.

In Data Science, what is a “feature”?

a)

A graphical representation of data

b)

A characteristic or attribute of the data

c)

A type of machine learning model

d)

A function used for data processing

13.

What is the process of splitting a dataset into training and testing sets called?

a)

Data augmentation

b)

Data separation

c)

Data splitting

d)

Data sampling

14.

Which of the following is a common data preparation technique?

a)

Data scraping

b)

Data normalization

c)

Data interpretation

d)

Data modeling

15.

In Python, which library is primarily used for numerical operations in Data Science?

a)

pandas

b)

NumPy

c)

seaborn

d)

TensorFlow

16.

What does the function describe() in pandas provide?

a)

Visualizations for the DataFrame

b)

Descriptive statistics for numerical columns

c)

A summary of the data types in the DataFrame

d)

A list of the first five rows of data

17.

What is the purpose of data normalization?

a)

To create new features

b)

To scale data to a common range

c)

To remove duplicates

d)

To visualize data

18.

In a DataFrame, what does the method dropna() do?

a)

Drops duplicate rows

b)

Removes rows with missing values

c)

Filters data based on a condition

d)

Sorts the DataFrame by a column

19.

In Python, which of the following is commonly used for data visualization?

a)

pandas

b)

NumPy

c)

matplotlib

d)

SciPy

20.

What is the primary role of functions in Python when working with Data Science?

a)

To create new files

b)

To automate repetitive tasks

c)

To generate random data

d)

To visualize data

21.

What does the groupby() function in pandas do?

a)

Groups data based on conditions and performs aggregation

b)

Combines two DataFrames

c)

Merges columns together

d)

Sorts the DataFrame

22.

What is the primary difference between NumPy arrays and pandas DataFrames?

a)

NumPy arrays can only hold numerical data, while DataFrames can hold multiple data types

b)

NumPy arrays are used for visualization, while DataFrames are not

c)

NumPy arrays are two-dimensional, while DataFrames are always three-dimensional

d)

There is no difference

23.

What is one common use of the apply() function in pandas?

a)

To apply a function along an axis of the DataFrame

b)

To visualize data

c)

To split data into smaller DataFrames

d)

To merge multiple DataFrames

24.

What is data wrangling?

a)

The process of exploring and visualizing data

b)

The process of gathering, cleaning, and organizing raw data

c)

The process of deploying machine learning models

d)

The process of summarizing data using statistics

25.

Which of the following describes “missing data”?

a)

Data with incorrect values

b)

Data points that have not been collected or recorded

c)

Data points that contain duplicates

d)

Data points that are outliers

26.

What is data transformation?

a)

The process of converting data from one format to another

b)

The process of deleting unnecessary data

c)

The process of splitting data into training and testing sets

d)

The process of building machine learning models

27.

What is the purpose of using the "header=0" parameter when reading a CSV file in pandas?

a)

To specify that the data contains numerical values

b)

To indicate that the first row of the CSV contains column headers

c)

To remove missing values from the dataset

d)

To specify the data type of each column

28.

Which of the following best describes discrete data?

a)

Data that can take any value between two numbers

b)

Data that can be measured with infinite precision

c)

Data that represents distinct, countable values like "number of students"

d)

Data that can be arranged in a meaningful order

29.

Which type of data cannot be quantified and is classified into categories without a meaningful order?

a)

Discrete data

b)

Continuous data

c)

Nominal data

d)

Ordinal data

30.

What is the appropriate data type for storing nominal data in a pandas DataFrame?

a)

int64

b)

float64

c)

object

d)

datetime64

31.

Which of the following examples represents continuous data?

a)

The number of pets in a household

b)

The temperature in degrees Celsius

c)

The color of a person's eyes

d)

The letter grade of a student

32.

What is the result of calling the info() function on a pandas DataFrame?

a)

A statistical summary of the numerical columns

b)

A list of column names, data types, and non-null values in the DataFrame

c)

A preview of the first five rows in the dataset

d)

A visualization of the dataset

33.

Which pandas function would you use to check the frequency of categorical (qualitative) values in a DataFrame column?

a)

value_counts()

b)

describe()

c)

dropna()

d)

head()

34.

In the context of data science, what does the parameter sep="," specify when reading a CSV file with pandas?

a)

The file format is JSON

b)

The data is separated by commas

c)

The file contains missing values

d)

The first row should be skipped

35.

Which of the following best describes ordinal data?

a)

Data where the order of the values is meaningless

b)

Data that can be divided into an infinite number of values

c)

Data that has a meaningful order, such as "low, medium, high"

d)

Data that is measured using numbers only