Telemetry data from a marine research buoy is stored as a STRING variable named buoyReading.
The data string for a specific sensor reading taken on 12 August 2026 is shown below:
TX982_W-SPD08.4_2026/08/12_P04
Using 0-based indexing:
State the indexing expression (using the variable name buoyReading) for the first character of the date substring (2026/08/12).
State the indexing expression (using the variable name buoyReading) for the last character of the date substring (2026/08/12).
State the total number of characters (length) of the entire date substring.
44 exam-style questions on Edexcel GCSE Computer Science Data types and structures, covering Primitive and structured data types, Using variables and constants, and Manipulating strings. Each one has a worked solution and a mark scheme showing where the marks go.