String Handling

Computer ScienceOCRGCSEUnit: 3.2 Programming
Free taster
5 of 6 sections open
The basics

Working with Text

Working with Text

Strings are everywhere - names, addresses, passwords, messages. String handling is the art of manipulating text. Need to extract the first 3 characters? Check if an email contains "@"? Convert to UPPERCASE? Concatenate first name and surname? These operations are essential for any program that deals with text!

Now try it yourself

Quiz · Question 1 of 15

The string variable word = "Hello". What does word.length return?

Tap an answer to check it

Revise every Computer Science topic, free during alpha

String Handling is one of 60 topics on PrepWise — all aligned to your exam board.

Start revising free →