1/29
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Control structure
It is a fundamental component that determines the flow of execution of instructions in a program. It governs which instructions are executed, when, and under what conditions.
Control structure
It allows programs to make decisions, perform repeated tasks, and respond dynamically to different inputs or conditions—essential for building complex, responsive software.
Sequential Structure
This is the simplest form of control where statements or instructions are executed one after another in the exact order in which they are written.
does not
Sequential structure is used to carry out a linear set of operations where the flow (does / does not) require any decision-making or repetition.
fixed sequence
Sequential structure is commonly applied in tasks that must be performed in a f______ s__________ with no deviation
Sequential Structure
This control structure is common in initialization routines, data input/output operations, and procedural steps.
Selection (Decision-Making) Structure
This executes a block of code only if a condition is true. It allows the program to choose between alternative paths of execution based on whether a condition is true or false. This enables decision-making capabilities in the program.
Selection (Decision-Making) Structure
This is commonly applied in scenarios requiring branching logic, such as validation checks, menu selections, or rule-based execution (e.g., user authentication and eligibility determination).
branching logic
Selection (Decision-Making) Structure is commonly applied in scenarios requiring b____________ l_______
Selection (Decision-Making) Structure
User authentication and eligibility determination is an example of which control structure?
If-else and if-elif-else
Selection (Decision-Making) Structure use the following keyword:
if
This keyword is used to begin a conditional block that runs if the condition is true
else
This keyword is used to execute its block if the condition is false.
elif
This keyword is short of “else if”
elif
This keyword is used to evaluate additional conditions if previous ones are false.
Iteration (Looping) Structure
This repeats a block of code as long as a specified condition is true. It is used to automate repetitive tasks without manual code duplication.
Iteration (Looping) Structure
It promotes efficiency and reduces errors by encapsulating repeat logic.
Iteration (Looping) Structure
This is commonly applied in traversing data structures, generating reports, implementing counters, or processing batches
Iteration (Looping) Structure
Looping through user records and retry mechanisms is an example of which control structure?
for and while
Iteration (Looping) Structure uses the following keyword:
for
This keyword begins the counting loop.
while
This keyword begins a loop that continues as long as the condition is true.
break, continue, return
Jump (Branching) Structure alters the flow explicitly using b____, c_________, r________, etc.
Jump (Branching) Structure
It interrupts or redirects the normal flow of control using statements that cause execution to jump to another part of the code.
loops, iterations, function
Jump (Branching) Structure provides exceptional flow control, particularly in exiting l______ early, skipping i____________, or terminating a f________.
break, continue
These keywords are used in loop control
return
This keyword is used in early function termination
error-handling, system-level
Jump (Branching) Structure is used in specific e_______ h_________ and s________ l_______operations (e.g., skipping invalid entries, exiting on critical errors).
break
This keyword terminates the loop immediately.
continue
This keyword is used to skip the current loop iteration and proceed to the next.