Java Games: Flashcards, matching, concentration, and word search.

Chapter 03 Key Terms Review

Making Decisions

AB
pseudocodeA tool that helps programmers plan a program's logic by writing plain English statements
flowchartA tool that helps programmers plan a program's logic by writing program steps in diagram form, as a series of shapes connected by arrows
sequence structureA unit of program logic in which one step follows another unconditionally
decision structureA unit of program logic that involves choosing between alternative courses of action based on some value
if statementUsed to make a single-alternative decision
blockOne or more statements contained within a pair of curly braces
nested ifA statement in which one decision structure is contained within another
dual-alternative decisionsHas two possible outcomes
if-else statementPerforms a dual-alternative decision
AND operatorDetermines whether two expressions are both true; it is written using two ampersands (&&)
short-circuit evaluationThe C# feature in which parts of an AND or OR expression are evaluated only as far as necessary to determine whether the entire expression is true or false
OR operatorDetermines whether at least one of two conditions is true; it is written using two pipes (||)
Boolean logical ANDAn operator that determines whether two expressions are both true; it is written using a single ampersand (&) ; unlike the conditional AND operator, it does not use short-circuit evaluation
Boolean logical inclusive ORAn operator that determines whether at least one of two conditions is true; it is written using a single pipe (|) ; unlike the conditional OR operator, it does not use short-circuit evaluation
side effectAn unintended consequence
switch structureA single variable against a series of exact matches
switchStarts a switch structure
switch expressionA condition in a switch statement enclosed in parentheses
caseIn a switch structure is followed by one of the possible values that might equal the switch expression
case labelIdentifies a course of action in a switch structure
breakOptionally terminates a switch structure at the end of each case
defaultUsed optionally prior to any action that should occur if the test expression in a case structure does not match any case
governing typeIn a switch statement is established by the switch expression; it can be of type sbyte, byte, short, ushort, int, unit, long, ulong, char, string, or enum
enumAn enumeration , a programming defined type that declares a set of constants
conditional operatorUsed as an abbreviated version of the if-else statement; it requires three expressions separated by a question mark and a colon
ternaryAn operator that requires three arguments
NOT operatorUses the exclamation point (!); used to negate the result of any Boolean expression
range checkA series of if statements that determine whether a value falls within a specified range

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities