Home / Current Issue / Paper 1725396
The Trustworthiness of AI-Generated Code: A Survey of How Students and Working Professionals Trust, Check and Use Code Written by Generative AI
Subject area: Management and Commerce · Area of research: Artificial Intelligence and Generative AI
Abstract
Generative AI tools such as ChatGPT and GitHub Copilot now produce a growing share of the code used by students and working professionals, yet earlier studies show that such code can be incorrect, insecure or difficult to maintain. This paper examines how much people trust AI-generated code, whether they check it before use, and how closely the two are aligned. A descriptive, quantitative survey was run with a structured Google Forms questionnaire distributed through convenience sampling between 8 and 25 October 2026, and 16 valid responses from people who use AI for coding were analysed using frequencies, percentages and mean scores. As its main contribution, the paper proposes a Verification Gap (VG), defined as the percentage of respondents with high trust minus the percentage with high verification, together with a four-group Trust-Verification Matrix that classifies users as calibrated, at-risk, cautious or disengaged. Of the respondents, 68.8% use AI for coding daily, 68.8% report high trust in the code and 56.3% both check and test it, giving a VG of 12.5 percentage points; 18.8% are at-risk users who trust the code without both checking and testing it. Perceived correctness (mean 4.25 of 5) exceeded perceived safety (mean 3.63), and 37.5% of respondents had met security issues. The findings are interpreted against published evidence on correctness, security and developer trust. Because they rest on a very small, self-reported, non-probability sample, they are exploratory and cannot be generalised.
Keywords
AI-generated code, code verification, developer trust, generative AI, software security, survey, trustworthiness, Verification Gap
References
[1] Chen M, et al. Evaluating large language models trained on code. arXiv [Preprint]. 2021. arXiv:2107.03374.
[2] Pearce H, Ahmad B, Tan B, Dolan-Gavitt B, Karri R. Asleep at the keyboard? Assessing the security of GitHub Copilot’s code contributions. In: 2022 IEEE Symposium on Security and Privacy (SP); 2022. Also published in: Communications of the ACM. 2025;68(2):96–105.
[3] Perry N, Srivastava M, Kumar D, Boneh D. Do users write more insecure code with AI assistants? In: Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security (CCS); 2023. arXiv:2211.03622.
[4] Veracode. 2025 GenAI code security report [Internet]. Burlington, MA: Veracode; 2025 Jul 30 [cited 2026 Aug 18]. Available from: https://www.veracode.com
[5] Stack Overflow. 2025 Developer Survey: AI [Internet]. 2025. Available from: https://survey.stackoverflow.co/2025/ai
[6] Kasneci E, et al. ChatGPT for good? On opportunities and challenges of large language models for education. Learning and Individual Differences. 2023;103:102274. https://doi.org/10.1016/j.lindif.2023.102274
[7] Ji Z, et al. Survey of hallucination in natural language generation. ACM Computing Surveys. 2023;55(12):248:1–38. https://doi.org/10.1145/3571730
[8] Creswell JW, Creswell JD. Research design: qualitative, quantitative, and mixed methods approaches. 5th ed. Thousand Oaks, CA: SAGE; 2018.
[9] Anthropic. Claude [large language model; Internet]. 2026 [cited 2026 Nov 6]. Available from: https://claude.ai
[10] OpenAI. ChatGPT [large language model; Internet]. 2026. Available from: https://chatgpt.com
How to cite this paper
@article{1725396,
author = {Vrushali Godse, Vidya Salunke, Mansi Sawant, Sanika Sawant},
title = {The Trustworthiness of AI-Generated Code: A Survey of How Students and Working Professionals Trust, Check and Use Code Written by Generative AI},
journal = {Iconic Research And Engineering Journals},
year = {2026},
volume = {10},
number = {5},
pages = {4822-4832},
issn = {2456-8880},
url = {https://www.irejournals.com/formatedpaper/1725396.pdf},
abstract = {Generative AI tools such as ChatGPT and GitHub Copilot now produce a growing share of the code used by students and working professionals, yet earlier studies show that such code can be incorrect, insecure or difficult to maintain. This paper examines how much people trust AI-generated code, whether they check it before use, and how closely the two are aligned. A descriptive, quantitative survey was run with a structured Google Forms questionnaire distributed through convenience sampling between 8 and 25 October 2026, and 16 valid responses from people who use AI for coding were analysed using frequencies, percentages and mean scores. As its main contribution, the paper proposes a Verification Gap (VG), defined as the percentage of respondents with high trust minus the percentage with high verification, together with a four-group Trust-Verification Matrix that classifies users as calibrated, at-risk, cautious or disengaged. Of the respondents, 68.8% use AI for coding daily, 68.8% report high trust in the code and 56.3% both check and test it, giving a VG of 12.5 percentage points; 18.8% are at-risk users who trust the code without both checking and testing it. Perceived correctness (mean 4.25 of 5) exceeded perceived safety (mean 3.63), and 37.5% of respondents had met security issues. The findings are interpreted against published evidence on correctness, security and developer trust. Because they rest on a very small, self-reported, non-probability sample, they are exploratory and cannot be generalised.},
keywords = {AI-generated code, code verification, developer trust, generative AI, software security, survey, trustworthiness, Verification Gap},
month = {November},
}