The correct answer is A. Function Procedure.
A function procedure is a block of code that is called by another block of code. It can be used to perform a specific task and return a value.
A sub procedure is a block of code that is called by another block of code. It cannot return a value.
A sub block is a block of code that is contained within another block of code. It cannot be called by another block of code.
A structure is a data type that can be used to store data. It cannot be used to perform a task.
Here is an example of a function procedure:
function add(x, y) {
return x + y;
}
This function procedure can be called by another block of code, such as this:
var z = add(1, 2);
The value of z will be 3.
Here is an example of a sub procedure:
sub printMessage() {
print("Hello, world!");
}
This sub procedure cannot be called by another block of code. It can only be called by the block of code that contains it.
Here is an example of a sub block:
{
var x = 1;
var y = 2;
}
This sub block is contained within another block of code. It cannot be called by another block of code.
Here is an example of a structure:
struct Person {
string name;
int age;
}
This structure is a data type that can be used to store data. It cannot be used to perform a task.