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