In a function header, you must furnish data type(s) of the parameters data type
ID: 3779385 • Letter: I
Question
In a function header, you must furnish data type(s) of the parameters data type of the return value the name of function names of parameter variables All of these Which of the following types of variables is defined inside a function and is not accessible outside the function? global reference local counter None of these Which of the following is a collection of statements that performs a specific task? infinite loop variable constant function None of these When used as parameters, which of the following types of variables allow a function to access the parameter's original argument? reference floating-point counter undeclared None of these Which of the following statements causes a function to end? end terminate return release None of theseExplanation / Answer
4. E
In a function header, you mush furnish all of the above given values.
You must specity data types of parameter(s), data type of return value, name of the function and names of parameters in function header.
For function prototype you don't need to specify names of hte function parameters.
5.C
a. global variables will declared outside the funcitons and can be defined inside a function using "extern" storage class specifier. But it can be accessed outside the function.
b.reference is not a storage class specifier. It is a way of passing arguments to function.
c.Local variables are defined inside a function and cannot be accessible outside the function. This is correct answer.
d.counter is neither a storage class specifier nor a keyword. It is a way of using variable for the purpose of counting number of elements.
6. D
d.Function is the collection of statements which performs a specific task.
a. Without thinking much about infinite loop, it won't stop, will not allow to program to progress forther so not a correct option.
b.variable is a part of statement. we can't imagine it as set of statements.
c.constant is also a keyword and part of statement.
7.A
a. reference is a way of matching argument to parameters of a function and properly called "call by referece".
In this we will pass addresses of variables as arguments so that the parameters in the function can access the original values of arguments.
b.floating-point is a data type. Nothing more about it.
c.counter is a way of using variable for the purpose of counting number of elements.
d.undeclared is a way of specifing about variable which is defined or used without declaring or specifing to compiler about it's datatype.
8.C
a. End is used to specify end of local block definition like "if" in some older programming languages. Not a correct option.
b.terminate is not a keyword.
c.return is a keyword which causes the function to stop.
d.release is not a keyword.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.