String in Python Quiz 8

Share with others

Welcome to your String in Python Quiz 8

Name
Email
School Name
Q71. Write the output of the following:
>>> str1 = 'hello WORLD!'
>>> str1.title()
Q72. Write the output of the following :
>>> str1 = 'Hello World! Hello Hello'
>>> str1.count('Hello',12,25)
Q73. Write the output of the following :
>>> str1 = 'Hello World! Hello Hello'
>>> str1.count('Hello')
Q74. Write the output of the following :
print("Absbcbcgdbc".count("b",4))
Q75. Write the output of the following :
print("Absbcbcgdbc".find("b",5))
Q76. Which of the following function returns the index value of first occurrence of substring occurring in the given string.
Q77. find( ) function returns __________ if the substring is not present in the given string
Q78. index( ) function returns __________ if the substring is not present in the given string
Q79. >>> "Hey!".endswith('!') will return ___________
Q80. Which of the function returns Boolean value?


Share with others

Leave a Reply