0% found this document useful (0 votes)
38 views

Python Assignment-2024

The document provides 15 questions related to Python programming concepts. It covers basic Python elements, objects and data types, exceptions, file handling, modules, generators, anonymous functions, tuples, lists, dictionaries, arguments, zipping/unzipping files, file opening modes, pickling/unpickling, constructors, and special methods.

Uploaded by

risvya728383
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

Python Assignment-2024

The document provides 15 questions related to Python programming concepts. It covers basic Python elements, objects and data types, exceptions, file handling, modules, generators, anonymous functions, tuples, lists, dictionaries, arguments, zipping/unzipping files, file opening modes, pickling/unpickling, constructors, and special methods.

Uploaded by

risvya728383
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ANAND INSTITUTE OF MA N A G E ME N T AN D

I NFORMATION SCIENCE
MCA – II SEMESTER
Assignment

Subject Code: 629403 Given Date: Tuesday, 12th March,2024


Subject Name: Programming in Python

Sr. No Question

1 What are the basic elements of Python?


2 Explain objects, expressions, and numerical types in Python.
3 What are Exceptions? Write a python code to explain exception handling.
4 How to insert, update and delete rows into mysql database using python?
Write a program to
demonstrate all these operations
What is module in python? Explain it.
3
4 Explain Assert Statement with Example.
5 What do you mean by Generators? Explain in detail.
6 What do you mean by Anonymous function ? Explain map() function with
reference to lambda
function.
7 Briefly explain file handling in Python? Give the purpose and syntax of the
following: open(),
close(), read() and write()
8 Explain Tuples, List and Dictionary in detail with suitable example.
9 Explain –name-- special variable in python.

10 What will be the difference between import employee and from employee
import * in python.
11 Explain Formal and Actual arguments in Python. Also explain the following
type of arguments
with proper code.
1. Positional Arguments
2. Keyword Arguments
3. Default Arguments
4. Variable Length Arguments
12 Explain the Concept of Zipping and Unzipping file.
13 Discuss File opening and different file opening modes
14 Write short note on Pickle and Unpickle process.
15 1. Discuss constructor and destructor in Python.
2.Explain significance of following words in Python:
1. __init__()
2. self
3. object()
4. isinstance()
5. hasattr()
6. getattr()
7. issubclass()
8. super()

You might also like