Lesson 3- Loopings Flashcards

1
Q

areprogramming languagecommands for handling decisions. Specifically, perform different computations or actions depending on whether a programmer-defined evaluates to true or false.

A

Conditionals
or Conditional statements, conditional expressions and conditional constructs.

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

Types of Conditional Statements:

A
  • If Statement
  • If-Else Statement
  • If-Else If-Else Statement
  • Nested If Statement
  • Short Hand if…Else Statement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A statement consist of a boolean expression followed by one more statement

A

If Statement

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

A statement can be followed by an optional else statement which executes when the boolean expresion is false.

A

If-Else Statement

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

A statement that consist of a Boolean expression that can be followed by another conditions, if the previous conditions were not true.

A

If-Else if-Else Statement

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

A conditional statement that has another conditional statement inside that statement

A

Nested If Statement

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

If you have only one statement to execute, one for if, and one for else, you can put it all on the same line.

A

Short Hand if…Else

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