Subgoals, Context, and Worked Examples in Learning Computing Problem Solving
Morrison, B. B., Margulieux, L. E., & Guzdial, M. · 2015
Current published assessment
Assessment status: Not yet compared
The published assessment remains the archive’s current judgment. Stored model readings are preserved separately and never replace it automatically.
There are multiple stored readings, but no claim-by-claim comparison has been recorded.
Bottom line
Current archive record
In a one-session lab study of 66 college programming students, labeling steps in worked-out solutions did not reliably improve problem solving overall. The overall benefit seen in math and science did not repeat here. Scores depended on how labels and practice problems were paired, but no independent study has repeated that result. The researchers designed all tests, and nearly a third of participants were excluded.
Read the full explanation
What was found
Labeling the steps of worked-out solutions did not reliably help college beginners solve programming problems overall. These labels are called subgoal labels. Giving students such labels has an established benefit in math and science. Here, the authors say, the gains "did not replicate as expected." They suggest that computer science "may require different kinds of problem-solving or may generate different cognitive demands than mathematics or science."
The study asked whether writing subgoal labels would work better than receiving them. It compared three formats: no labels, labels supplied to the student, and labels the student wrote themselves. Each was paired with practice problems that either had the same structure as the example or put the idea in a different setting.
- Format made no significant overall difference to problem-solving scores.1
- The kind of practice problem made no significant overall difference either.2
- Format and practice type mattered together. With same-structure practice, students given labels scored lowest among the three formats. With different-setting practice, they scored highest. Students writing their own labels scored higher with same-structure practice than with different-setting practice. This pattern was statistically significant.3
- On a short multiple-choice test at the end, nothing was significant: not format, not practice-problem type, and not their pairing.4
- Time spent differed by format, practice type, and their pairing. The record gives no group times or direction, so it does not say which was quicker.5
The main score counted correct lines of code on new while-loop problems, out of 44. A while loop repeats instructions while a condition remains true. Higher scores mean more correct code; the record gives no passing or mastery threshold.
| Example format | Average score with same-structure practice | Average score with different-setting practice |
|---|---|---|
| Labels supplied | 12.1 | 25.5 |
| Labels written by the student | 25.6 | 17.5 |
| No labels | 18.1 | 11.1 |
For students given labels, the different-setting group scored significantly higher than the same-structure group. The gap was just over one standard deviation, a measure of how spread out students' scores were.3 The no-label, same-structure group also averaged more than the given-label, same-structure group, but the record reports no significance test for that comparison.
Who took part
The analyzed sample contained 66 students at a technical university in the southeastern United States, drawn from four introductory programming courses. Their average age was 21, 89% were male, and 50% were computer science majors.6 They took part before their courses had formally covered while loops and received lab credit. Assignment was random; after exclusions, each of the six groups contained 11 students. All worked in a single session. The tasks used pseudo-code, code-like instructions independent of any one programming language. These were college students, not children.
What limits the conclusion
- The positive result is fragile. The pattern of scores reversing across practice types comes from one 66-person, single-session lab study, and no independent study has replicated it.
- Nearly a third of participants were dropped. Of 96 who took part, 30 were excluded (31%). Students were dropped if they did not attempt every task or scored above 2 of 5 on the pre-test. The researchers then randomly removed students from larger groups to leave exactly 11 in each group. Equal group sizes were the stated reason for those further removals; the record gives no further justification.
- Scores stayed near the bottom. Students averaged 24% on the pre-test (1.2 of 5), and 32% of the analyzed sample scored zero on that pre-test. They averaged 31% on the end test (1.5 of 5), still near the bottom, which is why the end test detected nothing.
- The researchers designed all learning materials and tests. The main measure was the code-writing score above; the end test was a five-item multiple-choice quiz.
- The failure appears in the field's own foundational programming paper. The lab that produced it went on to build the research on subgoal labels in computer science. Later positive papers rarely highlight this failure.
Students' own comfort with programming and earlier experience with while loops both predicted how well they did. Neither differed between the groups.7
Footnotes
-
F(2, 60) = 2.16, MSE = 123.5, p = .13, estimated omega-squared = .07. F tests group differences against the spread of students' scores; its parentheses give degrees of freedom, numbers describing the comparison and data available. MSE estimates variation within groups. Smaller p values give stronger evidence against no difference. Omega-squared estimates the fraction of score variation associated with the factor or pairing tested. ↩
-
Reported practice-type test: F(2, 60) = 0.04, MSE = 123.5, p = .83, estimated omega-squared = .001. ↩
-
Interaction (the effect of the pairing): F(2, 60) = 6.5, MSE = 123.5, p = .003, estimated omega-squared = .18. SD means standard deviation, describing how spread out scores were within a group. With given labels, SD was 13.5 for same-structure practice and 11.4 for different-setting practice; with self-written labels, 8.7 and 11.5 respectively. Given labels, same-structure vs different-setting: t(20) = −2.51, p = .021, effect size d = 1.07. The t test compares two averages; 20 is its degrees of freedom. The d value expresses the gap in units of the spread of scores within the groups. ↩ ↩2
-
Format F(2, 60) = 0.39, p = .68; practice-problem type F(2, 60) = 0.83, p = .37; interaction F(2, 60) = 1.63, p = .21. ↩
-
Time spent on each example and practice-problem pair: format F(2, 60) = 6.55, p = .003, estimated omega-squared = .18; practice-problem type F(2, 60) = 6.24, p = .015; interaction F(2, 60) = 4.48, p = .015. ↩
-
Average college grade (GPA) was 3.1; the record does not specify the grading scale. The full paper was read and selected numbers were spot-checked; the reader is unnamed. ↩
-
The correlation r measures how strongly two things vary together; positive values here mean more comfort or experience went with higher performance. Self-reported programming comfort: r = .47, p < .001. Earlier while-loop experience: r = .29, p = .018. ↩
Replication
Replication asks whether a result appears again when a study is repeated with a new sample. Independent repetition matters most because it tests whether the finding survives beyond the original team and setting.
Effect size (g, d)
An effect size states how big a difference is in units of the spread of scores, so results from different tests can be compared. A g of 0.4 means the treated group's average sits 0.4 standard deviations above the comparison group's — enough to move a median student to roughly the 66th percentile. (g and d are near-identical variants; g corrects a small-sample bias.)
Rough anchors: 0.1 is small and hard to distinguish from noise in most classroom studies; 0.2–0.4 is a solid, real intervention effect; above 0.6 is rare in well-controlled trials of school-age academics and deserves suspicion before celebration.
Two cautions. The same true improvement yields a bigger number on a narrow researcher-built test than on a broad standardized one (see measure alignment). And an effect measured the week treatment ends usually shrinks by follow-up (see fadeout) — so a headline number without its test and its timing is not yet information.
Results
- Outcome
Main effect of worked-example format (no labels vs labels given vs labels generated) on programming problem-solving performance
Result 1ResultNULL: F(2, 60) = 2.16, MSE = 123.5, p = .13, est. omega-squared = .07
Reported as: ANOVA F and omega-squared
Compared withactive-alternative
Timingsingle session
Technical details
- Measure
- researcher-designed
- Measure origin
- Not recorded
- Horizon
- end-of-treatment
- Outcome class
- domain-skill
How the study worked
The recorded sample, comparison, methods, and practical details.
Sample
Who or what was studied
How the study worked
How much confidence should we place in this?
Limits of the research itself, separate from checks on this interpretation.