Programming - 2.6 Subprograms Flashcards
Abstraction:
the process of hiding unnecessary details so that only the important points remain.
Procedure:
a subprogram that contains set of statements that are executed when the procedure is called. Unlike a function , a procedure does not return a value too the main program.
Local variable:
a variable that is accessed only from within the subprogram in which it is created.
Global variable:
a variable that can be accessed from anywhere in the program, including inside subprograms.
Parameters:
values that are passed into a subprogram when it is called.
Scope:
the region of code within which a variable is visible.
Built in functions:
functions that are provided in most high level programming languages to perform common tasks.