Computer Science Education in ChatGPT Era: Experiences from an Experiment in a Programming Course for Novice Programmers

A randomized trial of 182 novice programming students found that those encouraged to use ChatGPT scored about the same as those asked not to: 65.3% against 66.7% on lab work, and 66.0% against 66.6% on paper midterms.

Kosar et al., Mathematics (MDPI) 12(5), 629, February 21, 2024. AI used: ChatGPT (GPT-3.5)

Verdict

Verdict: High

What High means

Model vintage

ChatGPT (GPT-3.5)

First-year students in a selective C++ object-oriented programming course at one Slovenian university, in a course redesigned around the tool.

So what for leaders

  1. If you train new hires with AI available, try assessing them the way this course did: have them defend their work, and test them with the tool switched off.

Use this

Copies the finding, how far it generalizes and a link to this scorecard.

Cite this studyRead the paperDownload chart as SVG
  1. Do not read this null as proof the tool is harmless for learning; the study did not test for equivalence.

Keep track of this study

Watch it and I'll email you if it's corrected, re-run or retracted, or a new study on the same kind of work is published. Nothing else. Save it to a pack for your next deck. Alerts aren't switched on yet. Your watches are kept, and the first email goes out when they are.

Just want the newsletter? Subscribe on Substack

The receipts

Setting
Real work
Number studied (sample size)
182
Design
Randomized trial
Publication
Journal article
Model vintage
ChatGPT (GPT-3.5)

How far it generalizes

First-year students in a selective C++ object-oriented programming course at one Slovenian university, in a course redesigned around the tool. It may not travel to other courses, less selected students or assessment without defenses and paper exams.

Levels, by arm and outcome

Levels as reported, not effects of AI

  • Group I, students encouraged to use ChatGPT for lab assignmentsAverage lab work score, as a percentage of points65.27%
  • Group II, students asked not to use ChatGPTAverage lab work score, as a percentage of points66.72%
  • Group I, students encouraged to use ChatGPT for lab assignmentsOverall midterm exam score, average of two paper-based midterms, as a percentage65.96%
  • Group II, students asked not to use ChatGPTOverall midterm exam score, average of two paper-based midterms, as a percentage66.58%
Show as table
Levels, by arm and outcome
ArmOutcomeEstimateIntervalUnitBetter whenSource
Group I, students encouraged to use ChatGPT for lab assignmentsAverage lab work score, as a percentage of points65.27No interval reportedPercent (%)HigherSection 5.2, Table 4
Group II, students asked not to use ChatGPTAverage lab work score, as a percentage of points66.72No interval reportedPercent (%)HigherSection 5.2, Table 4
Group I, students encouraged to use ChatGPT for lab assignmentsOverall midterm exam score, average of two paper-based midterms, as a percentage65.96No interval reportedPercent (%)HigherSection 5.2, Table 5, Overall
Group II, students asked not to use ChatGPTOverall midterm exam score, average of two paper-based midterms, as a percentage66.58No interval reportedPercent (%)HigherSection 5.2, Table 5, Overall

Design

Design
Randomized trial
Number studied (sample size)
182
Setting
Real work
How I found it
Mined from Maier et al. 2026 (scout batch 6, round 2), 2026-11-15

Who it applies to

Functions
Education and training
Roles
Students

Critique

What the study did well. Technical staff did the random split and kept it from the lecturer. Lab work was graded through a live defense of an extended version of each assignment, and the midterms were on paper with no computers, so the grades test what students understood (Section 5.2).

Hole 1: not registered, and partly per-protocol. No analysis plan is cited, and students in the no-ChatGPT group who admitted using it were dropped after the split.

Hole 2: use was encouraged, not measured. How much the encouraged group used ChatGPT, and how much the other group used it quietly, rests on a questionnaire that not everyone answered.

Hole 3: no gap is not the same as no effect. The paper shows no equivalence test, the course was redesigned to blunt the tool's effect, and the lecturer who ran it also graded.

Business significance

This is one course's evidence: the trial detected no difference in grades between the groups when assessment was built to check understanding. The gaps are about a point or less, both in favor of the group asked not to use it. The paper measures no time saved and no cost.

Does it still hold?

Not re-run. Students used ChatGPT (GPT-3.5) in early 2023. Current models are far more capable on beginner assignments, which makes the defense-and-paper-exam design matter more. That is untested.

Cite this

The paper

Plain

Kosar, Tomaž, Ostojić, Dragana, Liu, Yu David, and Mernik, Marjan (2024). Computer Science Education in ChatGPT Era: Experiences from an Experiment in a Programming Course for Novice Programmers. Mathematics (MDPI) 12(5), 629. https://doi.org/10.3390/math12050629

APA

Kosar, Tomaž, Ostojić, Dragana, Liu, Yu David, & Mernik, Marjan. (2024). Computer Science Education in ChatGPT Era: Experiences from an Experiment in a Programming Course for Novice Programmers. Mathematics (MDPI) 12(5), 629. https://doi.org/10.3390/math12050629

BibTeX

@article{kosar-chatgpt-novice-course-2024,
  author = {Kosar, Tomaž and Ostojić, Dragana and Liu, Yu David and Mernik, Marjan},
  title = {Computer Science Education in ChatGPT Era: Experiences from an Experiment in a Programming Course for Novice Programmers},
  journal = {Mathematics (MDPI) 12(5), 629},
  year = {2024},
  doi = {10.3390/math12050629},
}

My scorecard

Plain

New Baseline (2026). A randomized trial of 182 novice programming students found that those encouraged to use ChatGPT scored about the same as those asked not to: 65.3% against 66.7% on lab work, and 66.0% against 66.6% on paper midterms. Verdict: High; First-year students in a selective C++ object-oriented programming course at one Slovenian university, in a course redesigned around the tool. It may not travel to other courses, less selected students or assessment without defenses and paper exams. https://www.newbaseline.ai/studies/kosar-chatgpt-novice-course-2024 Accessed December 5, 2026.

APA

New Baseline. (2026). A randomized trial of 182 novice programming students found that those encouraged to use ChatGPT scored about the same as those asked not to: 65.3% against 66.7% on lab work, and 66.0% against 66.6% on paper midterms. Retrieved December 5, 2026, from https://www.newbaseline.ai/studies/kosar-chatgpt-novice-course-2024

BibTeX

@misc{kosar-chatgpt-novice-course-2024-newbaseline,
  author = {{New Baseline}},
  title = {A randomized trial of 182 novice programming students found that those encouraged to use ChatGPT scored about the same as those asked not to: 65.3\% against 66.7\% on lab work, and 66.0\% against 66.6\% on paper midterms.},
  year = {2026},
  howpublished = {\url{https://www.newbaseline.ai/studies/kosar-chatgpt-novice-course-2024}},
  note = {Verdict: High; First-year students in a selective C++ object-oriented programming course at one Slovenian university, in a course redesigned around the tool. It may not travel to other courses, less selected students or assessment without defenses and paper exams. Accessed December 5, 2026.},
}

A result

Cite a result
  • Group I, students encouraged to use ChatGPT for lab assignments (Average lab work score, as a percentage of points): 65.27%, no interval reported, Section 5.2, Table 4. In Kosar et al. 2024.

  • Group II, students asked not to use ChatGPT (Average lab work score, as a percentage of points): 66.72%, no interval reported, Section 5.2, Table 4. In Kosar et al. 2024.

  • Group I, students encouraged to use ChatGPT for lab assignments (Overall midterm exam score, average of two paper-based midterms, as a percentage): 65.96%, no interval reported, Section 5.2, Table 5, Overall. In Kosar et al. 2024.

  • Group II, students asked not to use ChatGPT (Overall midterm exam score, average of two paper-based midterms, as a percentage): 66.58%, no interval reported, Section 5.2, Table 5, Overall. In Kosar et al. 2024.