Page 49 - Touchcode_C8_Flipbook
P. 49
C. Fill in the blanks.
HELP BOX arguments, repetitive, real values, tested, value
1. Function arguments are the ........................... values passed to (and received by) the function.
2. ........................... are the values that are passed on to the function received by the function as
a parameter.
3. Functions remove the ........................... block of code.
4. When an operation is performed inside a function it gives back a ........................... .
5. Functions can be individually ........................... .
D. Match the following:
1. Pattern a. Repeat certain lines of code in sequence
2. Function b. Real values passed to the function
3. Function Parameters c. L × B × H
4. Arguments d. Series of things repeated in sequence
5. Volume of cuboid e. Variables local to function
E. Answer the following questions:
1. Define the term functions in programming.
.............................................................................................................................................................
.............................................................................................................................................................
2. What are the advantages of using functions?
.............................................................................................................................................................
.............................................................................................................................................................
3. Explain how a function can return a value.
.............................................................................................................................................................
.............................................................................................................................................................
4. What are function parameters?
.............................................................................................................................................................
.............................................................................................................................................................
5. What do you mean by “arguments”?
.............................................................................................................................................................
.............................................................................................................................................................
Functions in Depth 47

