CourseNotes
Published on CourseNotes (https://course-notes.org)

Home > AP Java Unit 2 Flashcards

AP Java Unit 2 Flashcards

Terms : Hide Images [1]
4953220422DataFacts, figures, or information that is stored or used by a computer.0
4953220423Data TypeA classification identifying one of various types of data. (Example: int,double,char)1
4953222340Primitive TypeA basic data type that is predefined by a programming language. In Java, the eight primitive types are: byte, short, int, long, float, double, boolean, & char.2
4953222341IntegerA number system that only contains whole, non decimal numbers(-2,-1,0,1,2)3
4953222342CharacterA unit of information that corresponds to a single symbol or letter of the alphabet.4
4953224566intA primitive data type which contains only whole numbers. (-1,-2,0,123141, etc.)5
4953224567doubleA primitive data type that may contain decimal numbers. (1.0, 1.2313, -.06, etc.)6
4953224568charA primitive data type that contains single characters. (a,b,c,d etc.)7
4953224569booleanA primitive data type that contains either True or False.8
4953224570ExpressionAny valid statement which resolves to a value.9
4953226966EvaluationThe process in which a program executes a statement.10
4953226967OperatorA symbol that tells a compiler to perform a specific mathematical, relational, or logical operation. Examples of operators include, +, -, %, <, <=11
4953226968LiteralA notation for representing a fixed value.12
4953229509Arithmetic OperatorA symbol that describes a mathematical operation.13
4953229510Mod Operator or ModulusAn operator used to find the remainder of an operation, represented by the % character. (Example: 5%4 yields 1)14
4953232774NumeratorThe upper number in a common fraction. (Example: The 1 in 1/2)15
4953232775DenominatorThe lower number in a common fraction. (Example: The 2 in 1/2)16
4953232776PrecedenceThe rules in which the operators in an expression are evaluated (PEMMDAS)17
4953235023AmbiguousA statement that has multiple meanings or multiple potential meanings.18
4953235024UnaryConsisting of or involving a single component or element19
4953235025Unary OperatorsAn operator that performs an operation on a single input. Examples include, ! , ++ , --20
4953237421Multiplicative OperatorsAn operand that performs a mathematical multiplication statement.21
4953237422Additive OperatorsAn operand that performs a mathematical addition statement.22
4953237423CastingA mechanism to change an entity of one data type into another.23
4953237424VariableA variable is a reference to a value stored in memory, which can change over the lifetime of the program.24
4953239859DeclarationA declaration is something that specifies the properties of an identifier. Declarations are used to specify what a given identifier actually represents.25
4953239860AssignmentA mechanism that sets and/or resets the value stored in a variable.26
4953239861ConcatenationAn operation in which two strings are combined in order to yield a single new string.27
4953244572IncrementAn increase/addition, usually by a fixed value.28
4953244573DecrementAn decrease/subtraction, usually by a fixed value.29
4953244574for LoopAn iteration mechanism used to loop until a specific condition is satisfied. Example: for(int i=0; i<10; i++){ System.out.println(i); }30
4953247803Control StructureA statement that analyzes variables and chooses a direction in which a program should be executed. Control Structures "Control" the flow of a program.31
4953247804TracingThe process behind following the execution of a program.32
4953247805Nested for LoopsA nested for loop is a loop within a loop. Example: for(int x=0; x<10; x++){ for(int y=0; y<10; y++){ System.out.println("Value of x: "+x+" Value of y: "+y); } }33
4953249889ComplexityThe process behind determining the amount of resources necessary to execute them.34
4953249890ScopeThe section of a program where an entity, such as a variable, is valid.35
4953249892Local VariableA variable with limited scope, commonly in contrast to a global variable.36
4953252391InfiniteLimitless or endless.37
4953252392Infinite LoopA loop that lacks a functional exit, so it will repeat indefinitely.38
4953252393PseudocodeA description of a program that follows the process of writing a program, without language specific syntax.39
4953254123ConstantAn identifier with an associated value that cannot be changed during the execution of a program.40
4953254124Class ConstantA class is a template for creating objects. Within a class contains the outline for variables, and methods/functions.41
4953254125InitialThe first occurrence, or starting value.42
Powered by Quizlet.com [2]

Source URL:https://course-notes.org/flashcards/ap_java_unit_2_flashcards

Links
[1] https://course-notes.org/javascript%3Avoid%280%29%3B [2] http://quizlet.com/