String in Python Quiz 9

Share with others

Welcome to your String in Python Quiz 9

Name
Email
School Name
Q81. Write the output of the following:
>>> str1 = 'String MCQ'
>>> str1.startswith('Str')
Q82. Write the output of the following:
print("Welcome-Python".isalnum())
Q83. Write the output of the following:
print(str("WelcomePython".isalnum()).upper())
Q84. Write the output of the following:
>>> str1 = 'hello ??'
>>> str1.islower()
Q85. Which of the following function returns True if the string is non-empty and has all uppercase alphabets.
Q86. Write the output of the following:
>>> str1 = 'Hello World!'
>>> str1.replace('o','*')
Q87. Write the output of the following:
>>> str1 = 'India is a Great is Country'
>>> str1.partition('is')
Q88. Write the output of the following:
str = "Amit is a is a"
s = str.partition('is')
print(s[1])
Q89. partition( ) function of string in python return the result in the form of _____________
Q90. partition() function divides the main string into _________ substring.


Share with others

Leave a Reply