Lesson 7-8: C++ Conditional Statements Flashcards

1
Q

They are also known as selection statements that are used to make decisions based on a given condition.

A

Conditional Statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 types of conditional statement?

A
  1. If Statement
  2. If-Else Statement
  3. Nested If-Else Statement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

It is the simplest decision-making statement.

A

If Statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

It is used for executing a block of code if the condition is true and if the condition is false.

A

If-Else Statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly