ChatGPT passes the 2022 AP Computer Science A free response section

# · 🔥 418 · 💬 441 · one year ago · gist.github.com · bshanks · 📷
For fun, I had ChatGPT take the free response section of the 2022 AP Computer Science A exam. Methodology For each question, I pasted in the full text of the question and took the response given. I tried each question once and took the response given: no cherry-picking. For readability, I've added indentation in some cases, and included method signatures where they were provided in the question and ChatGPT only provided a body. I excluded the initial instructions at the top of the exam booklet, the "Class information for this question" boxes, and instructions about where/how to write the response in the free response booklet. For questions with a part and, I pasted in the full question up to the end of part, got the response for part, then pasted in just part and got the answer to that part. Question 1, point 6: initializes a new Game each time instead of calling methods on this Question 4, point 4: off-by-one error in generating random numbers + 1; nextInt's parameter is exclusive, so the highest value we could get is MAX - 1, but the question states that MAX should be inclusive) Several questions use parts of Java that aren't part of the AP subset; fair enough, I didn't tell ChatGPT about the subset.
ChatGPT passes the 2022 AP Computer Science A free response section



Send Feedback | WebAssembly Version (beta)