When I took my Freshman year undergrad programming course decades ago, I had already been programming in that language for at least three years. It would have been quite painful to have to deliberately not do things I already know how to do because "I didn't learn it yet."
This was definitely a problem in classes before AI. I had a number of infuriating teachers who insisted on failing me for doing X, because "you're going too fast and we haven't gotten to X technique yet."