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

Assignment 1 - Python

The document is an assignment for BCA Semester VI students focusing on Python Programming. It includes short and long questions aimed at understanding Python's features, syntax differences with other languages, and file handling operations. The assignment is designed to enhance practical skills in reading from and writing to files in Python.
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)
7 views1 page

Assignment 1 - Python

The document is an assignment for BCA Semester VI students focusing on Python Programming. It includes short and long questions aimed at understanding Python's features, syntax differences with other languages, and file handling operations. The assignment is designed to enhance practical skills in reading from and writing to files in Python.
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-I

Class & Semester : BCA Semester


Semester-VI
Subject Name : Python Programming
Subject Code : BCA302C
Faculty Name : Ms. Mansi Jain

Objective of Assignment: To learn how to read from and write to files in Python, and understand
practical applications of file operations.
UNIT-I

Short Questions
1. Name three features of Python that make it popular for programming.
2. How does Python differ from C or Java in terms of syntax and execution?
3. What is Python bytecode, and why is it used?
4. Give two examples of Python editors other than IDLE.
5. Define a Python tuple and mention one key difference between a tuple and a list.

Long Questions
1. Explain the Python runtime environment and the role of the Python interpreter in executing
code.
2. Discuss the comparison between Python, C, C++, and Java with respect to ease of learning,
memory management, and application areas.
3. Describe Python’s sequence types (lists, tuples, dictionaries). Provide examples of each and
explain one common operation for each.
4. Explain Python’s control statements (if
(if-else,
else, loops). Write a simple program using a loop and a
conditional statement.
5. Explain
ain file handling in Python. Write a Python program to read a file and count the number of
lines in it.
Sd/-
Ms. Mansi Jain

Campus: Plot No. 25/20/2, Rajiv Colony, Narela. Delhi - 110040


Email: [Link]@[Link]
[Link]@[Link]| Website: [Link]

You might also like