Subprogram | Function |
Procedure | Return Statement |
Call Statement | Modularity |
Reusability | Maintainability |
A subroutine that executes specific tasks within a program and provides a returned value when called. | A program module that performs a specific task within a larger program. |
A command used in a subprogram to show the specific value that will be given back to the main program | A subprogram that is callable within a program and executes a specific task, but does not return a value. |
The principle of breaking down a program into smaller, manageable sections. | A command in a program that activates a subprogram allowing it to run and perform its tasks. |
The ease with which modifications can be made to a codebase. | The ability to use existing code in multiple programs or contexts. |
Abstraction | Testing |
Readability | Efficiency |
The process of executing a program to identify errors. | The reduction of complexity by hiding implementation details. |
The ability to execute tasks with optimal resource usage. | How easily the code can be understood by humans. |