Using subprograms can improve
, allowing changes in one part without affecting others.
Select the correct labels for each definition:
Select Label |
Definition |
|
A unique identifier for the function. It is used to call or invoke the function later in the code. |
|
A variable in a function definition that acts as a placeholder for the values that will be passed to the function when called. |
|
The actual value or data that is passed to the function when it is called. |
|
Specifies what value the function should provide back to the caller. |
What is a subprogram?
What is a subroutine?
How does using subprograms improve modularity?
Which of the following is not an advantage of using subprograms?
The code inside a subprogram is executed when it is
.
A subprogram can have local
.
What is the main disadvantage of using optional parameters?
Return statement
Subprograms help in maintaining a clear
between different parts of the program, making interactions clearer.
Function
Which of the following is true about subprograms?
Abstraction
Which programming languages support subprograms?
What is the purpose of using subprograms in programming?
The inputs given to a subprogram are called
.