Function || True or False || Class 12




1. More than one value(s) can be returned by a function in Python.

2. The variable declared inside a function is called a global variable.

3. Once a function is defined, it may be called only once from many different places in a program.

4. Value returning functions should be generally called from inside of an expression.

5. A local variable having the same name as that of a global variable hides the global variable in its function.

6. Python passes parameters by reference.

7. Parameters specified within a pair of parentheses in the function definition are the actual parameters or non-formal parameters.

8. A function in Python is used by invoking it via a function call.

9. Built-in functions are created by users and are not a part of the Python library.

10. The first line of a function header begins with def keyword and eventually ends with a colon (:).

11. Recursive functions are faster than their iterative counterparts.

12. Recursion is defined as defining anything in terms of itself.

13. Non-default arguments can be placed before or after a default argument in a function definition.

14. A parameter having default value in the function header is known as a default parameter.

15. The first line of function definition that begins with keyword def and ends with a colon (:), is also known as function header.

16. Variables that are listed within the parentheses of a function header are called function variables.

17. In Python, the program execution begins with first statement of __main__ segment.

18. Default parameters cannot be skipped in function call.

19. The default values for parameters are considered only if no value is provided for that parameter in the function call statement.

20. A python function may return multiple values.

21. A void function also returns a value i.e., None to its caller.

22. Variables defined inside functions can have global scope.

23. A local variable having the same name as that of a global variable, hides the global variable in its function.

Answers =

1. True
2. False
3. False
4. True
5. True
6. False
7. False
8. True
9. False
10. True
11. False
12. True
13. False
14. True
15. True
16. False
17. True
18. False
19. True
20. True
21. True
22. False
23. True

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. please give answers side by side

    ReplyDelete
    Replies
    1. At first solve all question by own self then check it.

      Delete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post