placeholder image to represent content

Quiz on python string methods

Quiz by kiran Jayraj

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
11 questions
Show answers
  • Q1
    Which method is used to split a string into a list of substrings based on a specified delimiter?
    replace
    join
    split
    strip
    30s
  • Q2
    Which method is used to convert a string to all uppercase letters?
    upper
    lower
    capitalize
    swapcase
    30s
  • Q3
    Which method is used to find the first occurrence of a substring in a string?
    count
    index
    find
    replace
    30s
  • Q4
    Which method is used to determine if a string starts with a specified prefix?
    endswith
    find
    replace
    startswith
    30s
  • Q5
    Which method is used to replace occurrences of a substring in a string with another substring?
    replace
    count
    split
    join
    30s
  • Q6
    Which method is used to remove leading and trailing whitespace from a string?
    split
    strip
    capitalize
    replace
    30s
  • Q7
    Which method is used to check if a string contains only alphabetic characters?
    isalnum
    isnumeric
    isdigit
    isalpha
    30s
  • Q8
    Which method is used to check if a string ends with a specified suffix?
    endswith
    startswith
    find
    replace
    30s
  • Q9
    Which string method returns the number of occurrences of a specified substring in a given string?
    join
    replace
    count
    title
    30s
  • Q10
    Which string method capitalizes the first character of each word in a given string?
    replace
    join
    count
    title
    30s
  • Q11
    Which string method joins the elements of a given iterable into a single string?
    count
    replace
    title
    join
    30s

Teachers give this quiz to your class