GCSE String Operations

Part of String Handling · Section 3 of 7

Study NotesUnit: 3.2 ProgrammingGCSE

This study notes covers GCSE String Operations within String Handling for GCSE Computer Science. Revise String Handling in 3.2 Programming for GCSE Computer Science with 15 exam-style questions and 8 flashcards. This is a high-frequency topic, so it is worth revising until the explanation feels precise and repeatable. It is section 3 of 7 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.

GCSE String Operations

Operation Pseudocode Example Result
Length string.length "Hello".length 5
Substring string.substring(start, length) "Hello".substring(0, 2) "He"
Uppercase string.upper "Hello".upper "HELLO"
Lowercase string.lower "Hello".lower "hello"
Concatenation string1 + string2 "Hi" + " " + "there" "Hi there"
ASCII conversion ASC(char), CHR(code) ASC("A"), CHR(65) 65, "A"

Practice questions for String Handling

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

  • A. 4
  • B. 5
  • C. 6
  • D. 0
1 markfoundation

Explain the purpose of the ASC() and CHR() functions in OCR pseudocode. Give one reason a programmer might need to convert between characters and their ASCII codes.

3 marksstandard

Quick recall flashcards

How do you join strings?
Concatenation: string1 + string2
What does CHR(66) return?
"B"

15 questions on String Handling — practise free

Instant marking, adaptive difficulty and spaced-repetition flashcards — all aligned to your exam board.

Start revising free →