String manipulation (Edexcel GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What is a string in programming?
What is a string in programming?
A sequence of characters
What does the len() function do?
What does the len() function do?
Counts characters in a string
How many characters does len() count in 'Hello World'?
How many characters does len() count in 'Hello World'?
11
What does find() return if the text is not found?
What does find() return if the text is not found?
-1
What does find() return when it locates text?
What does find() return when it locates text?
The position where it first finds it
Why are upper() and lower() useful for comparisons?
Why are upper() and lower() useful for comparisons?
They ignore case differences in input
What does replace() do to a string?
What does replace() do to a string?
Swaps one text piece for another
What makes isalpha() return True?
What makes isalpha() return True?
String has only letters
What makes isalnum() return True?
What makes isalnum() return True?
String has only letters and numbers
What makes isdigit() return True?
What makes isdigit() return True?
String has only numerical digits
What do string query functions return?
What do string query functions return?
True or False answers
What value should you check for after using find()?
What value should you check for after using find()?
-1 to see if text wasn't found
