11 IP Practical File 202425 - KIPS
11 IP Practical File 202425 - KIPS
Session: 2024-2025
Class: XI
___________________________
[Name of Student]
CERTIFICATE
Examiner Principal
Signature Seal and Signature
Index
Python Program
Prog. No. Practical Page No. Teacher’s Sign.
1 Write a program in python to print five
statements about drawback of excessive use of
mobile phone.
2 Write a Python program to find the addition,
multiplication, division and subtraction of two
numbers entered by user.
3 Write a Python program to accept the side from
the user and find the area of a square.
4. Write a Python program to accept the length
and breadth from the user and find the area of
rectangle.
Perimeter
4 Write a program in python to print any five
country name using list.
5 Write a program in python to print country name
and population using Dictionary.
6 Write a program in python to calculate area of
circle, take radius from user.
7 Write a program to input two values and
interchange these values using third variable.
8 Write a program in python to check you are
eligible for driving license or not using if else
statement. Eligible age criteria is minimum 18
years.
9 Write a program that obtains a number from the
user and checks whether he /she has entered
two digits, three digits, or four digits number.
10 A Krishna International Public School
management has decided to give a bonus of
10% to the employees whose years of service
are more than 5 years. Ask the users for their
salary and the year of service and print the net
bonus amount.
11 Write a program in python to print the multiples
of 10 for numbers in a given range. Using
range() function
12 Write a python program to join two or more lists
using concatenation operator using symbol “+”.
13 Write a python program to create a list of any 5
even numbers and write the output of code
given in question number (i) to (x).
14 Write a Python program to check whether a
given key already exists in a dictionary or not.
15 Write a Python program to calculate the sum,
minimum and maximum of the values of all the
items in a dictionary.
MYSQL Queries
Query No. Practical Page No. Teacher’s Sign.
1 Write a query to create and open database
KIPS11.
2 Create a student table with the student id,
class, section, gender, name, dob, and marks
as attributes where the student id is the primary
key.
3 Write a query to view the structure of the table.
4 Write a query insert given records in table
student.
5 Write a query to display the entire records of
table student.
6 Write a query to display StudentID, Name and
Marks of those students who are scoring marks
more than 90.
7 Write a query to find the average of marks from
the student table.
8 Write a query to display the records of Male
student.
9 Write a query to display the name, DOB and
marks of students, who are from section ‘A’.
10 Write a query to display the information all the
students, whose name starts with ‘V’.
11 Write a query to display StudentID, Name, DOB
of those students who are born between ‘2005-
01-01’ and ‘2005-12-31’.
12 Write a query to display StudentID, Name,
DOB, Marks, of students in ascending order of
their names.
13 Write a query to display StudentID, Name,
DOB, Marks, of students in descending order of
their marks.
14 Write a query to display the unique Gender
available in the table.
15 Write a query to DELETE the last record in the
table.
16 Write a query to display the final records of
table student.
1. Write a program in python to print five statements about drawback of excessive use of
mobile phone.
Code window
Output
Output
Enter the first number: 35
Enter the second number: 2
The addition of two number is: 37
The multiplication of two number is: 70
The Subtraction of two number is: 33
Division of two number is:17.5
3. Write a Python program to accept the side from the user and find the area of a square.
S=float(input("Enter the length of any one side:"))
area = S * 4
print("The area of square is:”, area)
Output:
Enter the length of any one side: 3.5
The area of square : 14.0
4. Write a program in python to print any five country name using list.
country=["India”,”Russia”,”UK”,”Canada”,”China”]
print(country)
Output:
[‘India’,’Russia’,’UK’,’Canada’,’China’]
5. Write a program in python to print country name and population using Dictionary.
CP = {"India”:’142.86cr’,”Russia”:’14.44cr’,”UK”:”6.77cr”,”Canada”:”3.87cr”,”China”:”142.56”}
print(CP)
Output
{"India”:’142.86cr’,”Russia”:’14.44cr’,”UK”:”6.77cr”,”Canada”:”3.87cr”,”China”:”142.56”}
6. Write a program in python to calculate area of circle, take radius from user.
Output
Enter radius of circle: 3
The area of circle is: 28.26 sq.cm
7. Write a program to input two values and interchange these values using third variable.
x=input(“Enter the value of x: ”)
y=input(“Enter the value of y: ”)
temp=x
x=y
y=temp
print(“The value of x after swapping: ”,x)
print(“The value of y after swapping: ”,y)
Output
Enter the value of x: PATAN
Enter the value of y: KIPS
The value of x after swapping: KIPS
The value of y after swapping: PATAN
8. Write a program in python to check you are eligible for driving license or not using if else
statement. Eligible age criteria is minimum 18 years.
Output
Enter a number:500
Three digit number
10. A Krishna International Public School management has decided to give a bonus of 10%
to the employees whose years of service are more than 5 years. Ask the users for their
salary and the year of service and print the net bonus amount.
Output
Enter your current monthly salary: 50000
Enter your year of service:7
11. Write a program in python to print the multiples of 10 for numbers in a given range.
Using range() function.
for num in range(6):
if num> 0:
print(num * 10)
Output
10
20
30
40
50
12. Write a python program to join two or more lists using concatenation operator using
symbol “+”.
>>>list1 = [1,3,5,7,9]
>>>list2 = [2,4,6,8,10]
>>>list3=list1 + list2
>>>print(list3)
Output
[1, 3, 5, 7, 9, 2, 4, 6, 8, 10]
>>>list4 = ['Red','Green','Blue']
>>>list5 = ['Cyan', 'Magenta', 'Yellow','Black']
>>>list6=list4 + list5
>>>print(list6)
Output
['Red', 'Green', 'Blue', 'Cyan', 'Magenta', 'Yellow', 'Black']
13. Write a python program to create a list of any 5 even numbers and write the output of
code given in question number (i) to (x).E1=[10,20,30,40,50]
(i) len(E1)
Output :5
(ii) E1.append(60)
print(E1)
Output: [10,20,30,40,50,60]
(iii) E1.insert(2,26)
print(E1)
Output: [10,20,26,30,40,50,60]
(iv) E1.count(30)
Output: 1
(v) E1.index(20)
Output: 1
(vi) E1.remove(26)
print((E1)
Output: [10,20,30,40,50,60]
(vii) E1.pop(5)
Output:60
(viii) E1.reverse()
print(E1)
Output: [50,40,30,20,10]
(ix) E1.sort()
print(E1)
Output: [10,20,30,40,50]
(x) sum(E1)
print(E1)
Output:150
14. Write a Python program to check whether a given key already exists in a dictionary or
not.
d={1:10,2:20,3:30,4:40,5:50,6:60}
a=int(input(“Enter key to search:”))
if a in d:
print(“Key is present in the dictionary.”)
else:
print(“Key is not present in the dictionary.”)
Output
Enter key to search: 4
Key is present in the dictionary.
15. Write a Python program to calculate the sum, minimum and maximum of the values of
all the items in a dictionary.
UT1={“English”:30,”IP”:35,”PE”:40}
print(sum(UT1.values()))
print(min(UT1.values()))
print(max(UT1.values()))
Output
105
30
40
MySQL Queries, Class :XI, Sub: IP
1. Write a query to create and open database KIPS11.
>>>create database KIPS11;
>>>use KIPS11;
2. Create a student table with the student id, class, section, gender, name, dob, and marks
as attributes where the student id is the primary key.
Table Structure
Field name Data type Constrains
StudentID Int Set primary key
Class Varchar(10)
Section Char(1)
Gender Char(1)
Name Varchar(20)
DOB Date
Marks Float
>>> Create table student(StudentID int, Class varchar(10), Section Char(1), Gender Char(1),
Name varchar(20), DOB Date, Marks Float, primary key(StudentID));
6. Write a query to display StudentID, Name and Marks of those students who are scoring
marks more than 90.
>>>select StudentID, Name, Marks from student where Marks>90;
7. Write a query to find the average of marks from the student table.
>>>Select avg(Marks) from student;
8. Write a query to display the records of Male student.
>>> select * from student where Gender=’M’;
9. Write a query to display the name, DOB and marks of students, who are from section ‘A’.
>>>select Name, DOB, Marks from student where Section=’A’;
10. Write a query to display the information all the students, whose name starts with ‘V’.
>>>Select * from student where Name LIKE ‘V%’;
11. Write a query to display StudentID, Name, DOB of those students who are born between
‘2005- 01-01’ and ‘2005-12-31’.
>>>select StudentID, Name, DOB from student where DOB BETWEEN “2005- 01-01” AND “2005-12-31”;
12. Write a query to display StudentID, Name, DOB, Marks, of students in ascending order
of their names.
>>>select StudentID, Name, DOB, Marks from student ORDER BY Name;
13. Write a query to display StudentID, Name, DOB, Marks, of students in descending order
of their marks.
>>>select StudentID, Name, DOB , Marks from student ORDER BY Marks DESC;
14. Write a query to display the unique Gender available in the table.
>>>select DISTINCT Gender from student;
Note: No need to write the output of MySQL Query No. 1, 2, 4 and 15.