1/8
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Decision-Making
is the process of making a decision about which part of the code should be executed or not based on some condition
Decision-Making in C++
involves the usage of conditional statements to execute specific blocks of code primarily based on given situations and their results.
if structure
is one of the selection structures that will execute the statements or block of statements following it when the comparison expression evaluates to true However, if the comparison expression evaluates to false, it will go out of the if structure without doing anything.
if-else structure
is a selection construct that will execute a statement or a block of statements when the condition evaluates to true or another series of instructions when the result of the comparison is false.
if-else-if ladder
helps the user decide from among multiple
Top down
The C++ if statements are executed from ___?
nested if-else statement
are those statements in which there is an if statement inside another if-else
nested-if-else statement
We use this when we want to implement multilayer conditions (condition inside another condition, inside another condition, and so on)
switch statement
is an alternative for the if else if ladder structure. It looks for a match among the cases and executes the statements inside the match. If no match is found, it will execute the default statements.