
Python Strings and Methods Quiz

Quiz
•
Information Technology (IT)
•
9th Grade
•
Medium
Fadi Fadi
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a string in Python?
A number
A list
An array of characters
A boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Are strings mutable in Python?
Yes
No
Sometimes
Only with split()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code return? "Hello World".split()
['H', 'e', 'l', 'l', 'o']
['Hello', 'World']
['Hello World']
Syntax error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be used as a separator in split()?
Space
Comma
Any character
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of text.split(",") if text = "a,b,c"?
['abc']
['a', 'b', 'c']
['a,b,c']
['a b c']
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a CSV file?
A picture
A Python library
A text file with comma-separated values
A type of loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you use split() on a string with multiple spaces?
['The', '', '', 'cat']
['The', 'cat']
['The cat']
Error
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
ICT G7 Chapter 2.2 Direct Data Entry Devices

Quiz
•
7th Grade - University
15 questions
Python Programming Quiz

Quiz
•
9th - 12th Grade
17 questions
Экзамен C++ ОП

Quiz
•
9th - 12th Grade
18 questions
Unit 2 The Internet

Quiz
•
9th - 12th Grade
20 questions
HTML Quiz Week 1-2

Quiz
•
9th Grade
15 questions
Digital Information

Quiz
•
9th - 12th Grade
20 questions
Class 9 Viva Questions 9B mideterm

Quiz
•
9th Grade
20 questions
Quiz Administrasi Perkantoran

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
20 questions
Biomolecules

Quiz
•
9th Grade