String Manipulation
OCR J2772.2cGCSELesson packSubscription
Also online
This worksheet marks itself
Set it as homework or classwork and every answer is marked as pupils go, with feedback on what they got wrong. The scores go straight into your mark book, so you can see who needs help before the next lesson.
- 8 questions
- 23 marks
- about 17 minutes
- marked instantly
Question types: multi-part, multiple choice, matching, true or false, short answer.
Try one from this worksheet
What is the output of "COMPUTER"[3:6] in Python?
Pick an answer: it's marked straight away, just as your pupils would see it.
About this resource
Master string operations including length, substrings, upper/lower case, ASCII conversion, and concatenation in both Python and OCR Reference Language.
15 slides.
Lesson outline
- String Length
- Substrings - Extracting Parts of a String
- String Operations Explorer
- Substring Challenge
- Upper and Lower Case
- Code Demo: String Processing
- ASCII Conversion: ASC() and CHR()
- Task: ASCII Shift
- Concatenation
- Coding Challenge: Username Generator
- Task: String Operations Practice
- Combining String Operations
Unit bundle2.2 Programming Fundamentals
More from 2.2 Programming Fundamentals
- Lesson pack · 2.2aVariables, Constants, Operators & Data TypesSubscription
- Lesson pack · 2.2bSelection & IterationSubscription
- Lesson pack · 2.2dArrays & RecordsSubscription
- Lesson pack · 2.2eFile Handling & SQLSubscription
- Lesson pack · 2.2fSubprograms & Random NumbersSubscription
- Knowledge organiser · 2.2Programming FundamentalsSubscription
- Scheme of work · 2.2Programming FundamentalsSubscription


