Computational constructs test questions

1

What category of sub-program is only used to return a single value to another part of the program?

2

Which is the correct definition of the scope of a local variable?

3

Actual parameters are listed within what part of a program?

4

When listing formal parameters in the declaration of a sub-program, it is necessary to contain which of the following three items?

5

Which of the following definitions relates to data flow?

6

Why is it not necessary to use the same identifier (name) for related actual and formal parameters?

7

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?

8

Why is an array usually passed by reference?

9

Which of the following is the correct definition for the term pre-defined function?

10

What is the name given to the term which describes the process of executing a sub-program from another part of a larger program?