BOTCLEAN
PAGETURNER
CLEAN
BOX
REVIEW
GO
Which of the following is/are TRUE?
a A C program is made up of at least one function.
b All functions within one program must be compiled together.
c The return statement, with no arguments in front of the
closing brace is equivalent to no return statement at all.
d The return statement expression need not be enclosed in parentheses.
e a and b
f a, c, and d
g b and c
Select one:
That is correct!
You've got it on the 2nd try.
Good, you understand the concept
Sorry, try again.
No, try one more time.
Please review Topic 1: Functions & Topic 2: The return Statement!
FORGET1
The correct choice is b . The functions within one
program need not be compiled together, which is an asset
of the language.
What should the prefix to funct_1() be?
funct_1()
{
float income, expense;
double tax_total;
tax_total = 0.34 * (income - expense);
return(tax_total);
}
a int b float c none d double
Select one:
That is correct!
You've got it on the 2nd try.
You've got it finally!
Sorry, try again.
No, try one more time.
Please review Topic 2: The return Statement
FORGET2
The correct choice is d . The function returns a
variable of type double, not int or float. Therefore,
the function type should also be specified as double.
Which of the following is/are TRUE?
a The function arguments are always declared after the opening brace.
b The compiler checks to see if the argument number and argument
type match.
c Both functions and variables are either internal or external objects.
d b and c
e none of the above
Select one:
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Sorry, try again.
No, try one more time.
Please review Topic 3: Function Arguments
FORGET3
The correct choice is c . Functions are always external
objects!
Choice a is incorrect because function arguments
are always declared after the function header and before the
opening brace. Choice b is wrong because the C compiler never
checks whether the argument number and the argument type match.