ProgrammingStudy Notes

Deep Dive: String Indexing

Part of String HandlingGCSE Computer Science

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"

Keep building this topic

Read this section alongside the surrounding pages in String Handling. That gives you the full topic sequence instead of a single isolated revision point.

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

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

Want to test your knowledge?

PrepWise has 15 exam-style questions and 8 flashcards for String Handling — with adaptive difficulty and instant feedback.

Join Alpha