0% found this document useful (0 votes)
2 views1 page

Python Functions and Recursion Tutorial

Uploaded by

ramgess
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)
2 views1 page

Python Functions and Recursion Tutorial

Uploaded by

ramgess
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

Tutorial test 5 Tutorial test 5 Tutorial test 5 Tutorial test 5

Part A (5*2=10 marks) Part A (5*2=10 marks) Part A (5*2=10 marks) Part A (5*2=10 marks)

1. Difference between 1. Difference between 1. Difference between 1. Difference between


Arguments and parameters in Arguments and parameters Arguments and parameters in Arguments and parameters in
python? in python? python? python?
2. What is local variable and 2. What is local variable and 2. What is local variable and 2. What is local variable and
global variable with suitable global variable with suitable global variable with suitable global variable with suitable
example. example. example. example.
3. What is recursion and its 3. What is recursion and its 3. What is recursion and its 3. What is recursion and its
types? types? types? types?
4. What is the need of return in 4. What is the need of return in 4. What is the need of return in 4. What is the need of return in
function? function? function? function?
5. Name the two types of 5. Name the two types of 5. Name the two types of 5. Name the two types of
iterative statements iterative statements iterative statements iterative statements
supported by python. supported by python. supported by python. supported by python.

Part B (2*10=20 marks) Part B (2*10=20 marks) Part B (2*10=20 marks) Part B (2*10=20 marks)

6. Explain the syntax and 6. Explain the syntax and 6. Explain the syntax and 6. Explain the syntax and
structure of user defined structure of user defined structure of user defined structure of user defined
function in python with function in python with function in python with function in python with
example. example. example. example.
7. Write the python program to 7. Write the python program to 7. Write the python program to 7. Write the python program to
find the factorial of a given find the factorial of a given find the factorial of a given find the factorial of a given
number with and without number with and without number with and without number with and without
recursion. recursion recursion recursion

Tutorial test 5 Tutorial test 5 Tutorial test 5


Tutorial test 5
Part A (5*2=10 marks) Part A (5*2=10 marks) Part A (5*2=10 marks)
Part A (5*2=10 marks)
1. Difference between 1. Difference between 1. Difference between
Arguments and parameters in Arguments and parameters in Arguments and parameters in 1. Difference between
python? python? python? Arguments and parameters in
2. What is local variable and 2. What is local variable and 2. What is local variable and python?
global variable with suitable global variable with suitable global variable with suitable 2. What is local variable and
example. example. example. global variable with suitable
3. What is recursion and its 3. What is recursion and its 3. What is recursion and its example.
types? types? types? 3. What is recursion and its
4. What is the need of return in 4. What is the need of return in 4. What is the need of return in types?
function? function? function? 4. What is the need of return in
5. Name the two types of 5. Name the two types of 5. Name the two types of function?
iterative statements iterative statements iterative statements 5. Name the two types of
supported by python. supported by python. supported by python. iterative statements
supported by python.
Part B (2*10=20 marks) Part B (2*10=20 marks) Part B (2*10=20 marks)
Part B (2*10=20 marks)
6. Explain the syntax and 6. Explain the syntax and 6. Explain the syntax and
structure of user defined structure of user defined structure of user defined 6. Explain the syntax and
function in python with function in python with function in python with structure of user defined
example. example. example. function in python with
7. Write the python program to 7. Write the python program to 7. Write the python program to example.
find the factorial of a given find the factorial of a given find the factorial of a given 7. Write the python program to
number with and without number with and without number with and without find the factorial of a given
recursion recursion recursion number with and without
recursion
Tutorial test 5 Tutorial test 5 Tutorial test 5
Tutorial test 5
Part A (5*2=10 marks) Part A (5*2=10 marks) Part A (5*2=10 marks)
Part A (5*2=10 marks)
1. Difference between 1. Difference between 1. Difference between
Arguments and parameters in Arguments and parameters in Arguments and parameters in 1. Difference between
python? python? python? Arguments and parameters in
2. What is local variable and 2. What is local variable and 2. What is local variable and python?
global variable with suitable global variable with suitable global variable with suitable 2. What is local variable and
example. example. example. global variable with suitable
3. What is recursion and its 3. What is recursion and its 3. What is recursion and its example.
types? types? types? 3. What is recursion and its
4. What is the need of return in 4. What is the need of return in 4. What is the need of return in types?
function? function? function? 4. What is the need of return in
5. Name the two types of 5. Name the two types of 5. Name the two types of function?
iterative statements iterative statements iterative statements 5. Name the two types of
supported by python. supported by python. supported by python. iterative statements
supported by python.
Part B (2*10=20 marks) Part B (2*10=20 marks) Part B (2*10=20 marks)
Part B (2*10=20 marks)
6. Explain the syntax and 6. Explain the syntax and 6. Explain the syntax and
structure of user defined structure of user defined structure of user defined 6. Explain the syntax and
function in python with function in python with function in python with structure of user defined
example. example. example. function in python with
7. Write the python program to 7. Write the python program to 7. Write the python program to example.
find the factorial of a given find the factorial of a given find the factorial of a given 7. Write the python program to
number with and without number with and without number with and without find the factorial of a given
recursion recursion recursion number with and without
recursion

You might also like