Y11 GCSE Computer Science
PRIMM Activities: OCR Reference Language String Handling
Focus topics: string length, substrings, concatenation, case conversion, and ASCII conversion.
Activity 1: Predict & Run
Read each string-handling program, choose the best output, then run it to check.
Predict 1: String Length
Console
Press "Run this code" to see output.
Predict 2: LEFT and RIGHT
Console
Press "Run this code" to see output.
Predict 3: SUBSTRING
Console
Press "Run this code" to see output.
Predict 4: UPPERCASE
Console
Press "Run this code" to see output.
Predict 5: ASCII / CHR
Console
Press "Run this code" to see output.
Activity 2: Investigate (Parsons Problem)
- Drag and reorder the blocks to build the correct OCR string-handling program.
- The program should ask for a word, then print its
.length.
- Use
.left(2) and .right(2) to show the start and end.
- Finish by printing all three outputs in order.
Activity 3: Modify
- The starter program already asks for a first name and surname.
- Add one more
print line to show the first initial and the surname.
- Keep the existing greeting working.
Console
Run your code to check it.
Activity 4: Make
- Use the IDE starter scaffold to build a string-handling program.
- Ask for one input string, then use
.length, .left, and .right.
- Also show
.upper and .lower versions of the text.
- Add one ASCII example with
ASC or CHR.
- Add one
// comment to explain one string operation.