Python study group: Week 3

Python study group: Week 3

12th Grade

15 Qs

quiz-placeholder

Similar activities

Python Fundamentals and Programming

Python Fundamentals and Programming

11th - 12th Grade

13 Qs

Execl Quiz

Execl Quiz

7th Grade - University

11 Qs

Excel Basics

Excel Basics

5th Grade - Professional Development

10 Qs

CSP Unit 13 Practice Test

CSP Unit 13 Practice Test

9th - 12th Grade

15 Qs

How much do you know about NFTs?

How much do you know about NFTs?

KG - Professional Development

10 Qs

DATA VISUALIZATION_A

DATA VISUALIZATION_A

9th - 12th Grade

20 Qs

Data Visualization Quiz

Data Visualization Quiz

9th - 12th Grade

13 Qs

Programming in C language

Programming in C language

12th Grade - University

18 Qs

Python study group: Week 3

Python study group: Week 3

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Jeff Mao

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following are common errors in python?

Missing colon at the end of a statement

Unexpected indentation

Mismatched brackets

Index error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When debugging an error in your code, which should you do first?

Insert a print statement

Read the error message

Refer to the documentation

Read through your code again

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary data structure in pandas for storing and manipulating data?

Lists

Tuples

Arrays

DataFrames

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you select a specific column from a pandas dataframe?

df.iloc['column_name']

df.loc['column_name']

df.head(column_name)

df['column_name']

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to drop rows with missing values in a pandas dataframe?

clean()

remove()

dropna()

filter()

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following operations are pandas dataframe methods?

merge

na

dropnull

groupby

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you create a new column in a pandas dataframe based on existing STRING columns?

df['new_column'] = df['col1'] * df['col2']

df['new_column'] = df['col1'] + df['col2']

df['new_column'] = df['col1'] - df['col2']

df['new_column'] = df['col1'] / df['col2']

Create a free account and access millions of resources

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?