CONDITIONAL STATEMENTS

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

9 Terms

1
New cards

Decision-Making

is the process of making a decision about which part of the code should be executed or not based on some condition

2
New cards

Decision-Making in C++

involves the usage of conditional statements to execute specific blocks of code primarily based on given situations and their results.

3
New cards

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.

4
New cards

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.

5
New cards

if-else-if ladder

helps the user decide from among multiple

6
New cards

Top down

The C++ if statements are executed from ___?

7
New cards

nested if-else statement

are those statements in which there is an if statement inside another if-else

8
New cards

nested-if-else statement

We use this when we want to implement multilayer conditions (condition inside another condition, inside another condition, and so on)

9
New cards

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.