What category of sub-program is only used to return a single value to another part of the program?
Function
Procedure
Method
Which is the correct definition of the scope of a local variable?
The entire program at all times
Only the sub-program in which it has been created
The rest of the program once it has been created in a sub-program
Actual parameters are listed within what part of a program?
As part of the declaration of a sub-program
As local variables within the main program
When a subprogram is called within the main program
When listing formal parameters in the declaration of a sub-program, it is necessary to contain which of the following three items?
The name of the main program linked to the sub-program
The data type of the parameter
The scope of the parameter
Which of the following definitions relates to data flow?
Outlines the way in which data flows from one step to another on a main algorithm
Refers to the flow of data between RAM and the CPU during execution
The movement of data between global and local variables
Why is it not necessary to use the same identifier (name) for related actual and formal parameters?
You cannot use the same parameter name twice
The software development environment identifies related parameters by their order rather than their name so that the same procedure or function can be called several times with different values being passed as parameters
Values are used to represent parameters rather than names
Changes to the value of a parameter result in a change to the value of the related local variable within a main program.
What is the term used to describe this form of parameter passing?
Argument
By reference
By value
Why is an array usually passed by reference?
Because to pass by value would create copies that would place a large demand on system resources
Because passing by reference prevents the values from being changed
Because passing by reference is unique to an array
Which of the following is the correct definition for the term pre-defined function?
A pre-defined function is an alternative name for a method
A pre-defined function always returns a pre-determined value
A pre-defined function is already defined by the high level language
What is the name given to the term which describes the process of executing a sub-program from another part of a larger program?
Parameter
Declaration
Call