| 8126438408 | A keyword | A word that is part of the Java language | 0 | |
| 8126440897 | String, Math | Examples of classes available by default but not actually keywords | 1 | |
| 8126444216 | method call | A line of code that causes an method to be executed. | 2 | |
| 8126445769 | method definition | Lines of code that include a header and a code block. | 3 | |
| 8126450865 | method header | The first line of a method definition, contains information about parameters and any return value. | 4 | |
| 8126456994 | strongly typed | A feature of computer languages where all variables must have code stating what their data type. | 5 | |
| 8126459914 | data type | Keyword that states what type of values a variable will hold (or what type of value a method will return). | 6 | |
| 8126464634 | primitive variable | A variable of the type: int, double, boolean, etc. these variables only contain a single value | 7 | |
| 8126469189 | reference variable (aka object variable) | a variable which is not a primitive type. The value contained in the variable is a memory address to a memory location possibly containing many separate values comprising the object. | 8 | |
| 8126477969 | methods cannot call other methods | a false statement about methods | 9 | |
| 8126486107 | A call to a non-void method should somehow make use of the returned value. | a true statement about methods | 10 | |
| 8126486622 | data structure | a way to use memory to organize and make accessible many pieces of information | 11 | |
| 8126491264 | array | the simplest of data structures | 12 | |
| 8126493865 | an array can change size after created | a false statement about arrays | 13 | |
| 8126499036 | the number of elements in an array is found by reading the ".length" field of the array's object variable. | a true statement about arrays | 14 | |
| 8126503821 | arr2D[0].length | how you typically find the number of columns in a 2-D array named arr2D | 15 | |
| 8126510547 | Every non-void method should have... | a return statement at the end of its code block | 16 | |
| 8126514770 | the break keyword | halts the execution of a loop | 17 | |
| 8126517456 | the return keyword | halts the execution of a method and may also give back a value to the caller. | 18 | |
| 8126523663 | 7/2, 2/1, 4/2 | Arithmetic expressions that evaluate to an integer value | 19 | |
| 8126524988 | 7/2.0, 2.0/1, (double) 4/2 | Arithmetic expressions that evaluate to an decimal (i.e. real) number value | 20 | |
| 8126531293 | A && !A | an always false expression | 21 | |
| 8126532324 | A || !A | an always true expression | 22 | |
| 8126534788 | !(A && B) = !A || !B | One form of De Morgans Law | 23 | |
| 8126540061 | A && (B || C) = (A&&B) || (A&&C) A || (B && C) = (A || B) && (A || C) | The Boolean distributive laws | 24 | |
| 8126541841 | A4 | 164 in hexadecimal | 25 | |
| 8126544786 | 2B | 43 in hexadecimal | 26 | |
| 8126547417 | 1001 | 9 in binary | 27 | |
| 8126549672 | 111 | 7 in binary | 28 | |
| 8126688973 | boolean d = false; | a declaration of a boolean variable | 29 | |
| 8126696874 | String [] myStuff = {"shoes", "devices", "bits of strings"}; | Declaration of array and initialization using an initializer list | 30 | |
| 8126708461 | boolean [] answers= new boolean [5]; for (int i= 0; i < answers.length; i++) { answers[i]= true; } | Declaration of an array, initialization of element values NOT using an initializer list | 31 | |
| 8126713323 | for (int j = 100; true; j--) { // some code } | an infinite loop | 32 | |
| 8126740477 | if (x != 0 && 100/x > 10) { /*code*/ } | example of use short-circuiting behavior of boolean expressions | 33 | |
| 8126756252 | static | keyword declaring a method is not part of any object and exists for the entire life-time of the program | 34 | |
| 8126759041 | new | keyword for allocating memory for an object (e.g. an array) | 35 | |
| 8126772452 | array are not objects | false statement about the relationship of arrays and objects | 36 | |
| 8126777876 | public MyClass(){ | the header for a constructor | 37 | |
| 8126779994 | super() | used to call the parent class' constructor from the child's constructor | 38 |
AP CS Flashcards
Primary tabs
Need Help?
We hope your visit has been a productive one. If you're having any problems, or would like to give some feedback, we'd love to hear from you.
For general help, questions, and suggestions, try our dedicated support forums.
If you need to contact the Course-Notes.Org web experience team, please use our contact form.
Need Notes?
While we strive to provide the most comprehensive notes for as many high school textbooks as possible, there are certainly going to be some that we miss. Drop us a note and let us know which textbooks you need. Be sure to include which edition of the textbook you are using! If we see enough demand, we'll do whatever we can to get those notes up on the site for you!

