Which operators are used to determine whether a specific relationship exists between two variables?

focusNode

Didn't know it?
click below

Knew it?
click below

Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

Introduction to Programming Chapter 04 - Terms

TermDefinition
Decision Structure [function] A decision structure [AKA selection structure] allows a program to perform actions only under certain conditions.
NOT operator Takes a Boolean expressions as its operand and reverses its logical value.
Short-Circuit Evaluation AND: If the expression to the left of the operand is false, right side is not checked. OR: If the expression to the left of the operand is true, right side is not checked.
OR operator Takes two Boolean expressions as operands and creates a compound Boolean expression that is true when either of the subexpressions is true.
&& AND operator
| | OR operator
!. NOT operator
AND operator Takes two Boolean expressions as its operand and creates a compound Boolean expression that is true only when both subexpressions are true.
Case Structure [AKA] Multiple Alternative Decision Structure
Case Structure [function] Allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute.
Decision Structure [AKA] Selection Structures
conditionally executed performed only when a certain condition is true.
Single Alternative Decision Structure Provides only one alternative path.
You can use Decision Statements alone to create a complete program? T/F False
If Clause The program line that begins with IF
condition Any expression that can be evaluated as either true or false. AKA Boolean Experssion
Boolean Expressions Expressions that can be evaluated as either true or false.
Relational Operator [function] Determines whether a specific relationship exists between two values.
Relational Operators [examples] > < >=

Chủ Đề