Category Archives: AP Computer Science

RandomLetterChoose AP A-thoughts and analysis

One of the 2016 AP Computer Science A questions, [crayon-58d605d956bff350104222-i/] ,  asked students to write a class declaration from scratch. The constructor receives a parameter of non-null Strings The class has a [crayon-58d605d956c08772682460-i/]  method that returns a random [crayon-58d605d956c0d951494650-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-58d605d9576ce386254513/]   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-58d605d957b1d999047013-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-58d605d957b25316076445-i/]   ?     And the … Continue reading Sorting Java Array in 1 Loop (Psuedo Sorting) AP Java Prep →