CPJ Institute of Management & Technology
(A PART OF CPJ GROUP OF INSTITUTIONS)
ASSIGNMENT-II
Class & Semester : BCA Semester VI
Subject Name : Python Programming
Subject Code : BCA302C
Faculty Name : Ms. Mansi Jain
UNIT-II
Short Questions
1. What are Python built-in functions? Write any four built-in functions with their uses.
2. Define a function in Python. Write the syntax of function definition and function call.
3. What are default arguments and keyword arguments in Python?
4. What is a lambda function? Write its syntax.
5. What is the purpose of the special variable __name__ in Python?
Long Questions
1. Explain function definition and function call in Python. Discuss the use of return statement and different
types of function arguments (default, keyword, arbitrary).
2. Explain pass by object reference in Python with suitable examples.
3. Compare map(), filter(), and reduce() functions in Python with examples.
4. What are modules in Python? Explain inbuilt and user-defined modules and the methods of importing
them.
5. What are packages in Python? Explain how packages are created and used in Python.
Sd/-
Ms. Mansi Jain
Campus: Plot No. 25/20/2, Rajiv Colony, Narela. Delhi - 110040
Email: [Link]@[Link]| Website: [Link]