Skip to main content

Practice Calibration

Use this after attempting independent practice. These are calibration notes for the new cases, not answers to every original open-ended project. The module assessment retains its own scoring and evidence requirements.

Prerequisite calibration​

Return values and retained mutation are distinct observations; the trace must include the second call and the caller's list. Repair functions/aliasing in Programming Basics and S03 before C syntax.

A ready answer includes the example or trace requested in the entry check. A memorized term is not sufficient. Repair the named earlier skill, then change the example and explain it without this page.

Case A​

At most 3 data bytes fit. Exact-fit abc is distinguishable from overlong abcd; blank input is a successful empty line, not end-of-input. The module reader's draining rule decides the next call. Show terminator/accounting separately from status.

Full practice credit requires the result, assumptions and an explanation of the tempting error. A correctly guessed conclusion without those elements is only partial evidence.

Case B​

Only the terminator fits. Reject/drain the nonempty line under this API, then accept the blank line. No write outside the one-byte buffer; capacity 0 is a separate precondition case.

The key judgment is which guarantee survives the changed condition. Do not transfer a result from the first case without checking that condition.

Experiment calibration​

Use the existing C reader fixture. Compile with warnings, run the valid/capacity/input-error cases, and run supported sanitizers. Preserve a semantic mutant as well as a memory-error control; a clean sanitizer run does not prove all C behavior defined.

A usable record links the hypothesis to the actual input, observation and interpretation. The negative control must fail for the intended reason, and the repaired setup must pass the relevant check again. Report unexpected outcomes rather than altering the hypothesis afterward. Explicitly state the model, environment and untested boundary; passing a small fixture never proves every deployment behavior.

Recheck​

Explain a fresh variant without the key. Retain the original error, repair, help received and delayed result in the existing evidence packet. Self-calibration is not an independent reviewer sign-off or a learner-pilot result. For retrieval-question explanations, use quiz calibration only after attempting the quiz.