String in Python Quiz 11

Share with others

Welcome to your String in Python Quiz 11

Name
Email
School Name
Q101. Which function in the following statement will execute last?
print("amit".lower().upper())
Q102. Write the output of the following:
print('aisabisacisadisae'.split('isa',3))
Q103. Write the output of the following:
print('aisabisacisadisae'.split('isa'))
Q104. print("aNd&*".swapcase()) will display ________________
Q105. Write the output of the following:
print('hash-tag'.title())
Q106. Fill in the blank given below to get output - "amit is a g@@d boy"
print('amit is a good boy'.replace('o', '@', _________ ))
Q107. print('Welcome TO My Blog'.istitle()) will display _______________
Q108. print('Welcome TO My Blog'[2:6]) will display ____________
Q109. print('Welcome TO My Blog'[2:6] + 'Welcome TO My Blog'[5:9]) will display _______________
Q110. print("WZ-1,New Ganga Nagar,New Delhi".rfind('New')) will display _________________


Share with others

Leave a Reply