This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Are strings immutable?
No, because they can be modified.
Yes, because you can't modify them.
No, because you can split them.
What types of quotation marks can be used with strings?
Single, double, and triple quotation marks.
Single and double quotation marks.
Only double quotation marks.
What is the string method call to use to break strings into separate lines?
The .separate(' ') method.
.separate(' ')
The .newlines() method.
.newlines()
The .split(' ') method.
.split(' ')
What two string methods can you use to check to see whether a word exists in a string?
The .find() and .count() methods.
.find()
.count()
The .search() and .count()methods.
.search()
The .check() and .search() methods.
.check()
What is a problem you might run into when you use % for formatting?
%
When many replacements are needed, it can make a program slower.
The code can be harder to read when many replacements are needed.
It isn't possible to replace more than nine variables.
How can you round down a number when you use f-strings?
Use the .format() method to round down.
.format()
Use the round() function inside the string, enclosed in braces ({}).
round()
{}
You can't round a number when you use f-strings. You must round it before you use it in a string.
You must answer all questions before checking your work.
Was this page helpful?