Python study group: Week 3

Quiz
•
Computers
•
12th Grade
•
Medium

Jeff Mao
Used 2+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Ciência de Dados - Importando dados

Quiz
•
12th Grade
10 questions
Quiz sobre Desenvolvimento de Sistemas

Quiz
•
12th Grade
10 questions
Data Science 2

Quiz
•
12th Grade
15 questions
Pandas Proficiency Quiz for Students

Quiz
•
12th Grade
13 questions
Exploring Python Dataframes

Quiz
•
12th Grade
18 questions
Python Pandas-Series

Quiz
•
12th Grade
20 questions
CLASS_XII_SERIES_MCQ

Quiz
•
12th Grade
12 questions
Dataframe

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University