Python String MCQs

Question 1: Given s='Hello. How are you?', which of the following expression will return 'How'?

Question 2: Which of the following will result in True?

Question 3: Which function should be used to change 'how are you?' to 'How Are You?',

Question 4: Which symbol is not defined as a string operator?

Question 5: The find('H') function over a string 'TutorialsTeacher' will return _____.

Question 6: Which of the following is true about triple quoted strings?

Question 7: What will be the output of the following code?

var1="Hello"
var2="World"
var3="HelloWorld"

print(var1+var2 == var3)
print(var1+var2 is var3)