
Python Data Analysis Quiz
Authored by Hussein Ayman
Computers
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python library is primarily used for handling and analyzing structured data?
NumPy
Pandas
Matplotlib
Scikit-learn
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the key advantage of using NumPy over regular Python lists?
Supports only numerical data
Uses more memory for storing values
Allows vectorized operations, making computations faster
Only works with small datasets
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to check the number of rows and columns in a Pandas DataFrame?
df.shape
df.size
df.count()
df.rows()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you select only the 'Name' and 'Age' columns from a DataFrame df?
df[['Name', 'Age']]
df['Name', 'Age']
df.loc('Name', 'Age')
df.get(['Name', 'Age'])
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to reset the index of a DataFrame?
df.set_index()
df.reindex()
df.reset_index()
df.drop_index()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does df.dropna() do in a Pandas DataFrame?
Removes all rows with at least one missing value
Replaces NaN values with 0
Fills missing values with column mean
Ignores missing values while processing
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What parameter of fillna() is used to replace missing values with the last available value?
method='backfill'
method='forwardfill'
method='ffill'
Both B and C
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?