Class 11 Computer Science Chapter 5 Functions In Python Quiz 17 (22 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Divya wants to print the identity of the object used in the function. Which of the following functions is used to print the same?
2. Which of the following describes a user-defined function?
3. Which of the following is true about the 'not in' operator?
4. What is the name given to that area of memory, where the system stores the parameters and local variables of a function call?
5. What is the output of the following code? "'pythondef greet():return "Hello!"print(greet()) "'
6. What is the syntax for calling a function in Python?
7. What is a standard module in Python?
8. Which type of function is a separate file containing functions and variables?
9. For a function header as follows:def Calc(X, Y = 20):Which of the following function calls will give an error?
10. What does the 'return' statement in a function allow you to do?
11. What will the following code output? def greet(name):print('Hello', name); greet('Alice')
12. Which of the following is a valid way to pass parameters to a function in Python?
13. Function sqrt() is available under which module of python?
14. How can you create a copy of a list in Python?
15. What will be printed by the following code? "'pythondef print ..... message(msg):print(msg)result = print ..... message("Hello, Year 11!")print(result) "'
16. Which is the most appropriate definition for recursion?
17. A(n) ..... is the part of a program in which a variable may be accessed.
18. Which function is called anonymous unnamed function
19. Can a lambda function have multiple arguments in Python?
20. The values being passed through function-call statements are called .....
21. When a variable is inside of a function what do you call its scope?
22. If you want to remove and return the last element of a list, which method would you use?