
Python Strings
Computers
9th - 12th Grade
Used 187+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
For strings, the + operator represents
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is printed by the following statements?
s = "programming rocks"
print(len(s))
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is printed by the following statements?
cheer = "Go Jubilee!"
print (cheer[0:1])
G
"Go"
Go
o
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is printed by the following statements?
cheer = "Go Jubilee!"
print (cheer[5:8])
bil
ubi
bile
bilee
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is printed by the following statements?
ss = "Hola, friend"
print(ss.upper())
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is printed by the following statements?
s = "python rocks"
print(s[-3])
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is printed by the following statements?
s = "python rocks"
print(s[1] * s.index("n"))
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?