0% found this document useful (0 votes)
22 views4 pages

Python

Uploaded by

prajwalcharthad6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views4 pages

Python

Uploaded by

prajwalcharthad6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

4 chp (14 m)

Q1) 2m
1) Explain local and global variable.
2) Describe any two data conversion function.
3) State use of namespace in Python.

Q2) 4m
1) Explain how to use user defined function in Python with example.
2) WAP for importing module for addition and subtraction of two numbers.
3) WAP a program illustrating use of user defined package in python.
4) What is local and global variables? Explain with appropriate example.
5) Explain any four Python’s Built-in Function with example.
6) Explain Module and its use in python.
7) Write a python program using module, show how to write and use
module by importing it.
8) Explain Numpy Package in detail.

Q3) 6m
1) Explain package Numpy with example.
2) Example module. How to define module.
3) WAPP to calculate sum of digit of given number using function.
4) WAP illustrating use of user defined package in python.
5 chp (12 m)

Q1) 2m
1) Define class and object in python.
2) Write syntax of defining class in Python.
3) With neat example explain default constructor concept in python.
4) Define Data Hiding concept ? Write two advantages of data Hiding.

Q2) 4m
1) Write Python code for finding greatest among four numbers.
2) Illustrate with example method over loading.
3) Describe Self Parameter with example.
4) Explain method overloading and overloading in python.

Q3) 6m
1) Explain method overloading in python with example.
2) WAP to implement the concept of inheritance in Python.
3) Design a class student with data members; Name ,roll number address …
…students details.
4) Create a parent class named Animals and a child class …. Method feed.
5) Design a class student with data members; Name ,roll number ….
Student information.
6) With suitable example explain inheritance in Python.
7) WAP to create class student with roll no. and Name and display its
contents.
8) WAP to implement concept of inheritance in python.
6 chp (12 m)

Q1) 2m
1) List different modes of opening file in python.
2) List file operations in python.
3) Describe mkdir() function.
4) State the use of read() and readline() functions in Python file handling.

Q2) 4m
1) Explain use of format() method with example .
2) List file operations in Python.
3) Explain how try-catch block is used for exception handling in python.
4) Write Python code to count Frequency of each characters in a given file.
5) WAPP to read contents of abc.txt and write same content to pqr.txt.
6) Explain any four file modes in Python.
7) Write a program to show user defined exception in python.
8) Describe various modes of file object ? Explain any two in detail.
9) Explain seek() and tell() function for file pointer manipulation in Python
with example.

Q3) 6m
1) WAP to open a file in write mode and append some content at the end
of file.
2) Explain try-except block used in expection handling in python with
example.

You might also like