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

Unit 1 2 Marks

The document outlines a curriculum for a Python programming course, divided into six units covering various topics such as data types, object-oriented features, loops, exception handling, and file operations. Each unit includes questions and programming tasks, categorized by marks, to assess understanding and application of Python concepts. Additionally, it includes practical programming exercises to reinforce learning through coding examples.
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)
9 views4 pages

Unit 1 2 Marks

The document outlines a curriculum for a Python programming course, divided into six units covering various topics such as data types, object-oriented features, loops, exception handling, and file operations. Each unit includes questions and programming tasks, categorized by marks, to assess understanding and application of Python concepts. Additionally, it includes practical programming exercises to reinforce learning through coding examples.
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

Unit 1

2 Marks

Name different modes of Python.(Samp)


List different Object Oriented features supported by Python.(Samp)
List Python features. (Any four)
Describe indentation in Python.(W22)

4 Marks

6 Marks

Determine various data types available in Python with example.(Samp),(W22)

Unit 2
2 Marks

List identity operators.(Samp)


List comparision operators in Python.(W22)

4 Marks

Explain different loops available in python with suitable examples.(Samp)


Explain two Membership and two logical operators in python with appropriate
examples.(Samp)
Describe bitwise operators in Python with example.(W22)

6 Marks

Unit 3
2 Marks

Describe Dictionary.(Samp)
Describe Tuples in Python.(W22)

4 Marks

Describe any four methods of lists in Python .(Samp)


Use of any four methods of tuple in python?(Samp)
Write any four methods of dictionary.(W22)
Write basis operations of list.(W22)
Compare list and dictionary. (Any 4 points)(W22)
6 Marks

Describe Set in python with suitable examples.(Samp)


Unit 4
2 Marks

State use of namespace in Python.(Samp)


Write use of lambda function in python.(W22)
4 Marks

Comparing between local and global variable.(Samp)

What is local and global variables? Explain with appropriate


example.(W22)
Example module. How to define module.(W22)

6 Marks

Explain mutable and immutable data structures.(W22)

Unit 5
2 Marks

Describe Python Interpreter.(Samp)


Write syntax of defining class in Python.(W22)
Illustrate the use of method overriding? Explain with example.(Samp),(W22)
Describe various modes of file object? Explain any two in detail.(Samp)
What is command line argument? Write python code to add
two numbers given as input from command line arguments and
print its sum.(W22)

6 Marks
Illustrate class inheritance in Python with an example.(Samp)

Unit 6
2 Marks

Write steps involved in creation of a user defined exception?(Samp)


List file operations in Python.(W22)
4 Marks

Show how try…except blocks is used for exception handling in Python with example.
(Samp)
Explain how try-catch block is used for exception handling in
python.(W22)

6 Marks
Program

4 Marks

Write a python program to print Fibonacci series up to n terms.(Samp)

Write a python program to calculate factorial of given number using function.(Samp)

Write a program to input any two tuples and interchange the tuple variable.(Samp)

Write a python program to read contents of first.txt file and write same content in
second.txt file.(Samp)

Write the output for the following if the variable fruit=’banana’: (Samp)
>>>fruit[:3]
>>>fruit[3:]
>>>fruit[3:3]
>>>fruit[:]

Write python program to illustrate if else ladder.(W22)


Write Python code for finding greatest among four numbers.(W22)
Write python code to count frequency of each characters in a
given file. (W22)
Write python program to read contents of abc.txt and write
same content to pqr.txt.(W22)
Write python program to perform following operations on Tuples; (W22)
i) Create set
ii) Access set Element
iii) Update set
iv) Delete set

6 Marks

Show the output for the following: (Samp)


1. >>> a=[1,2,3]
>>>b=[4,5,6]
>>> c=a+b
2. >>>[1,2,3]*3
3. >>>t=[‘a’,’b’,’c’,’d’,’e’,’f’]
>>>t[1:3]=[‘x’,’y’]
>>>print t

Design a class Employee with data members: name, department and salary. Create
suitable methods for reading and printing employee information.(Samp)

Design a class student with data members; Name, roll number


address. Create suitable method for reading and printing students
details.(W22)
Create a parent class named Animals and a child class
Herbivorous which will extend the class Animal. In the child
class Herbivorous over side the method feed ( ). Create a object
of the class Herbivorous and call the method feed.(W22)

You might also like