Readiness
Is your child ready to try CSP-J?

Use two short tasks to see whether to practise code reading, writing a program or working through past papers.
- Trace on paperWrite down what the loop prints on each pass.
- Write and runCount values at or above the threshold. Test a value exactly on it.
CSP-J is the entry-level track of China Computer Federation’s programming certification. These two at-home exercises help you choose what to practise next.
Task 1 · Trace a loop on paper
Ask your child to write down each value printed. Then ask why the total stays the same when the loop reads 5.
int a[] = {2, 5, 1, 6};
int s = 0;
for (int x : a) {
if (x % 2 == 0) {
s += x;
}
std::cout << s << ' ';
}
The output is 2 2 2 8. The print statement runs on every iteration. Only even values change the total.
Task 2 · Write and test a short program
Read the number of values and a threshold, then count the values greater than or equal to that threshold. For input 5 6 and the list 4 6 7 6 2, the expected answer is 3. With a threshold of 6, ask the child to predict and test 6 6 6 and 0 1 5. The answers are 3 and 0.
Decide what to practise next
- Needs prompts for both. Start with conditions and loops. Have the child trace a tiny case before typing.
- Can trace but struggles to write. Practise reading input, updating a counter and inventing one extra test.
- Can write but skips steps while tracing. Record the variable and the output separately after each iteration.
- Can do both and explain why. Try a past round-one paper and one introductory round-two problem. Use several tasks to check speed and consistency.
See the official NOI past-paper archive (Chinese) and the current announcements (Chinese) before planning registration. You can practise the comparison step in Python Pasture.
What to watch as a parent
Ask the student to predict the result before tracing or running a program. Prompts such as “read that condition again” and “try this input too” are useful. Record which prompts were needed. Watch four actions: reading, explaining, implementing and inventing a test.
| Observation | Next practice |
|---|---|
| Reads “at least” as strictly greater | Compare one below, equality and one above the threshold |
| Can explain the logic but gets stuck on input | Practise reading and counting a tiny input. Print one intermediate value. |
| Stops when the sample passes | Predict results for all matching, none matching and mixed inputs |
| Finishes independently but cannot explain why | Change the numbers and trace when the state changes or stays the same |
Move from home practice to past papers
Start untimed and keep track of which actions were independent. Repeat with a parallel problem and see if the student needs fewer prompts. Once the process is steady, try a short timed exercise. The home tasks locate a skill to practise. For eligibility, rounds and venue rules, check the notice for your cycle using the CCF 2026 announcement as an example.