Page 89 - Touchcode_C8_Flipbook
P. 89
C. Fill in the blanks.
1. ........................... are the values that are passed on to the function received by the function
as a parameter.
2. Functions remove the ........................... block of code.
3. Python has ........................... sort function to sort an array.
4. An array is an arrangement of ........................... .
5. Skipping any step of the given sequence leads to ........................... in the program.
6. Making decision is an example of ........................... .
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. Series of things repeated in sequence
4. Arguments d. Variables local to function
E. Answer the following questions:
1. Explain how a function can return a value.
.............................................................................................................................................................
.............................................................................................................................................................
2. What are function parameters?
.............................................................................................................................................................
.............................................................................................................................................................
3. What are arrays in programming?
.............................................................................................................................................................
.............................................................................................................................................................
4. Write any two advantages of array.
.............................................................................................................................................................
.............................................................................................................................................................
5. Name the three basic building blocks of an algorithm.
.............................................................................................................................................................
.............................................................................................................................................................
6. Define the term sequencing.
.............................................................................................................................................................
.............................................................................................................................................................
Test Sheet 2 87

