loop that uses a variable simulating a counter to keep track of the number of iterations
Back
relational operators
Front
operators used to test variables to see if one is greater or less than another variable or value (>,<, >=, <=)
Back
iteration
Front
one of the three basic constructs that enables you to write instructions that can be repeated
Back
if selection statement
Front
used in combination with a conditional expression to facilitate specifying alternate paths based on the result of the conditional expression
Back
logical negation operator
Front
operator (!) that negates its operand; also called the NOT operator
Back
simple sequence
Front
one of the three basic constructs where execution begins with the first statement and continues sequentially one statement after the next until the end of the method is encountered
Back
jump statement
Front
statement used to transfer control to a different portion in the program; examples include the break statements used with switch statements
Back
empty bodied loop
Front
a loop that has no statements; can be created by placing a semicolon on the end of the conditional expression
Back
loop condition
Front
logical condition to be tested that appears in the conditional expression of a loop
Back
the test
Front
an expression enclosed inside parentheses that produces a Boolean result
Back
NOT equal
Front
relational operator denoted by combining exclamation point and equal symbol without a space (!=)
Back
assignment operator
Front
single equal symbol (=)
Back
indefinite loop
Front
loop used for inputting data when the exact number of values to be entered is not known; when the loop should terminate, an extreme or dummy value is entered
Back
basic programming constructs
Front
three basic general purpose categories of programming statements that include simple sequence, selection, and iteration
Back
automatic garbage collection
Front
when a variable is out of scope, its space is automatically released back to the operating system for reuse
Back
iteration
Front
structure that enables you to identify and block together one or more statements to be repeated based on a predetermined condition; also called repetition
Back
ternary operator
Front
provides another way to express a simple if...else selection statement (?
Back
selection statement
Front
one of the three basic constructs used for decision making that allows you to deviate from the sequential path
Back
pretest loop
Front
loop where the conditional expression is tested before any of the statements in the body of the loop are performed
Back
nested if...else statement
Front
when you place an if statement inside another if statement
Back
loop control variable
Front
variable simulating a counter used in a counter-controlled loop to keep track of the number of iterations
Back
fall through
Front
executing code from more than one case
Back
repetition
Front
structure that enables you to identify and block together one or more statements to be repeated based on a predetermined condition; also called iteration
Back
lining up
Front
for matching elses with if statements, the else goes with the closest previous if that does not have its own else
Back
test condition
Front
an expression enclosed inside parentheses that produces a Boolean result
Back
case statement
Front
multiple selection structure; also called switch statement
Back
right-associative
Front
operations are performed from right to left
Back
short-circuit evaluation
Front
stopping the evaluation as soon as the value of the entire expression is known
Back
state-controlled loop
Front
loop used when the exact number iterations is not known; loops stop when a certain state is reached—value of a variable changed; also called a flag-controlled loop
Back
conditional operator
Front
provides another way to express a simple if...else selection statement (?
Back
null (empty) statement body
Front
placing a semicolon onto the end of the conditional expression
Back
overloaded operators
Front
operators defined to perform differently based on their operands
Back
conditional expression
Front
an expression enclosed inside parentheses that produces a Boolean result
Back
selector
Front
the expression used with the switch statement to determine which case should be executed
Back
infinite loop
Front
loop that has no provisions for termination
Back
flag-controlled loop
Front
loop used when the exact number of iterations is not known; loops stop when a certain state is reached—value of a variable changed; also called a state-controlled loop
Back
event-driven model
Front
repetition is handled in Windows and Web applications using this model; once the program is launched, the interaction between the user and the GUI is handled by responding to events
Back
logical operators
Front
used to combine conditional expressions (&&, ||)
Back
equality operator
Front
two equal symbols together (==)
Back
sentinel-controlled loop
Front
loop used for inputting data when the exact number of values to be entered is not known; when the loop should terminate, an extreme or dummy value is entered; also called indefinite loop
Back
NOT operator
Front
operator (!) that negates its operand; also called the logical negation operator
Back
short-circuiting logical operators
Front
operators (&&, ||) that enable doing as little as is needed to produce the final result through short-circuit evaluation
Back
one-way selection statement
Front
an if statement without an else
Back
switch statement
Front
multiple selection structure; also called case statement
Back
precedence of the operators
Front
the order in which the individual operators are evaluated
Back
off-by-one error
Front
executing the loop one too many or one too few times
Back
array
Front
data structure that allows multiple values to be stored under a single identifier
Back
left-associative
Front
operations are performed from left to right
Back
prime the read
Front
input a value before going into the body of the loop
Back
two-way if statement
Front
an if statement that includes an else statement
Back
Section 2
(14 cards)
index of the array
Front
references the location of the variable relative to the first element; also called subscript
Back
length of the array
Front
number of elements in the array
Back
elements of an array
Front
individual variables in the array
Back
parallel arrays
Front
two or more arrays that have a relationship
Back
parameter array
Front
parameter in a method that uses the params modifier keyword indicating that the number of arguments to the method may vary
Back
sentinel value
Front
an extreme or dummy value used with a sentinel-controlled loop
Back
array
Front
data structure that may contain any number of variables of the same type that are referenced by a single identifier
Back
dimensioning the array
Front
instantiate the array by indicating how many elements to allocate
Back
size of the array
Front
number of elements in the array
Back
verbatim string literal
Front
string literals that begin with @ symbol
Back
compile-time initialization
Front
initialize the elements of an array during declaration