1) The 'in' and 'not in' operators are called as ________ operators a) membership b) reference c) string d) pointer 2) %d used for ________ a) exponential notation b) signed decimal integer c) float d) unsigned decimal integer 3) s1='How' s1[0]='A'. What will be the output a) How b) woh c) Error d) A 4) Adding more strings at the end of an existing string is known as _______ a) extend b) join c) add d) append 5) \f is used for a) line feed b) backspace c) Form feed d) horizontal feed 6) What is the missing symbol in the following: str[start ____ end] a) :: b) : c) ; d) , 7) What is output of print(ord('c'))  a) 99 b) 65 c) 98 d) 100 8) %c is used for _____ a) string b) char c) variables d) character 9) What will be the output of the following: print(len("Welcome all")) a) 9 b) 10 c) 11 d) 12 10) The _________ is used as place holders or replacement fields along with format(). a) [] b) {} c) () d) ^^

Strings and string manipulations

Leaderboard

Visual style

Options

Switch template

Continue editing: ?