What is a subprogram?
It’s a self-contained block of code that performs a specific task. It can be called by the main subprogram or other subprograms when it’s needed.
What is a procedure?
Its a subprogram that does not return a value
What is a function?
Its a subprogram that returns a value
What is an argument?
It’s a piece of data that is provided as an input to a subprogram
What is a local variable?
a variable that can be used only from within the subprogram. (local variable is destroyed when the subprogram is finished).
What is a parameter?
a variable that represents an argument in a subprogram.
What is a global variable?
It’s a variable that can be accessed from anywhere in the main programs, including subprograms