mlsanityData to 13 Oct 2026

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

arXiv 2303.08033 ↗First posted 9 Mar 2023cs.CL cs.AIcited by 32

Not on the map. Why?

Abstract (arXiv)

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). We found that MCQs containing code snippets are not answered as successfully as those that only contain natural language. While questions requiring to fill-in a blank in the code or completing a natural language statement about the snippet are handled rather successfully, MCQs that require analysis and/or reasoning about the code (e.g., what is true/false about the snippet, or what is its output) appear to be the most challenging. These findings can be leveraged by educators to adapt their instructional practices and assessments in programming courses, so that GPT becomes a valuable assistant for a learner as opposed to a source of confusion and/or potential hindrance in the learning process.

Key facts. Cited by 32 papers in the map (data through 13 Oct 2026). Builds on 21 of its 40 references that are in the map. First posted on arXiv 9 Mar 2023.

Builds on

21 of 40 references.

References · 21

  1. 2017Attention Is All You Needcited by 60,106
  2. 2020Language Models are Few-Shot Learnerscited by 32,320
  3. 2022Training language models to follow instructions with human feedbackcited by 15,856
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,205
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,876
  6. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,133
  7. 2022Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answeringcited by 1,896
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,445
  9. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 854
  10. 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 414
  11. 2023Augmented Language Models: a Surveycited by 403
  12. 2022Leveraging Large Language Models for Multiple Choice Question Answeringcited by 199
9 more
  1. 2022Can large language models reason about medical questions?cited by 194
  2. 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 99
  3. 2022Conversing with Copilot: Exploring Prompt Engineering for Solving CS1 Problems Using Natural Languagecited by 82
  4. 2022GPT Takes the Bar Examcited by 65
  5. 2023GPT as Knowledge Worker: A Zero-Shot Evaluation of (AI)CPA Capabilitiescited by 22
  6. 2021Solving Linear Algebra by Program Synthesiscited by 14
  7. 2022Codex Hacks HackerRank: Memorization Issues and a Framework for Code Synthesis Evaluationcited by 14
  8. 2022Fooling MOSS Detection with Pretrained Language Modelscited by 12
  9. 2022How Important are Good Method Names in Neural Code Generation? A Model Robustness Perspectivecited by 10

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2023: 15; 2024: 13; 2025: 2; 2026: 2.

32 papers.

Sort:

By area:

  1. 2023Large Language Models Sensitivity to The Order of Options in Multiple-Choice Questionscited by 260
  2. 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 86
  3. 2023CodeHelp: Using Large Language Models with Guardrails for Scalable Support in Programming Classescited by 72
  4. 2023DISC-FinLLM: A Chinese Financial Large Language Model based on Multiple Experts Fine-tuningcited by 64
  5. 2023Generative Pre-trained Transformer: A Comprehensive Review on Enabling Technologies, Potential Applications, Emerging Challenges, and Future Directionscited by 55
  6. 2023Evaluating Large Language Models on a Highly-specialized Topic, Radiation Oncology Physicscited by 49
  7. 2024Puzzle Solving using Reasoning of Large Language Models: A Surveycited by 44
  8. 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Coursescited by 39
  9. 2023A Comparative Study of AI-Generated (GPT-4) and Human-crafted MCQs in Programming Educationcited by 35
  10. 2023Can GPT-4 Support Analysis of Textual Data in Tasks Requiring Highly Specialized Domain Expertise?cited by 30
  11. 2024Multiple-Choice Questions are Efficient and Robust LLM Evaluatorscited by 28
  12. 2023Harnessing LLMs in Curricular Design: Using GPT-4 to Support Authoring of Learning Objectivescited by 16
20 more
  1. 2024Feedback-Generation for Programming Exercises With GPT-4cited by 14
  2. 2023More Robots are Coming: Large Multimodal Models (ChatGPT) can Solve Visually Diverse Images of Parsons Problemscited by 11
  3. 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Coursecited by 11
  4. 2024Wait, that's not an option: LLMs Robustness with Incorrect Multiple-Choice Optionscited by 11
  5. 2024Generative AI in Education: A Study of Educators' Awareness, Sentiments, and Influencing Factorscited by 10
  6. 2024Analyzing Chat Protocols of Novice Programmers Solving Introductory Programming Tasks with ChatGPTcited by 8
  7. 2023Decoding Logic Errors: A Comparative Study on Bug Detection by Students and Large Language Modelscited by 6
  8. 2024GPT-Powered Elicitation Interview Script Generator for Requirements Engineering Trainingcited by 3
  9. 2023Evaluating GPT's Programming Capability through CodeWars' Katascited by 2
  10. 2023HANS, are you clever? Clever Hans Effect Analysis of Neural Systemscited by 2
  11. 2024"Give me the code" -- Log Analysis of First-Year CS Students' Interactions With GPTcited by 2
  12. 2024Seeing the Forest and the Trees: Solving Visual Graph and Tree Based Data Structure Problems using Large Multimodal Modelscited by 2
  13. 2024Interactions with Prompt Problems: A New Way to Teach Programming with Large Language Modelscited by 1
  14. 2025Affordably Fine-tuned LLMs Provide Better Answers to Course-specific MCQscited by 1
  15. 2025Students' Feedback Requests and Interactions with the SCRIPT Chatbot: Do They Get What They Ask For?cited by 1
  16. 2026Common Sense vs. Morality: The Curious Case of Narrative Focus Bias in LLMscited by 1
  17. 2023Can Generative Pre-trained Transformers (GPT) Pass Assessments in Higher Education Programming Courses?cited by 0
  18. 2024Impact of ChatGPT on the writing style of condensed matter physicistscited by 0
  19. 2024LLaMa-SciQ: An Educational Chatbot for Answering Science MCQcited by 0
  20. 2026Is Solving Better Than Evaluating GenAI Solutions?cited by 0