String manipulation (Edexcel GCSE Computer Science): Quizzes

📚Quizzes
String manipulation
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What is a string in programming?

A sequence of characters

What does the len() function do?

Counts characters in a string

How many characters does len() count in 'Hello World'?

11

What does find() return if the text is not found?

-1

What does find() return when it locates text?

The position where it first finds it

Why are upper() and lower() useful for comparisons?

They ignore case differences in input

What does replace() do to a string?

Swaps one text piece for another

What makes isalpha() return True?

String has only letters

What makes isalnum() return True?

String has only letters and numbers

What makes isdigit() return True?

String has only numerical digits

What do string query functions return?

True or False answers

What value should you check for after using find()?

-1 to see if text wasn't found

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.