0% found this document useful (0 votes)
5 views2 pages

Function Header Information Explained

This document is an assignment for Class XII on the topic of Functions in programming. It includes questions about function design, headers, flow of execution, arguments, parameters, and various types of functions in Python. Additionally, it covers concepts like scope, variable types, and the use of global statements.

Uploaded by

shanthanking2311
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Function Header Information Explained

This document is an assignment for Class XII on the topic of Functions in programming. It includes questions about function design, headers, flow of execution, arguments, parameters, and various types of functions in Python. Additionally, it covers concepts like scope, variable types, and the use of global statements.

Uploaded by

shanthanking2311
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like