# ChatGPT for Education and Research: Opportunities, Threats, and Strategies
## 5 Survey on ChatGPT Language Model for Programming Learning and Teaching Support  
We conducted a comprehensive survey on how ChatGPT supports programming learning and teaching among undergraduate, Master's, and doctoral students and teachers. The purpose of the survey was to learn how ChatGPT supports programming learning and teaching. Our survey included several questions, such as the respondents' identification, current programming experience, whether they receive programming learning and teaching support from ChatGPT, how useful this support is in solving programming problems and teaching, and how satisfied they are with this support. The questionnaire for students was related to programming learning support and for teachers, to teaching support. In this section, we present the results of the survey in detail.  
Figure 10: Code review and optimization using ChatGPT. (**a**) Erroneous code with a TLE error decision. (**b**) Suggestions and optimized code provided by ChatGPT.  
Of the participating students, 61.3% (35.5% first year, 16.1% second year, 6.5% third year, and 3.2% fourth year) were undergraduate students, 32.2% (16.1% first year and 16.1% second year) were Master's students, and 6.5% were second-year doctoral students. Figure 11 depicts the students' participation in this survey.  
We asked students to rate their programming experiences on a scale of 1 to 5, and received a score of 1/5 from about 29% of students, 2/5 from 25.8%, 3/5 from 25.8%, 4/5 from 9.7%, and 5/5 from 9.7%. We found that most students rated their programming experiences between 1/5 and 3/5. Figure 12 shows the programming skills of the participating students.  
In response to the question _\"Have you taken help/support from ChatGPT for solving programming problems?\"_, 78.8% of the students answered _\"Yes\"_ and 21.2% answered _\"No\"_. These results show that a large number of students have taken the support of ChatGPT for their programming learning. By asking the question _\"Do ChatGPT's suggestions help you in solving programming problems?\"_, we tried to assess how ChatGPT suggestions help students. We found that about 86.7% of the students answered _\"Yes\"_. Moreover, we asked students _\"What kind of problems have you solved with the help of ChatGPT?\"_ and gave them two options, _\"simple problem\"_ and _\"complex problem\"_. The answers were interesting: about 59.3% of students used ChatGPT to solve their _\"complex\"_ problems and about 40.7% of students used ChatGPT to solve _\"simple\"_ problems. To evaluate the usefulness of ChatGPT for learning programming, 92.9% of the students answered _\"Yes\"_. Finally, we asked students, _\"How satisfied are you with the use of ChatGPT? Please give a rating on a scale 1-5.\"_ and received a rating of 1/5 from 3.3% of students, 2/5 from 10%, 3/5 from 30%, 4/4 from 36.6%, and 5/5  
Figure 11: Student participation statistics in the survey.  
Figure 12: Programming experience (on a scale of 1 to 5) of the students who participated in the survey.  
from 20%. It can be seen that most students were satisfied with the programming support provided by ChatGPT.  
On the other hand, a similar type of survey was conducted with teachers to evaluate how ChatGPT supports programming teaching and research. To the question _\"Have you taken help/support from ChatGPT for teaching programming?\"_, about 60% of the teachers answered _\"Yes\"_. For questions about programming teaching and research, most teachers were satisfied with the suggestions provided by ChatGPT.