This study notes covers Deep Dive: String Indexing 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 4 of 6 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 4 of 6
Practice
15 questions
Recall
8 flashcards
Deep Dive: String Indexing
Strings are 0-indexed (first character is position 0):
text = "HELLO" // Index: 0 1 2 3 4 // Char: H E L L O text.substring(0, 1) = "H" text.substring(1, 3) = "ELL" text[2] = "L"