Does it look bad if you take an AP exam before the class?

I think doing it with CS is less weird. With maths, it really would look like you are slumming it. Can you ask your school to let you move on past Calc BC if you get a 5 in the exam? If you have a talent in these areas, look at AMC and USACO instead