click below
click below
Normal Size Small Size show me how
CSP - Chapter 12
| Term | Definition |
|---|---|
| Block of Code | one or more code statements that are part of a loop, conditional, function, or procedure |
| Boolean Expression/Condition/Logical Expression | either true or false |
| Complex Conditionals | two or more logical expressions joined by the keywords and, or, or not |
| Conditional Execution | one or more statements are run only when logical expression is true |
| Decision | choice between at least two choices |
| Flowchart | a diagram that shows the execution paths for a program |
| Negation | reverses the value of a condition |
| And | used to join two logical expressions and then both of the logical expressions must be true for the joined expression to be true |
| Else | used to execute one or more statements in a block following the else when the condition in the if part of the statement is false; must always have an if |
| If | keyword is used to start a condition; is followed by a Boolean expression and then has one or more statements in the body |
| Not | keyword not is used to negate a logical expression |