Question 3 A program will have one function prototype for ea
Question 3
A program will have one function prototype for each function defined in the function definitions section of the program. (Assume that the function definitions section is located below the main() function.)
True
False
-----------------
Question 4
Variables that can be used only by the function in which they are declared are called _____ variables.
global
local
separate
void
-------------
Question 5
When the computer encounters a void function’s closing brace, it continues program execution with _____.
the statement immediately above the one that called the function
the statement that called the function
the statement immediately below the one that called the function
Solution
Question 3: True
Since it is mentioned in the question that function definition is after the main function \"Assume that the function definitions section is located below the main() function\" This means that definition will arrive after the main function but we need to declare all the variables and function before or in the main section of the program. That is why in this case prototype of each function needs to be define before the main function. If function definition is before the main function in the program then there is no need to define the prototype since program is aware of the function already before going to the main.
Question 4: Local
The variables which are called and utilized only inside the function are called local variables, because scope of these variables are limited to the function which they are in.
Question 5: The statement immediately below the one that called the function
Because whenever a function is called transfer of control goes to that called function and when that function is completely executed transfer of control of the program comes back to the function who had called earlier on the calling line of the function and after the statements below that line will continue the execution of the program.
