Chapter 3 Flashcards
Boolean Data type
It is a primitive data type. Can only be true or false
boolean expression
An expression that evaluates to a boolean value
boolean value
True or false
conditional operator
The symbols ? and : appear together in a conditional expression; booleanExpression ? expression1 : expression2
dangling else ambiguity
Describes a common mistake where an else clause is a mismatch to an if clause.
debugging
To find errors in a program.
fall-through behavior
In a switch statement, once a case is matched, the statements starting from the matched case are executed until a break statement or the end of the switch statement is reached. This phenomenon is referred to as the fall-through behavior.
flowchart
Is a diagram that describes an algorithm or process, showing the steps as boxes of various kinds, and their order by connecting these with arrows.
lazy operator/short-circuit operator
Operators such as && and || that perform short circuit evaluation.
operator associativity
Defines the order in which operators will be evaluated in an expression if the operators have the same precedence order.
selection statement
A statement that uses if or switch statement to control the execution of the program.