2023

Large Language Models (GPT) Struggle to Answer Multiple-Choice Questions about Code

Savelka, Jaromir, Agarwal, Arav, Bogart, Christopher et al.

Understand

We analyzed effectiveness of three generative pre-trained transformer (GPT) models in answering multiple-choice question (MCQ) assessments, often involving short snippets of code, from introductory and intermediate programming courses at the postsecondary level.

  • This emerging technology stirs countless discussions of its potential uses (e.g., exercise generation, code explanation) as well as misuses in programming education (e.g., cheating).
  • However, the capabilities of GPT models and their limitations to reason about and/or analyze code in educational settings have been under-explored.
  • We evaluated several OpenAI's GPT models on formative and summative MCQ assessments from three Python courses (530 questions).

Reading the bibliography…