Category Archives: AP Computer Science

RandomLetterChoose AP A-thoughts and analysis

One of the 2016 AP Computer Science A questions, [crayon-5971bf99926d3926219354-i/] ,  asked students to write a class declaration from scratch. The constructor receives a parameter of non-null Strings The class has a [crayon-5971bf99926df189557148-i/]  method that returns a random [crayon-5971bf99926e4126365961-i/] from that list . Each element in the list can only be returned once, and after all of the elements … Continue reading RandomLetterChoose AP A-thoughts and analysis &rarr...

AP Computer Science Array Practice Problem

The AP Computer Science A exam likes to ask questions along the lines of this code pictured below: Download Code The question is,.. what does the “mystery” method do to that input array ?…. What is the output ?   And the answer is… Scroll down a bit         [crayon-5971bf99962dd217060590/]   Yes, this … Continue reading AP Computer Science Array Practice Problem →

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-5971bf9996787966897844-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-5971bf999678f961038934-i/]   ?     And the … Continue reading Sorting Java Array in 1 Loop (Psuedo Sorting) AP Java Prep →