This document defines vocabulary terms related to scanner, conditional statements, and control statements in Java programming. It explains ternary operators, scanners, switch statements with case, switch and default, as well as loop types like do-while, for, while and their associated terms like continue and break.
This document defines vocabulary terms related to scanner, conditional statements, and control statements in Java programming. It explains ternary operators, scanners, switch statements with case, switch and default, as well as loop types like do-while, for, while and their associated terms like continue and break.
This document defines vocabulary terms related to scanner, conditional statements, and control statements in Java programming. It explains ternary operators, scanners, switch statements with case, switch and default, as well as loop types like do-while, for, while and their associated terms like continue and break.
5-1: Scanner and Conditional Statements Practice Activities
Vocabulary:
Ternary operators: A shorthand form of an if/else statement
Scanner: A Java class used for reading keyboard or file input during program execution. switch statements A type of program control that allows different segments of (case, switch, and code to execute when the input value matches a given default): condition. switch statements A type of program control that allows different segments of (case, switch, and code to execute when the input value matches a given default): condition.
5-2: Control Statements
Vocabulary: do-while loop A post-test loop that executes an unknown number of times until a condition is met, but always executes the first time through the loop. for loop A pre-test loop that uses an iterator to keep track of how many times a loop will execute. While loop A pre-test loop that uses an iterator to keep track of how many times a loop will execute. continue A pre-test loop that executes an unknown number of times until a condition is met. break A keyword used to terminate a loop from executing before the loop condition is met