" /> -->

#### Python Functions Book Back Questions

12th Standard EM

Reg.No. :
•
•
•
•
•
•

Computer Science

Time : 00:45:00 Hrs
Total Marks : 30
5 x 1 = 5
1. A named blocks of code that are designed to do one specific job is called as

(a)

Loop

(b)

Branching

(c)

Function

(d)

Block

2. A Function which calls itself is called as

(a)

Built-in

(b)

Recursion

(c)

Lambda

(d)

return

3. In which arguments the correct positional order is passed to a function?

(a)

Required

(b)

Keyword

(c)

Default

(d)

Variable-length

4. Pick the correct one to execute the given statement successfully.
if ____ : print(x, " is a leap year")

(a)

x%2=0

(b)

x%4==0

(c)

x/4=0

(d)

x%4=0

5. Which of the following keyword is used to define the function testpython(): ?

(a)

define

(b)

pass

(c)

def

(d)

while

6. 3 x 2 = 6
7. Define global scope.

8. What is base condition in recursive function

9. How to set the limit for recursive function? Give an example.

10. 3 x 3 = 9
11. What is composition in functions?

12. How recursive function works?

13. What are the points to be noted while defining a function?

14. 2 x 5 = 10
15. Write a Python code to find the L.C.M. of two numbers.

16. Explain recursive function with an example.