Class: XII
Chapter-3 Functions
Assignment
1. A program having multiple functions is considered better designed than a
program without any functions. Why?
2. What all information does a function header give you about the function?
3. What do you understand by flow of execution?
4. What are arguments? What are parameters? How are these two terms different?
5. What is the utility of i. Default arguments ii. Keyword arguments?
6. Explain with a code example the usage of default and keyword arguments.
7. Describe different styles of functions in Python using appropriate examples.
8. Differentiate between fruitful and non-fruitful functions.
9. Can a function return multiple values? How?
[Link] is scope? What is the scope resolving rule of Python?
[Link] is the difference between local and global variables?
12. When is global statement used? Why its use not recommended?
13. Write the term suitable for following descriptions:
a. A name inside the parentheses of a function header that can receive a
value.
b. An argument passed to a specific parameter using the parameter name.
c. A value passed to a function parameter.
d. A value assigned to a parameter name in the function header.
e. A value assigned to a parameter name in the function call.
f. A name defined outside all function definitions.
g. A variable created inside a function body.
Class: XII