Module 4 Flashcards
Refers to the ability of a program to decide the flow of
execution based on certain conditions.
Decision Control Structure
TYPES OF DECISION
CONTROL STRUCTURES
• If Statements
• If-Else Statements
• Nested If Statements
• Else If Ladder
• Switch Case Statements
Executes a block of code if the given condition is true.
IF STATEMENT
Provides an alternative path if
the condition is false.
IF-ELSE STATEMENT
Allow an if statement inside another if or else block
for complex decision-making.
NESTED IF STATEMENTS
Used when you need to
check multiple conditions in sequence.
ELSE IF LADDER
Allows you to choose
one block of code to
execute from multiple
options based on the
value of a variable.
SWITCH CASE
STATEMENTS