Log in
Sign up for FREE
arrow_back
Library

Strings Quiz (2/2/2024)

star
star
star
star
star
Last updated almost 2 years ago
7 questions
1
1
1
1
1
1
1
Question 1
1.

s = "Iwantaapple"
print( s[4] )

Question 2
2.

s = " apluscompsci "
print( len(s) )

Question 3
3.

s = "apluscompsci"
print( s[4:7] )

Question 4
4.

s = "apluscompsci"
print( s[:-7] )

Question 5
5.

s = "apluscompsci"
print( s.find("us") )

Question 6
6.

s = "apluscompsci"
print( s.rfind("mp") )

Question 7
7.

s = "apluscompsci"
print( s[4] + s[9] )