Constructs Flashcards
abstract step
a high-level action in an algorithm that describes what needs to be done without detailing how to do it
algorithm
a step-by-step set of instructions designed to perform a specific task or solve a problem
branch
a point in an algorithm where a decision is made, leading to different actions based on conditions (e.g., if-then statements)
infinite loop
a loop that never ends because the termination condition is never met or is incorrectly written
input
data that are provided to a program for processing
loop control variable
a variable that determines whether the loop will continue running or stop, often incremented or modified within the loop
nested structure
a programming construct where one control structure (like a loop or a conditional statement) is placed inside another
output
data that are produced by a program and presented to the user or another system
pretest loop
a loop that evaluates its condition before executing the body of the loop, such as a while loop
pseudocode
A simplified, human-readable version of a program’s code that outlines the logic without strict syntax rules
repetition (iteration)
the act of executing a set of instructions multiple times, typically using loops
selection
a control structure that allows a program to choose between different actions based on conditions (similar to a branch)