LORDS INSTITUTE OF ENGINEERING AND TECHNOLOGY (UGC
AUTONOMOUS)
Approved by AICTE | Recognized by Government of Telangana | Affiliated to Osmania University Accredited by
NBA | Accredited with ‘A’ grade by NAAC | Accredited by NABL SET-1
B.E, II- SEMESTER EXTERNAL EXAMINATION –MODEL PAPER
Python Programming
(Common for CSE/CSD)
Time: 3 Hours Max. Marks : 60
Instructions to the Students:
● Question No. 1 is compulsory
● Answer any 4 questions from Q.No.2 –Q.No.7
Q.No. 1: Five short answer Questions covering entire content of 5 units of the syllabus. At least on question from each Unit. C BT
O L
1 a. Mention all the Data Types in Python Programming? [2] CO BTL
1 2
b. Define function and give its advantages in python? [2] CO BTL
2 1
c. How do you reverse a list in Python? [2] CO BTL
3 1
d. Distinguish between text file and binary file. [2] CO BTL
4 2
e. What is NumPy, and why is it used? [2] CO BTL
5 2
f. How to access list value? [2] CO BTL
3 2
Questions (2-7) cover the entire syllabus and the candidate can answer any four questions.
2 a) List out and explain arithmetic, logical, membership and identity operators in python [12] CO1 BTL
programming? CO1 2
.
b) Explain about different types of Literals.
BTL
2
3 a) What is a Python package? Explain the structure and usage of packages with an example? [12] CO2 BTL
b) Explain and compare the Global Variables and Local Variables. CO2 3
BTL
2
4 a)What is tuple? What are the different operations performed on tuple? Explain with an example? [12] CO BT
. b)Explain about creating and accessing values in dictionary. 3 L4
CO BT
3 L4
5 a) Define File Handling in Python and Explain types of files supported in python. [12] CO BT
. b) Enlist and discuss types of inheritance. 4 L4
CO BT
4 L3
6 a) Explain how NumPy arrays are different from Python lists. [12] CO BT
. b) What is Pandas? List out key features of pandas. 5 L3
CO BT
5 L4
7 a) Write a python program to print a number is positive/negative using if-else? [12] CO BT
b) Write a Python Program to show the use of continue, break statement? 1 L2
CO BT
1 L3
I. Remember II. Understand III. Apply IV. Analyze V. Evaluate VI. Create
LORDSINSTITUTEOFENGINEERINGANDTECHNOLOGY (UGC
AUTONOMOUS)
Approved by AICTE | Recognized by Government of Telangana | Affiliated to Osmania University Accredited by
NBA | Accredited with ‘A’ grade by NAAC | Accredited by NABL SET-2
B.E, II- SEMESTER EXTERNAL EXAMINATION –MODEL PAPER
Python Programming
(Common for CSE/CSD)
Time: 3 Hours Max. Marks : 60
Instructions to the Students:
● Question No. 1 is compulsory
● Answer any 4 questions from Q.No.2 –Q.No7
Q.No. 1: Five short answer Questions covering entire content of 5 units of the syllabus. At least on question from each Unit. C BT
O L
1. a. What is python programming? Write its applications? [2] CO BTL
1 2
b. What is a Python module? [2] CO BTL
2 2
c. Give the features or characteristics of lists? [2] CO BTL
3 2
d. Difference between Absolute and Relative file paths. [2] CO BTL
4 1
e. List Key Features of Pandas. [2] CO BTL
5 2
f. Difference between a List and a Dictionary. [2] CO BTL
3 2
Questions (2-7) cover the entire syllabus and the candidate can answer any four questions.
2. a) What are the different data types in python? Explain each data type with a program [12 CO BTL
example? 1 2
]
b) Write a python program for largest among three numbers?
CO BTL
1 2
3. a) What is variable scope in Python functions? [12 CO BT
b) Explain the difference between a function definition and a function call. 2 L3
]
CO BT
2 L3
4. a) Summarize basic List operations with examples and explain characteristics of list? [12 CO BTL2
b) Explain set and explain about Characteristics of Python Sets? 3 BTL3
]
CO
3
5. a) Explain Open a file operation and File Object Attributes. [12 CO BT
b) Explain the types of inheritance. 4 L4
]
CO BT
4 L4
6. a) How do you create and manipulate a 3x3 NumPy array? [12 CO BT
b) Write a python program to display transpose of a matrix. 5 L3
]
CO BT
5 L4
7 a) Describe the ways of Defining the function. [12 CO BTL2
b) Explain the concept of a Python module and its advantages with examples? 2 BTL4
]
CO
2
I. Remember II. Understand III. Apply IV. Analyze V. Evaluate VI. Create
LORDSINSTITUTEOFENGINEERINGANDTECHNOLOGY (UGC
AUTONOMOUS)
Approved by AICTE | Recognized by Government of Telangana | Affiliated to Osmania University Accredited by
NBA | Accredited with ‘A’ grade by NAAC | Accredited by NABL SET-3
B.E, II- SEMESTER EXTERNAL EXAMINATION –MODEL PAPER
Python Programming
(Common for CSE/CSD))
Time: 3 Hours Max. Marks : 60
Instructions to the Students:
● Question No. 1 is compulsory
● Answer any 4 questions from Q.No.2 –Q.No7
Q.No. 1: Five short answer Questions covering entire content of 5 units of the syllabus. At least on question from each Unit. C BT
O L
1. a. What is the difference between list and tuple in Python? [2] CO BTL
1 1
b. Differentiate between global and local variable? [2] CO BTL
2 2
c. List out the operations performed on list with syntax. [2] CO BTL
3 2
d. Define class, attribute and object. [2] CO BTL
4 2
e. What is a panda in Python? [2] CO BTL
5 1
f. Distinguish between text file and binary file. [2] CO BTL
4 2
Questions (2-7) cover the entire syllabus and the candidate can answer any four questions.
2. a) Write the syntax of various Loop statements supported by python programming with [12] CO BTL
example program? 1 3
b) Write a python program to read the marks in four subjects and display the average? CO BTL
1 3
3. a) Explain about random module in python? [12] CO BT
b) Difference between Normal def defined function and Lambda? 2 L3
CO BT
2 L3
4. a) Explain map ( ), filter ( ), and reduce ( ) functions [12] CO BTL
b) Difference between List, Tuple, Set, and Dictionary 3 3
CO BTL
3 3
5. a) Explain types of methods available to read contents from a file. [12] CO BT
b) Define exception and explain Exception handling with an example. 4 L4
CO BT
4 L3
6. a) Describe how broadcasting works in NumPy with an example. [12] CO BT
b) Write a python program to display the dimensions of the array 5 L2
CO BT
5 L2
7. a) Explain add, modify and delete in dictionary. [12] CO BT
b) Explain Traversing dictionaries or Iterate through a dictionary 3 L3
CO BT
3 L3
I. Remember II. Understand III. Apply IV. Analyze V. Evaluate VI. Create
LORDS INSTITUTE OF ENGINEERING AND TECHNOLOGY (UGC SET-4
AUTONOMOUS)
Approved by AICTE | Recognized by Government of Telangana | Affiliated to Osmania University Accredited by
NBA | Accredited with ‘A’ grade by NAAC | Accredited by NABL
B.E, II- SEMESTER EXTERNAL EXAMINATION –MODEL PAPER
Python Programming
(Common for CSE/CSD)
Time: 3 Hours Max. Marks : 60
Instructions to the Students:
● Question No. 1 is compulsory
● Answer any 4 questions from Q.No.2 –Q.No7
Q.No. 1: Five short answer Questions covering entire content of 5 units of the syllabus. At least on question from C BTL
each Unit. O
CO BTL1
1. a. What are the key features of Python? [2]
1
How do you call a function in Python? CO BTL2
b. [2]
2
CO BTL2
c. Define set with syntax. [2]
3
CO BTL1
d. what is the Built-in Exception in python. [2]
4
CO BTL1
e. What is Reindexing in Pandas? [2]
5
CO BTL1
f. What are strings? How do you declare string in python Give an example? [2]
1
Questions (2-7) cover the entire syllabus and the candidate can answer any four questions.
2.
a) Explain the following conditional statement in python programming Give the syntax?
[12] CO1 BTL2
I)if II) if else
b) Write a python program to print the Fibonacci series up to n numbers? CO1 BTL3
3.
a) Differentiate between a Module, a Package, and a Library in Python. Provide examples?
[12] CO2 BTL3
b) Write a python program to find the factorial of a given number using a function. CO2 BTL2
4.
a) a)Explain union, intersection, difference and symmetric difference of set with syntax
[12] CO3
BTL
and example. CO3
b) b)Python Program to Count Even and Odd Numbers in a List. 4
BTL
2
5.
a) Write a note on Renaming and Deleting Files?
[12] CO4 BTL4
b) What are the Features of oops? CO4 BTL4
6.
a) What are universal functions in NumPy, and why are they important?
[12] CO5 BTL3
b) What is Pandas? List out key features of pandas CO5 BTL4
7.
a) Define exception and explain Exception handling with an example.
[12] CO4 BTL4
b) Explain Open a file operation and File Object Attributes. CO4 BTL3
I. Remember II. Understand III. Apply IV. Analyze V. Evaluate VI. Create