 |
|
 |
 |
 |
 |
 |
|
|
|
|
|
Practice Quiz 5 - Orgainizing Code in Functions
There
are 10 questions in this quiz
Question 1: Multiple Choice
Which one of the following is not a valid
function declaration?
Question 2: Multiple Choice 
Which of the following statements about a
function prototype is true?.
Question 3: Multiple Choice 
Creating a function consists of defining
Question 4: Multiple Choice 
If you don't declare a return value in a
function, what type of return value is assumed?
Question 5: Multiple Choice 
Which one of the following statements is
FALSE?
Question 6: Multiple Choice
In the function heading below, what type
of value is returned ?
double
func1(float f, int x)
Question 7: Multiple Choice
A value that a function call supplies to
the function is known as a(n)
Question 8: Multiple Choice
When the type of a function is defined
as void, this indicates
Question 9: Multiple Choice
What will be output to the console from the
following code?
void
main( )
{
int
x;
x
= f(4);
cout
<< x;
}
int f(int temp)
{
return
temp + 7;
}
Question 10: Multiple Choice
What will be output to the console from
the following code?
void
main( )
{
int
z = 6;
int
x = f(z);
x
= f(x);
cout
<< x;
}
int f(int temp)
{
return
temp - 3;
}
|
|
|