
Quiz on python string methods
Quiz by kiran Jayraj
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
11 questions
Show answers
- Q1Which method is used to split a string into a list of substrings based on a specified delimiter?replacejoinsplitstrip30s
- Q2Which method is used to convert a string to all uppercase letters?upperlowercapitalizeswapcase30s
- Q3Which method is used to find the first occurrence of a substring in a string?countindexfindreplace30s
- Q4Which method is used to determine if a string starts with a specified prefix?endswithfindreplacestartswith30s
- Q5Which method is used to replace occurrences of a substring in a string with another substring?replacecountsplitjoin30s
- Q6Which method is used to remove leading and trailing whitespace from a string?splitstripcapitalizereplace30s
- Q7Which method is used to check if a string contains only alphabetic characters?isalnumisnumericisdigitisalpha30s
- Q8Which method is used to check if a string ends with a specified suffix?endswithstartswithfindreplace30s
- Q9Which string method returns the number of occurrences of a specified substring in a given string?joinreplacecounttitle30s
- Q10Which string method capitalizes the first character of each word in a given string?replacejoincounttitle30s
- Q11Which string method joins the elements of a given iterable into a single string?countreplacetitlejoin30s