Negative index -1 belongs to ………. of string.
Which of the following is/are not legal string operators?
Which of the following functions will return the total number of characters in a string?
Which of the following functions will return the last three characters of a string s?
Which of the following functions will return the first three characters of a string s?
Which of the following functions will return the string in all caps?
Which of the following functions will return the string with every ‘P’ replaced with a ‘z’?
Which of the following functions will return a list containing all words of the string?
Which of the following functions will always return a tuple of 3 elements?
What is the output of the following code?
str1 = "Mission 999" str2 = "999" print(str1.isdigit(),str2.isdigit())
Choose the correct function to get the ASCII code of a character.
Which method should I use to convert String “Python programming is fun” to “Python Programming Is Fun” ?
Guess the correct output of the following String operations.
str1 = 'Wah' print(str1*2)
What is the output of the following string operation?
str = "My roll no. is 12" print(str.isalnum())
Select the correct output of the following String operations.
str1 = 'Waha' print(str1[:3] + 'Bhyi' + str1[-3:])
Select the correct output of the following String operations.
str = "my name is Anu John" print(str.capitalize())
Choose the correct function to get the character from ASCII number.
s = ‘ ‘(single space). Then s.isalnum() will return.
Which of the following functions removes all leading and trailing spaces from a string?
Which of the following functions will raise an error if the given substring is not found in the string?