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-5e8521807243e394957109-i/] , using a single loop. He wrote the code below:. Download code So, was Jeff succesful? When this code is run, will the method return a sorted array. In this case that would be [crayon-5e85218072448399141868-i/]   ?     And the … 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 →