
Python Strings and Methods Quiz
Authored by Fadi Fadi
Information Technology (IT)
9th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
16 questions
Informatika Kelas 7
Quiz
•
9th Grade
15 questions
INFORMATIKA KELAS 7A DAN TB
Quiz
•
7th Grade - University
20 questions
TIK KELAS 9
Quiz
•
9th Grade - University
20 questions
KUIS BAB V PENGEMBANGAN APLIKASI MOBILE
Quiz
•
9th - 12th Grade
20 questions
Computer Maintenance Quiz
Quiz
•
9th Grade
20 questions
Computer Basics Quiz
Quiz
•
7th Grade - University
20 questions
Pemrograman Blokly
Quiz
•
9th Grade - University
20 questions
Informatique et nouvelles technologies, le saviez-vous ?
Quiz
•
1st Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
20 questions
Exponent Rules Review
Quiz
•
8th - 9th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade