A recent arXiv preprint investigates whether large language models can capture the kinds of misconceptions that novice programmers exhibit. The authors evaluate 13 LLMs on four related tasks: generating, solving, simulating, and diagnosing these misconceptions in code-tracing problems.
The results, as summarized in the abstract, show a clear split by model size. Frontier models handle all four tasks reliably, while smaller models (those with 14 billion parameters or fewer) have difficulty, particularly with the dynamic elements of the tasks.
Because this is a single preprint, there are no other sources to compare or contrast. The findings are limited to what the abstract reports; full details on methodology and specific model names are not included in the available text.