
Python String Manipulation - and toast!
Computers
9th - 12th Grade
Used 34+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the len() function do?
Gets the length of a string or list
Gets the character code for a character
Converts a character into a character code
Would you like a muffin?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the value of the length variable be after this code is run?:
length = len("Hello")
5
6
0
Would you like a toasted teacake?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the value of the 'found' variable be after this code is run?
found = "No" in "No toast!"
True
False
92.5
Would you like a waffle?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the value of the 'found' variable be after this code is run?:
found = "teacake" in "Muffin?"
False
True
12.1
Would you like a bagel?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The character code for the letter 'a' is 97.
Which function do we use to get the character code for a character?
chr()
ord()
len()
would_you_like_some_toast()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The character code for the letter 'e' is 101.
What is the character code for 'f'?
102
101.1
42
Would you like a baguette?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We have a character code, 120.
Which function do we use to turn this into a character?
chr()
ord()
len()
would_you_like_a_bap()
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?