0% found this document useful (0 votes)
13 views6 pages

Python Programming Lab Exam Tasks

The document outlines the end semester practical examinations for the Problem Solving and Python Programming Laboratory at Paavai Engineering College. It includes a list of 18 experiments that require students to write Python code for various tasks, such as calculating interest, performing string operations, and manipulating lists and dictionaries. Each experiment is assigned a specific score, indicating the importance of mastering these programming skills.

Uploaded by

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

Python Programming Lab Exam Tasks

The document outlines the end semester practical examinations for the Problem Solving and Python Programming Laboratory at Paavai Engineering College. It includes a list of 18 experiments that require students to write Python code for various tasks, such as calculating interest, performing string operations, and manipulating lists and dictionaries. Each experiment is assigned a specific score, indicating the importance of mastering these programming skills.

Uploaded by

vsriramsriram55
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

PAAVAI ENGINEERING COLLEGE (Autonomous)

END SEMESTER PRACTICAL EXAMINATIONS –NOV/DEC 2024


Department of Computer Science and Engineering
Sub Code / Sub Name : CS23103 – Problem Solving and Python Programming Laboratory
Year /SEM /Branch :
Date : Session:
List of Experiments

1 a) Ramu passed his higher Secondary school Education with eligible marks. He is planning
to study Engineering Courses. Get the maths, physics and chemistry marks and calculate the
Engineering cutoff and display the details. [50]

b) Write a Python code for creating a string and perform the following built in functions and
methos. [50]

a) Capitalize() [10]
b) Upper() [10]
c) Lower() [10]
d) Title() [10]
e) Swapcase() [10]

2 a) A person needs to apply loan from HDFC bank. Create a python source code to Calculate
simple interest if the principal amount=5000, years=4 and rate of interest=6 and also display
the details. [50]

b) Create a Python code for creating a string and perform the following built in functions and

methos. [50]

a) Len() [10]
b) Swapcase() [10]
c) Split() [10]
d) Isupper() [10]
e) Islower() [10]

3 a) Raju is purchasing a new Cloths for his festival. Create a Python Source code to provide
flat rs 500, if the purchase amount is greater than 2000 using if conditions. [50]
b) Develop a python program to perform the following string operations. [50]

i) Indexing [10]
ii)Slicing [10]
iii)Concatenation [10]
iv)Repetitions [10]
v)Membership [10]

4 a) Kumar is a sports student. He is planning to join Higher Educations. Create a Python


Source code to provide bonus mark if the category is sports using if conditions. [50]

b) Develop Python Program Using Classes and Objects to Deposit and Withdraw Money in

a Bank Account. [50]

5 a) Kumar age is 20 and Rajesh age is 16. Each person is willing for voting in this year.
Create a Python Source Code to find eligibility for voting of each candidate using if else
conditions.[50]

b) Write a python code to implement the below listed file operations.[50]

1. open() [10]
2. write() [10]
3. append() [10]
4. read() [10]
5. close() [10]

6 a) You are tasked with creating a program that calculates the final grade of a student based
on their scores in three exams. The grading system is as follows: [50]

A: 90-100

B: 80-89

C: 70-79

D: 60-69

F: Below 60

b) Develop a Python source code to perform different operations in a Calculator such as


addition, subtraction, multiplication and division using module. [50]
7 a) A person is travelling without knowing of a Traffic Light Signals. You are requested to
create a Python Source Code for finding traffic light system using if-elif-else. [50]

b) Create a list that contains fruits = ["apple", "banana", "cherry", "apple", "cherry"] and
perform the following Operations.[50]
a) Accessing a list element [10]
b) Negative indexing [10]
c) Getting size of a python list [10]
d) Slicing a list element [10]
e) Printing all the elements in a list [10]

8 a) Create a Python Source Code for Roots of quadratic equation using if-elif-else. [50]

b) Develop a list that contains list=[10,20,30,40,50,60,70,80,90,100] and perform the


following operations.[50]
a) Indexing [10]
b) Slicing [10]
c) Repetitions [10]
d) Membership [10]
e) Aliasing [10]

9 a) Get the input of any positive numbers and also find the given number is positive,
negative or zero using nested if conditions. [50]

b) Develop a list that contains list1=[10,20,30,40,50,60,70,80,90,100] ,


list2 = [“Apple”,”orange”,”banana”] and perform the following operations. [50]
a) Concatenation [25]
b) Comparison [25]

10 a) Read any positive integer value as an input from the user and also find the Sum of n
numbers using While Loop. [50]

b) Create a list that contains list=[10,20,30,40,50,60,70,80,90,100] and perform the following


list methods.[50]
a) Append() [10]
b) Insert() [10]
c) Extend() [10]
d) Clear() [10]
e) Copy() [10]
11 a) Write a Python program that calculates the factorial of a given positive integer. The
factorial of a number is the product of all positive integers up to that number. Implement it
using a loop. [50]

b) Create a list that contains list=[10,20,30,40,50,60,70,80,90,100] and perform the following


list methods.[50]

a) Count() [10]
b) Index() [10]
c) Pop() [10]
d) Remover() [10]
e) Reverse() [10]

12 a) Create a Python Source code to find the given number is Odd or even number using if
else conditions. [50]

b) Develop a list that contains list=[10,20,30,40,50,60,70,80,90,100] and perform the


following list methods. [50]
a) Pop() [10]
b) Remover() [10]
c) Reverse() [10]
d) Sort() [10]
e) Len() [10]

13 a) Read any positive value as a input from the user and find the given number is positive
or negative using if conditions. [50]

b) Develop a list that contains list=[10,20,30,40,50,60,70,80,90,100] and perform the


following list methods.[50]
a) Min() [10]
b) Max() [10]
c) All() [10]
d) Any() [10]
e) Sum() [10]

14 a) Get any year as an input from a user and find it if the given Year is leap year or not
using if else conditions. [50]

b) Create a Tuple such as tup=(10,20,30,40,50,60,70,80,90,100) and perform the below listed


operations. [50]
[Link] [10]
[Link] [10]
[Link] [10]
4. Iterative statements [10]

[Link] [10]

15 a) Collect any three positive numbers from a user and find greatest among these using if
else conditions. [50]

b) Develop a set such as set1=(10,20,30,40,50) and set2=(60,70,80,90,100) and perform the


below listed operations. [50]

[Link]() [10]
2. Len() [10]
[Link]() [10]
4. Remove() [10]
[Link]() [10]

16.a) Read the input value as 12345 and create a Python Source Code to Reverse it using
While Loop. [50]

b) Create a set such as set1=(10,20,30,40,50) and set2=(60,70,80,90,100) and perform the


below listed operations.[50]

[Link]() [10]
[Link]() [10]
[Link]() [10]
[Link]() [10]
[Link]() [10]

17 a) You are requested to read any positive number as input and find whether the given
numbers are Armstrong number or not using While Loop. [50]

b) Develop a dictionary such as dict={1:”python”,2:”c”,3:”java”,4:”C++”} and perform the


below listed operations.[50]

[Link]() [10]
[Link]() [10]
[Link]() [10]
[Link]() [10]
[Link]() [10]
18 a) Get any positive number as input value and also to find whether the given number is
Palindrome or not using While Loop. [50]

b) Develop a dictionary such as dict={1:”python”,2:”c”,3:”java”,4:”C++”} and perform the


below listed operations.[50]

1. Pop() [10]
[Link]() [10]
[Link]() [10]
[Link]() [10]
[Link]() [10]

INTERNAL EXAMINER EXTERNAL EXAMINER

You might also like