Unit 1 lesson 1.3 Flashcards
(12 cards)
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.