Programming Concepts

Algorithms: Inputs and Outputs

Turn a problem contract into ordered pseudocode, trace its state, and test whether the procedure stops and returns the required output.

Beginner16 min read
Foundation lessonAutomation foundationsPractice

UNTIMED COACHING

Practice before the pressure

Use feedback to correct the model, not merely memorize an option position.

GUIDED PRACTICE

Practice the lesson questions

Answer normal lesson questions without a timer. Every answer includes an explanation, and incorrect answers can be tried again before continuing.

CONCEPT MODELS

See the lesson as a system

Use these visual guides to connect the key ideas before answering the questions.

An algorithm transforms input into outputA clear process accepts input, applies ordered steps, and produces an expected result.
An algorithm transforms input into outputInput passes through ordered processing steps to produce output.
Inputstarting information
Ordered stepsprocess information
Outputobservable result
A condition selects the next stepA decision evaluates a condition and follows the matching branch.
A condition selects the next stepA condition branches to two different next actions.
Current valueinformation to evaluate
Conditiontrue or false
True pathrun matching action
False pathrun alternate action