Python Strings

Quiz
•
Computers
•
11th Grade
•
Medium
T. Arman
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Strings in python are surrounded by either single quotation marks, or double quotation marks.
True
False
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You can display a string literal with the type() function.
True
False
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
This method returns the string in upper case.
upper()
lower()
strip()
replace()
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
This method returns the string in lower case.
upper()
lower()
strip()
replace()
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
This method removes any whitespace from the beginning or the end.
upper()
lower()
strip()
replace()
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
This method replaces a string with another string.
upper()
lower()
strip()
replace()
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
This method returns a list where the text between the specified separator becomes the list items.
upper()
lower()
split()
replace()
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Python Topics 1 & 2

Quiz
•
11th Grade
10 questions
Coding Systems 1 - AQA A Level Computer Science

Quiz
•
11th - 12th Grade
10 questions
Computer Health and Safety

Quiz
•
9th - 12th Grade
15 questions
Computer Science - Python

Quiz
•
9th - 12th Grade
10 questions
String Methods Quiz

Quiz
•
11th Grade
15 questions
Python Programming

Quiz
•
5th Grade - University
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
10 questions
AP CSP code.org Unit 3 2020

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade