ChatGPT, Can You Generate Solutions for my Coding Exercises? An Evaluation on its Effectiveness in an undergraduate Java Programming Course

05/23/2023
by   Eng Lieh Ouh, et al.
0

In this study, we assess the efficacy of employing the ChatGPT language model to generate solutions for coding exercises within an undergraduate Java programming course. ChatGPT, a large-scale, deep learning-driven natural language processing model, is capable of producing programming code based on textual input. Our evaluation involves analyzing ChatGPT-generated solutions for 80 diverse programming exercises and comparing them to the correct solutions. Our findings indicate that ChatGPT accurately generates Java programming solutions, which are characterized by high readability and well-structured organization. Additionally, the model can produce alternative, memory-efficient solutions. However, as a natural language processing model, ChatGPT struggles with coding exercises containing non-textual descriptions or class files, leading to invalid solutions. In conclusion, ChatGPT holds potential as a valuable tool for students seeking to overcome programming challenges and explore alternative approaches to solving coding problems. By understanding its limitations, educators can design coding exercises that minimize the potential for misuse as a cheating aid while maintaining their validity as assessment tools.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/31/2023

Exploring the Potential of Large Language Models to Generate Formative Programming Feedback

Ever since the emergence of large language models (LLMs) and related app...
research
10/20/2021

JavaBERT: Training a transformer-based model for the Java programming language

Code quality is and will be a crucial factor while developing new softwa...
research
08/07/2023

Spellburst: A Node-based Interface for Exploratory Creative Coding with Natural Language Prompts

Creative coding tasks are often exploratory in nature. When producing di...
research
05/18/2023

A framework for leveraging ChatGPT on programming tasks in energy systems

The rapid digitalization of energy sectors has led to a significant incr...
research
02/18/2023

Functional Programming and Streams

This document is intended as a stand-alone textbook chapter to be used f...
research
10/28/2020

TopicModel4J: A Java Package for Topic Models

Topic models provide a flexible and principled framework for exploring h...
research
06/30/2022

GitHub Copilot AI pair programmer: Asset or Liability?

Automatic program synthesis is a long-lasting dream in software engineer...

Please sign up or login with your details

Forgot password? Click here to reset