Search Header Logo

DSA Dec Batch Numpy,Pandas,Matplotlib Quiz

Authored by ICT Academy of Kerala

Computers

University

Used 2+ times

DSA Dec Batch Numpy,Pandas,Matplotlib Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to display a Matplotlib plot?

plt.display()

plt.show()

plot.display()

plot.show()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does plt.title('Sales Data') do?

Sets the label for the x-axis to 'Sales Data'.

Sets the title of the plot to 'Sales Data'.

Adds a legend with the label 'Sales Data'.

Creates a subplot titled 'Sales Data'.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does np.ones((2, 3)) create?

A 2x3 array filled with ones.

A 3x2 array filled with ones.

A 2x2 array filled with ones.

A 3x3 array filled with ones.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of np.random.randn(3, 2)?

Generates random integers.

Generates an array of random floats from a standard normal distribution.

Creates an identity matrix.

Generates an array with evenly spaced values.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does plt.ylabel('Temperature') do?

Adds a label to the y-axis with 'Temperature'.

Sets the title of the plot to 'Temperature'.

Adds a legend with the label 'Temperature'.

Creates a subplot with the label 'Temperature'.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you filter rows in a DataFrame df where the 'Price' column is less than 50?

df.filter('Price' < 50)

df['Price'] < 50

df[df.Price < 50]

df.filter_price(50)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you check for missing values in a DataFrame df?

df.check_missing()

df.isna()

df.missing()

df.null()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?