Batch -1 |28-11-24 | Day -4 Data Analytics Workshop Quiz

Batch -1 |28-11-24 | Day -4 Data Analytics Workshop Quiz

University

10 Qs

quiz-placeholder

Similar activities

Kiến thức về Firebase

Kiến thức về Firebase

University

10 Qs

Exploring Data Types and Queries

Exploring Data Types and Queries

University

15 Qs

Let's Play Excel Excel...!

Let's Play Excel Excel...!

University

15 Qs

QUIZ 1 STATISTICS

QUIZ 1 STATISTICS

University

11 Qs

Text Mining with Python (week 9)

Text Mining with Python (week 9)

University

7 Qs

Mengoperasikan Aplikasi Perkantoran

Mengoperasikan Aplikasi Perkantoran

12th Grade - University

15 Qs

Nba2k21

Nba2k21

KG - Professional Development

10 Qs

Quiz Data Science (Pertemuan 5)

Quiz Data Science (Pertemuan 5)

University

8 Qs

Batch -1 |28-11-24 | Day -4 Data Analytics Workshop Quiz

Batch -1 |28-11-24 | Day -4 Data Analytics Workshop Quiz

Assessment

Quiz

Other

University

Medium

Created by

Gnaneshwar Reddy

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

import pandas as pd

data = pd.read_csv("students.csv")

print(data.head(2))

a) First row of the CSV file

b) First two rows of the CSV file

c) All rows of the CSV file

d) Last two rows of the CSV file

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method in pandas is used to save a DataFrame to a CSV file?

a) save_csv()

b) write_csv()

c) to_csv()

d) export_csv()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you remove a column in a pandas DataFrame?

a) df.drop(column_name, axis=0)

b) df.delete(column_name)

c) df.drop(column_name, axis=1)

d) df.remove(column_name, axis=1)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Matplotlib, which function is used to create a bar plot?

a) plt.bar()

b) plt.plot()

c) plt.hist()

d) plt.scatter()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Matplotlib, which function is used to create a line plot?

a) plt.bar()

b) plt.line()

c) plt.plot()

d) plt.scatter()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

x = 10

y = 5

print(x + y)

a) 10

b) 5

c) 15

d) 50

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python module is used to work with CSV files?


a) json

b) csv

c) xml

d) file

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?