Conditional Statements in C++ Programming Flashcards
[ Identification ]
It evaluates TRUE or FALSE statement.
Boolean Expression
[ Identification ]
- Developed by George Boole.
- A branch of discrete mathematics that is dedicated to the study of the properties and the manipulation of logical expressions.
- Uses relational operators to compare expressions.
Boolean Algebra
[ Identification ]
He developed Boolean Algebra.
George Boole
[ Identification ]
Used to compare the value of two variables.
Relational Operators
[ Identify / illustrate the operator being described. ]
Used when the value of two variables are equal.
==
[ Identify / illustrate the operator being described. ]
Used when the value of two variables are not equal.
!=
[ Identify / illustrate the operator being described. ]
Used when one value is greater than another.
>
[ Identify / illustrate the operator being described. ]
Used when one value is greater than or equal to another.
> =
[ Identify / illustrate the operator being described. ]
Used when one value is less than another.
<
[ Identify / illustrate the operator being described. ]
Used when one value is less than or equal to another.
<=
[ Identification ]
- Also known as selection statements
- Used to make decisions based on a given condition.
Conditional Statements
[ True or False ]
If the condition evaluates to TRUE, a set of statements is executed, otherwise another set of statements is executed.
True
Conditional statements are also known as _______ ________.
selection statements
[ What are these? ]
- Simple IF Statement
- IF - ELSE Statement
- NESTED IF Statement
- SWITCH Statement
Forms of Conditional Statement
[ Identification: Forms of Conditional Statement ]
- A powerful statement for decision making and is used to control the flow of execution of statements.
- A two-way decision-making statement and is used in conjunction with an expression.
Simple IF Statement