Large Language Models (GPT) Struggle to Answer Multiple-Choice Questions about Code
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
- 2017Attention Is All You Needcited by 60,106
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2022Training language models to follow instructions with human feedbackcited by 15,856
- 2021Evaluating Large Language Models Trained on Codecited by 8,205
- 2020Measuring Massive Multitask Language Understandingcited by 7,876
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,133
- 2022Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answeringcited by 1,896
- 2022Competition-Level Code Generation with AlphaCodecited by 1,445
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 854
- 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 414
- 2023Augmented Language Models: a Surveycited by 403
- 2022Leveraging Large Language Models for Multiple Choice Question Answeringcited by 199
9 more
- 2022Can large language models reason about medical questions?cited by 194
- 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 99
- 2022Conversing with Copilot: Exploring Prompt Engineering for Solving CS1 Problems Using Natural Languagecited by 82
- 2022GPT Takes the Bar Examcited by 65
- 2023GPT as Knowledge Worker: A Zero-Shot Evaluation of (AI)CPA Capabilitiescited by 22
- 2021Solving Linear Algebra by Program Synthesiscited by 14
- 2022Codex Hacks HackerRank: Memorization Issues and a Framework for Code Synthesis Evaluationcited by 14
- 2022Fooling MOSS Detection with Pretrained Language Modelscited by 12
- 2022How Important are Good Method Names in Neural Code Generation? A Model Robustness Perspectivecited by 10
Built on by
Citing papers per year: 2023: 15; 2024: 13; 2025: 2; 2026: 2.
32 papers.
Sort:
By area:
- 2023Large Language Models Sensitivity to The Order of Options in Multiple-Choice Questionscited by 260
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 86
- 2023CodeHelp: Using Large Language Models with Guardrails for Scalable Support in Programming Classescited by 72
- 2023DISC-FinLLM: A Chinese Financial Large Language Model based on Multiple Experts Fine-tuningcited by 64
- 2023Generative Pre-trained Transformer: A Comprehensive Review on Enabling Technologies, Potential Applications, Emerging Challenges, and Future Directionscited by 55
- 2023Evaluating Large Language Models on a Highly-specialized Topic, Radiation Oncology Physicscited by 49
- 2024Puzzle Solving using Reasoning of Large Language Models: A Surveycited by 44
- 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Coursescited by 39
- 2023A Comparative Study of AI-Generated (GPT-4) and Human-crafted MCQs in Programming Educationcited by 35
- 2023Can GPT-4 Support Analysis of Textual Data in Tasks Requiring Highly Specialized Domain Expertise?cited by 30
- 2024Multiple-Choice Questions are Efficient and Robust LLM Evaluatorscited by 28
- 2023Harnessing LLMs in Curricular Design: Using GPT-4 to Support Authoring of Learning Objectivescited by 16
20 more
- 2024Feedback-Generation for Programming Exercises With GPT-4cited by 14
- 2023More Robots are Coming: Large Multimodal Models (ChatGPT) can Solve Visually Diverse Images of Parsons Problemscited by 11
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Coursecited by 11
- 2024Wait, that's not an option: LLMs Robustness with Incorrect Multiple-Choice Optionscited by 11
- 2024Generative AI in Education: A Study of Educators' Awareness, Sentiments, and Influencing Factorscited by 10
- 2024Analyzing Chat Protocols of Novice Programmers Solving Introductory Programming Tasks with ChatGPTcited by 8
- 2023Decoding Logic Errors: A Comparative Study on Bug Detection by Students and Large Language Modelscited by 6
- 2024GPT-Powered Elicitation Interview Script Generator for Requirements Engineering Trainingcited by 3
- 2023Evaluating GPT's Programming Capability through CodeWars' Katascited by 2
- 2023HANS, are you clever? Clever Hans Effect Analysis of Neural Systemscited by 2
- 2024"Give me the code" -- Log Analysis of First-Year CS Students' Interactions With GPTcited by 2
- 2024Seeing the Forest and the Trees: Solving Visual Graph and Tree Based Data Structure Problems using Large Multimodal Modelscited by 2
- 2024Interactions with Prompt Problems: A New Way to Teach Programming with Large Language Modelscited by 1
- 2025Affordably Fine-tuned LLMs Provide Better Answers to Course-specific MCQscited by 1
- 2025Students' Feedback Requests and Interactions with the SCRIPT Chatbot: Do They Get What They Ask For?cited by 1
- 2026Common Sense vs. Morality: The Curious Case of Narrative Focus Bias in LLMscited by 1
- 2023Can Generative Pre-trained Transformers (GPT) Pass Assessments in Higher Education Programming Courses?cited by 0
- 2024Impact of ChatGPT on the writing style of condensed matter physicistscited by 0
- 2024LLaMa-SciQ: An Educational Chatbot for Answering Science MCQcited by 0
- 2026Is Solving Better Than Evaluating GenAI Solutions?cited by 0
- 2026Is Solving Better Than Evaluating GenAI Solutions?30 Jul 2026
- 2026Common Sense vs. Morality: The Curious Case of Narrative Focus Bias in LLMs10 Mar 2026
- 2025Students' Feedback Requests and Interactions with the SCRIPT Chatbot: Do They Get What They Ask For?23 Jul 2025
- 2025Affordably Fine-tuned LLMs Provide Better Answers to Course-specific MCQs10 Jan 2025
- 2024Seeing the Forest and the Trees: Solving Visual Graph and Tree Based Data Structure Problems using Large Multimodal Models15 Dec 2024
- 2024"Give me the code" -- Log Analysis of First-Year CS Students' Interactions With GPT26 Nov 2024
- 2024LLaMa-SciQ: An Educational Chatbot for Answering Science MCQ25 Sep 2024
- 2024Impact of ChatGPT on the writing style of condensed matter physicists30 Aug 2024
- 2024Wait, that's not an option: LLMs Robustness with Incorrect Multiple-Choice Options27 Aug 2024
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Course30 Jul 2024
- 2024GPT-Powered Elicitation Interview Script Generator for Requirements Engineering Training17 Jun 2024
- 2024Analyzing Chat Protocols of Novice Programmers Solving Introductory Programming Tasks with ChatGPT29 May 2024
20 more
- 2024Multiple-Choice Questions are Efficient and Robust LLM Evaluators20 May 2024
- 2024Generative AI in Education: A Study of Educators' Awareness, Sentiments, and Influencing Factors22 Mar 2024
- 2024Feedback-Generation for Programming Exercises With GPT-47 Mar 2024
- 2024Puzzle Solving using Reasoning of Large Language Models: A Survey17 Feb 2024
- 2024Interactions with Prompt Problems: A New Way to Teach Programming with Large Language Models19 Jan 2024
- 2023A Comparative Study of AI-Generated (GPT-4) and Human-crafted MCQs in Programming Education5 Dec 2023
- 2023Decoding Logic Errors: A Comparative Study on Bug Detection by Students and Large Language Models27 Nov 2023
- 2023More Robots are Coming: Large Multimodal Models (ChatGPT) can Solve Visually Diverse Images of Parsons Problems3 Nov 2023
- 2023DISC-FinLLM: A Chinese Financial Large Language Model based on Multiple Experts Fine-tuning23 Oct 2023
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Education1 Oct 2023
- 2023HANS, are you clever? Clever Hans Effect Analysis of Neural Systems21 Sep 2023
- 2023Large Language Models Sensitivity to The Order of Options in Multiple-Choice Questions22 Aug 2023
- 2023CodeHelp: Using Large Language Models with Guardrails for Scalable Support in Programming Classes14 Aug 2023
- 2023Harnessing LLMs in Curricular Design: Using GPT-4 to Support Authoring of Learning Objectives30 Jun 2023
- 2023Can GPT-4 Support Analysis of Textual Data in Tasks Requiring Highly Specialized Domain Expertise?24 Jun 2023
- 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Courses15 Jun 2023
- 2023Evaluating GPT's Programming Capability through CodeWars' Katas31 May 2023
- 2023Generative Pre-trained Transformer: A Comprehensive Review on Enabling Technologies, Potential Applications, Emerging Challenges, and Future Directions11 May 2023
- 2023Evaluating Large Language Models on a Highly-specialized Topic, Radiation Oncology Physics1 Apr 2023
- 2023Can Generative Pre-trained Transformers (GPT) Pass Assessments in Higher Education Programming Courses?16 Mar 2023
- 2023Large Language Models Sensitivity to The Order of Options in Multiple-Choice Questionscited by 260
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 86
- 2023Generative Pre-trained Transformer: A Comprehensive Review on Enabling Technologies, Potential Applications, Emerging Challenges, and Future Directionscited by 55
- 2023Evaluating Large Language Models on a Highly-specialized Topic, Radiation Oncology Physicscited by 49
- 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Coursescited by 39
- 2023A Comparative Study of AI-Generated (GPT-4) and Human-crafted MCQs in Programming Educationcited by 35
- 2023Can GPT-4 Support Analysis of Textual Data in Tasks Requiring Highly Specialized Domain Expertise?cited by 30
- 2024Multiple-Choice Questions are Efficient and Robust LLM Evaluatorscited by 28
- 2023Harnessing LLMs in Curricular Design: Using GPT-4 to Support Authoring of Learning Objectivescited by 16
- 2024Feedback-Generation for Programming Exercises With GPT-4cited by 14
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Coursecited by 11
- 2024Wait, that's not an option: LLMs Robustness with Incorrect Multiple-Choice Optionscited by 11
12 most cited of 26 All 26 (JSON)
- 2026Is Solving Better Than Evaluating GenAI Solutions?30 Jul 2026
- 2026Common Sense vs. Morality: The Curious Case of Narrative Focus Bias in LLMs10 Mar 2026
- 2025Students' Feedback Requests and Interactions with the SCRIPT Chatbot: Do They Get What They Ask For?23 Jul 2025
- 2025Affordably Fine-tuned LLMs Provide Better Answers to Course-specific MCQs10 Jan 2025
- 2024"Give me the code" -- Log Analysis of First-Year CS Students' Interactions With GPT26 Nov 2024
- 2024Impact of ChatGPT on the writing style of condensed matter physicists30 Aug 2024
- 2024Wait, that's not an option: LLMs Robustness with Incorrect Multiple-Choice Options27 Aug 2024
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Course30 Jul 2024
- 2024GPT-Powered Elicitation Interview Script Generator for Requirements Engineering Training17 Jun 2024
- 2024Analyzing Chat Protocols of Novice Programmers Solving Introductory Programming Tasks with ChatGPT29 May 2024
- 2024Multiple-Choice Questions are Efficient and Robust LLM Evaluators20 May 2024
- 2024Generative AI in Education: A Study of Educators' Awareness, Sentiments, and Influencing Factors22 Mar 2024
12 newest of 26 All 26 (JSON)