Question 11 • ASC Programming, Games, Apps and Society
Correct Answer:
statement used within a loop so that when a certain condition is met, control of the program is forced back to the beginning of the loop,to decrease by 1; performed by postfix (x--) and prefix (--x) operators,Java code creating a repetitive process that occurs as long as a condition is true; used when the number of loops is known,to increase by 1; performed by postfix (x++) and prefix (++x) operators,do something more than one time, as in a loop,an iterative or repetitive action performed on code between the loop’s curly braces; common types are for-loops, while loops, and do-while loops,a shortcut to increment or decrement a variable; the variable is used, then the result is calculated and stored; example: x++ is the same as x = x+1,a shortcut to increment or decrement a variable; the result is calculated and stored, then the variable is used ; example: ++x is the same as x = x+1