Log in
Sign up for FREE
arrow_back
Library
Strings Quiz
By Mickey Arnold
star
star
star
star
star
Share
share
Last updated almost 2 years ago
7 questions
Add this activity
1
1
1
1
1
1
1
Question 1
1.
s = "apluscompsci"
print( s[4] )
Question 2
2.
s = "apluscompsci"
print( len(s) )
Question 3
3.
s = "apluscompsci"
print( s[3:5] )
Question 4
4.
s = "apluscompsci"
print( s[:-3] )
Question 5
5.
s = "apluscompsci"
print( s.find("sc") )
Question 6
6.
s = "apluscompsci"
print( s.rfind("sc") )
Question 7
7.
s = "apluscompsci"
print( s[3] + s[5] )