AP Notes, Outlines, Study Guides, Vocabulary, Practice Exams and more!

AP CS Flashcards

Terms : Hide Images
8126438408A keywordA word that is part of the Java language0
8126440897String, MathExamples of classes available by default but not actually keywords1
8126444216method callA line of code that causes an method to be executed.2
8126445769method definitionLines of code that include a header and a code block.3
8126450865method headerThe first line of a method definition, contains information about parameters and any return value.4
8126456994strongly typedA feature of computer languages where all variables must have code stating what their data type.5
8126459914data typeKeyword that states what type of values a variable will hold (or what type of value a method will return).6
8126464634primitive variableA variable of the type: int, double, boolean, etc. these variables only contain a single value7
8126469189reference 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
8126477969methods cannot call other methodsa false statement about methods9
8126486107A call to a non-void method should somehow make use of the returned value.a true statement about methods10
8126486622data structurea way to use memory to organize and make accessible many pieces of information11
8126491264arraythe simplest of data structures12
8126493865an array can change size after createda false statement about arrays13
8126499036the number of elements in an array is found by reading the ".length" field of the array's object variable.a true statement about arrays14
8126503821arr2D[0].lengthhow you typically find the number of columns in a 2-D array named arr2D15
8126510547Every non-void method should have...a return statement at the end of its code block16
8126514770the break keywordhalts the execution of a loop17
8126517456the return keywordhalts the execution of a method and may also give back a value to the caller.18
81265236637/2, 2/1, 4/2Arithmetic expressions that evaluate to an integer value19
81265249887/2.0, 2.0/1, (double) 4/2Arithmetic expressions that evaluate to an decimal (i.e. real) number value20
8126531293A && !Aan always false expression21
8126532324A || !Aan always true expression22
8126534788!(A && B) = !A || !BOne form of De Morgans Law23
8126540061A && (B || C) = (A&&B) || (A&&C) A || (B && C) = (A || B) && (A || C)The Boolean distributive laws24
8126541841A4164 in hexadecimal25
81265447862B43 in hexadecimal26
812654741710019 in binary27
81265496721117 in binary28
8126688973boolean d = false;a declaration of a boolean variable29
8126696874String [] myStuff = {"shoes", "devices", "bits of strings"};Declaration of array and initialization using an initializer list30
8126708461boolean [] 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 list31
8126713323for (int j = 100; true; j--) { // some code }an infinite loop32
8126740477if (x != 0 && 100/x > 10) { /*code*/ }example of use short-circuiting behavior of boolean expressions33
8126756252statickeyword declaring a method is not part of any object and exists for the entire life-time of the program34
8126759041newkeyword for allocating memory for an object (e.g. an array)35
8126772452array are not objectsfalse statement about the relationship of arrays and objects36
8126777876public MyClass(){the header for a constructor37
8126779994super()used to call the parent class' constructor from the child's constructor38

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!