Search Header Logo

Quiz3

Authored by Sabina Adhikari

Computers

University

Used 10+ times

Quiz3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function name that reads the csv file?

read-csv()

read_csv()

readcsv()

read_csv

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the best correct way to save the csv file?

to_csv(save_file.csv)

to_csv('save_file')

to_csv('save_file.csv')

save_csv('save_file.csv')

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

What is/are the correct way/s to get the column 'Region' only?

df['Region']

df.iloc[: , 2]

df.iloc[2]

df[:, 2]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the correct way to get the rows with 'ID' = 3 and 'ID' = 5?

df.iloc[[2, 4]]

df.iloc[[3, 5]]

df.iloc[3:5]

df.iloc[2:6]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What attribute returns the column labels in pandas?

DataFrame.titles

DataFrame.titles()

DataFrame.columns

DataFrame.columns()

6.

OPEN ENDED QUESTION

1 min • 1 pt

Explain token and delimiter with examples.

Evaluate responses using AI:

OFF

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

string1 = 'hello world how are you'

output_final = ['hello', 'world', 'how', 'are', 'you']

What is/are the correct method/s to get the output_file using string1?

string1.split()

string1.split(' ')

string1.split(', ')

string1.split('_')

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?