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

Assignment 2 Python

This document is an assignment for BCA Semester VI students on Python Programming, detailing short and long questions related to the subject. It covers topics such as built-in functions, function definitions, lambda functions, and modules in Python. The assignment is prepared by Ms. Mansi Jain from CPJ Institute of Management & Technology.
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)
5 views1 page

Assignment 2 Python

This document is an assignment for BCA Semester VI students on Python Programming, detailing short and long questions related to the subject. It covers topics such as built-in functions, function definitions, lambda functions, and modules in Python. The assignment is prepared by Ms. Mansi Jain from CPJ Institute of Management & Technology.
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

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]

You might also like