a program in small independent modules

A. True or False

 

1. A function divides a program in small independent modules.

2. The syntax of Python function contains a header and body.

3. The function header begins with the definition keyword.

4. Parameters are used to give inputs to a function.

5. Parameters are specified with a pair of parenthesis in the function’s definition.

6. In a function, parameters are defined by the names that appear in the function’s definition.

7. Arguments are values actually passed to a function when calling it.

8. The return statement is used to return a value from a function.

9. A function invoking itself is called a recursive function.

10. A function is said to be recursive if a statement within the body of the function calls itself.

Leave a Reply

Your email address will not be published.