Login
Sign up for FREE
arrow_back
Library
Strings Quiz (2/2/2024)
By Mickey Arnold
star
star
star
star
star
star
star
star
star
star
share
Share
Last updated 10 months ago
7 Questions
Add This Formative
1 point
1
Question 1
1.
s = "Iwantaapple"
print( s[4] )
1 point
1
Question 2
2.
s = " apluscompsci "
print( len(s) )
1 point
1
Question 3
3.
s = "apluscompsci"
print( s[4:7] )
1 point
1
Question 4
4.
s = "apluscompsci"
print( s[:-7] )
1 point
1
Question 5
5.
s = "apluscompsci"
print( s.find("us") )
1 point
1
Question 6
6.
s = "apluscompsci"
print( s.rfind("mp") )
1 point
1
Question 7
7.
s = "apluscompsci"
print( s[4] + s[9] )