NEW
Font size
WorksheetsCSC128 - Chapter 5i
Total questions: 7
Worksheet time: 3mins
Function is divided into ___ categories.
1
2
3
4
There are ___ types of user-defined function.
1
2
3
4
Which of the following is NOT the requirement of a function?
Function Call
Function Definition
Function Initialization
Function Declaration
When there is a value from a function to be return into the main program, we use this type of function.
Function without return value
Function with return value
Function within return value
Function Declaration is placed __________.
Before main program
Inside Main Program
Outside or After Main Program
Given function declaration :
float CalcAverage (float, int);
What is the best definition of the given function declaration.
Declare the function CalcAverage() that will receive 2 floating-point value and 1 integer value, and did not return any value
Declare the function CalcAverage() that will receive 1 floating-point value, and will return 1 floating-point value and 1 integer value
Declare the function CalcAverage() that will receive 1 floating-point value and 1 integer value, and will return 1 floating-point value
Which of the following is not mathematical function in predefined function cmath?
pow (x, y)
log (x)
setw (x)
abs (x)
