Fiveable
Fiveable

Procedure

Definition

A procedure is a set of instructions or steps that are followed in order to accomplish a specific task or goal.

Analogy

Think of a recipe for baking cookies. The recipe provides a step-by-step procedure on how to mix the ingredients, bake the dough, and decorate the cookies. Just like following a recipe, procedures in computer science provide clear instructions to achieve desired outcomes.

Related terms

Algorithm: An algorithm is a step-by-step process or set of rules used to solve a problem or perform a specific task.

Function: In programming, a function is a reusable block of code that performs a specific action and can be called multiple times within a program.

Control Flow: Control flow refers to the order in which statements and instructions are executed in a program. It determines how the program flows from one instruction to another.



© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.