When I took AP CS in highschool, they were just switching to C++. We actually hard two years of courses and AP was the second year. I pushed to skip the first class (which was basic at the time) and after taking the final was able to.
The school didn't even normally give the exam. After some parental rage, they finely setup so I could take the exam (just me). 45 minutes of test taking earned me a 5/5. Though since all the changes in the exam at the time my college just gave credit for an elective instead of saving from taking a course.