Diagnostic B — Script Debugging & Error Trapping
The recommended follow-on to the Day-1 quiz. You already know what the steps are; this assessment tests whether you can diagnose why a script failed and apply the standard guard.
What changed from Day 1
Day 1 asked “what does this step do?” — mostly Apply/Analyse. Diagnostic B presents short, broken scripts and asks for the failure point, the correct fix, or the first diagnostic step — mostly Analyse/Evaluate.
Scripts covered
Startup & triggers · navigation & Original Layout · scripted find · Set Error Capture ·
Get ( LastError ) · new record & foreign key · Commit Records · loops & Exit after last ·
delete-in-loop · import · Freeze Window · Set Field on unstored calculations · Script Debugger workflow.
Blueprint
| Domain | Items | Level | Covers |
|---|---|---|---|
| Navigation & context | 3 | Understand / Analyse | Original Layout, TO context, Freeze Window |
| Find & error trapping | 4 | Analyse / Apply | Set Error Capture, FoundCount, LastError, find-in-loop |
| Record creation & keys | 3 | Apply / Analyse | New Record context, Commit, unstored calcs |
| Loops & found sets | 3 | Analyse | Exit after last, delete-in-loop, set mutation |
| Triggers & startup | 2 | Understand / Analyse | OnFirstWindowOpen, recursion guard |
| Debugging judgement | 1 | Evaluate | Script Debugger as first step |
Item rules (unchanged)
- Every stem is a broken script or a concrete scenario — never “which step does X?”.
- Distractors are real beginner fixes (increase loop count, add a dialog, turn the trigger off).
- No “all of the above”, no negative stems.
- Correct answer spread evenly: 4 × A, 4 × B, 4 × C, 4 × D.
- Each item records ID, domain, level, correct answer, rationale and the misconception behind every distractor.
Scoring model
Identical to the Day-1 spec so the two results are directly comparable.
| Measure | Formula |
|---|---|
| Percentage | Correct / 16 × 100 |
| Absolute gain | Post % − Pre % |
| Normalised gain | (Post − Pre) / (100 − Pre) |
| Domain profile | Score per domain |
Bands
| Gain | Reading | Action |
|---|---|---|
| ≥ 0.70 | High | Move to the Script Debugger lab |
| 0.30–0.69 | Medium | Revisit the weakest script domain |
| < 0.30 | Low | Rebuild the four guard patterns with worked examples |
Why confidence still matters
A learner who is sure and wrong about Set Error Capture will ship broken scripts for months.
The confidence matrix flags exactly that — it is the highest-value signal in a debugging diagnostic.
Recommended next step
After Diagnostic B
If normalised gain ≥ 0.70 and no domain is below 60%, the learner is ready for the step that actually builds fluency:
Diagnostic C — “Build it, don’t answer it.”
A short practical task bank (4–6 tasks), each with a broken starter file and three checkable outcomes: a script that finds correctly with zero results, a record-creation script that keeps its foreign key, and a loop that survives a shrinking found set. Scored with a rubric, not a key.
Day-30 retention
Re-run Diagnostic B at day 30 and divide by the post-test score. A ratio below 0.7 on the find/error-trapping domain specifically indicates the guards were memorised, not internalised.
Comments
Post a Comment