← November 2025 questions

NOVEMBER 2025 / BEGINNER / QUESTION 2

Finding an Index

Archived question

Try the question in your own editor, then check your output below.

THE QUESTION

Text from the official booklet. Refer to the PDF for original mathematical notation, formatting, and linked input files. Printed samples and inputs are reproduced as published.

You are given an array of 100 module names. Find the index of the target value. If not
found, print −1. Indexing starts at 0.
modules = "alpha-core", "servo-77", "ion-boost", "gamma-node", "omega-
drive", "proto-9", "xeno-chip", "ultra-link", "quantum-port", "drone-
42", "zeta-coil", "mecha-118", "fusion-rail", "delta-hub", "arc-17",
"astro-unit", "hyper-cell", "nano-gear", "plasma-lock", "core-omega",
"vortex-lens", "robot-axle", "spectra-99", "matrix-7", "cyber-pulse",
"unit-404", "titan-core", "synth-wave", "ionizer-5", "gearshift-88",
"mech-loop", "nano-shield", "ultra-piston", "laser-grid", "alpha-jet",
"servo-12", "byte-claw", "omega-circuit", "drone-77", "zeta-frame",
"rho-spark", "core-fusion", "hyper-rotor", "nano-sphere", "arc-29",
"xenon-flare", "plasma-rod", "ion-rider", "core-sigma", "proto-88",
"flux-torque", "robot-armature", "stellar-bolt", "quantum-relay", "zeta-
blade", "fusion-reactor", "delta-spark", "omega-thruster", "drone-19",
"mega-crank", "core-dynamo", "hyper-drive", "ion-pulse", "servo-900",
"alpha-shield", "neutron-link", "gear-lock", "vector-71", "ultra-
guard", "plasma-wave", "robot-fang", "matrix-88", "core-helix", "arc-
504", "synth-core", "omega-burst", "quantum-spike", "gamma-torque",
"proto-11", "laser-core", "robot-spire", "fusion-cell", "ion-drift",
"delta-node", "mega-unit", "core-surge", "xeno-lens", "ultra-pulse",
"servo-55", "arc-omega", "robot-kernel", "nano-core", "hyper-blade",
"plasma-ring", "quantum-array", "spectra-core", "drone-501", "omega-
vault", "core-prime", "zeta-engine"]
Input: delta-spark

CHECK YOUR ANSWER

Try your answer.

Run your program in your own editor, then paste its output below. This checks the stated output; it does not assess your full program. Practice attempts do not affect competition scores.

Use the question input above. Enter only the output.

Reveal worked answer

Your output

56

Count from index zero; delta-spark is at index 56.

Source: Girls in Code SEA 2025 Fall Competition, 29 November 2025. Booklet created by Emily Xu and the GIC question authors. Shared for non-commercial educational use with attribution, as permitted in the booklet.