Page 48 - Touchcode_C8_Flipbook
P. 48
Exercise
A. Tick ( ) the correct option.
1. Which of the following is the use of functions in programming?
a. Minimize the repetition of the same set of statements many times
b. Finding error in the code becomes easier
c. Enhances the logical transparency of the program
d. All the above
2. Which of the following help the programmers to avoid rewriting the same logic
again and again?
a. Event b. Function
c. Redundancy d. Parameter
3. Which of the following are the variables local to the function and are part of the
definition?
a. Argument b. Parameter
c. Function d. Real values
4. Which of the following are the values passed on to the function?
a. Argument b. Parameter
c. Function d. Real values
5. Which of the following are the variables accepted by a function to perform the
set of tasks defined in its body?
a. Function parameters b. Argument
c. Parameter d. Function
B. State whether the following statements are true (T) or false (F).
1. Pattern is a series of things that are not repeated in sequence.
2. Function parameters are variables global to function.
3. Arguments are the values that are passed on to the function.
4. A function cannot have more than one parameter.
5. Function parameters are the names listed in the function definition.
46 Touchcode-VIII

