GCSE String Operations
Part of String Handling · GCSE GCSE Computer Science revision
This study notes covers GCSE String Operations within String Handling for GCSE Computer Science. Revise String Handling in Programming for GCSE Computer Science with 15 exam-style questions and 8 flashcards. This topic appears less often, but it can still be a useful differentiator on mixed-topic papers. 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.
Topic position
Section 3 of 7
Practice
15 questions
Recall
8 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" |