Category Archives: AP Computer Science

Sorting Java Array in 1 Loop (Psuedo Sorting) AP Java Prep

So  ..our student , Jeff was trying to write an method that sorts an array of ints  , called [crayon-5f0a19e163c75091901969-i/] , using a single loop. He wrote the code below:. Download code .   Here you can download a powerpoint with a step by step visual explanation. So, was Jeff successful? When this code is run, will the method return … Continue reading Sorting Java Array in 1 Loop (Psuedo Sorting) AP Java Prep →

AP Computer Science A Exam Questions by Topic

Old AP A java exams can be downloaded here. Read other page for some free code analysis AP CS practice questions  that we made up. Some recent words from the AP A exam writers. At the 2016 AP A reading, representatives of the college board and some of the exam question writers themselves like Robert … Continue reading AP Computer Science A Exam Questions by Topic →

5 Tips for the AP Computer Science A Exam

Tip 1  : Floating Point Error! If you are asked to compare doubles with either “==” or “!=” the answer is probably “Floating point error”!   (demo of floating point error in Java)   Tip 2 : Constructors are not inherited! The code below fails because constructors are not inherited! public class SuperClass{ } public class … Continue reading 5 Tips for the AP Computer Science A Exam →