Python First Internal
Python First Internal
CLASS: I-B.Sc (CS) Python Programming Total Marks : 50 CLASS: I-B.Sc (CS) Python Programming Total Marks : 50
Date: 22.09.2023 Paper Code: 23UCSCC01 Time : 2 hrs
Date: 22.09.2023 Paper Code: 23UCSCC01 Time : 2 hrs
SECTION – A (5×1=5)
SECTION – A (5×1=5)
1. Which keyword is used for function?
1. Which keyword is used for function?
a) Fun b) Define c) def d) Function
a) Fun b) Define c) def d) Function
2. What is called when a function is defined inside a class?
2. What is called when a function is defined inside a class?
a. class b. function c. method d. module
a. class b. function c. method d. module
3. What is a recursive function?
3. What is a recursive function?
a. A function that calls other function. b. A function which calls itself.
a. A function that calls other function. b. A function which calls itself.
c. Both A and B d. None of the above
c. Both A and B d. None of the above
4. What is a variable defined outside a function referred to as?
4. What is a variable defined outside a function referred to as?
a. local variable b. global variable
a. local variable b. global variable
c. static Variable d. automatic variable
c. static Variable d. automatic variable
5. A return statement with _____ arguments.
5. A return statement with _____ arguments.
a. No b. 1 c. 2 d. Any
a. No b. 1 c. 2 d. Any
SECTION – B (3×5=15)
SECTION – B (4×5=15)
6. Various jumping statements in python.
6. Various jumping statements in python.
7. Describe about recursive function with an example..
7. Describe about recursive function with an example..
8. Explain about keyword arguments in python.
8. Explain about keyword arguments in python.
SECTION – C (3×10=30)
SECTION – C (5×10=50)
9. Explain in detail about looping statements.
9. Explain in detail about looping statements.
10. Explain in details about various String handling function .
10. Explain in details about various String handling function .
11. Write a python program to generate mark statement with different
11. Write a python program to generate mark statement with different
function names as basic, marks and result
function names as basic, marks and result
******* All the Best *******
******* All the Best *******