0% found this document useful (0 votes)
114 views14 pages

11 IP Practical File 202425 - KIPS

The document is a practical record file for Class XI Informatics Practices at Krishna International Public School for the academic session 2024-2025. It includes acknowledgments, a certificate of completion, an index of Python programs and MySQL queries, and detailed code examples for various programming tasks. The practical file serves as a compilation of programming exercises and database queries for evaluation purposes.

Uploaded by

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

11 IP Practical File 202425 - KIPS

The document is a practical record file for Class XI Informatics Practices at Krishna International Public School for the academic session 2024-2025. It includes acknowledgments, a certificate of completion, an index of Python programs and MySQL queries, and detailed code examples for various programming tasks. The practical file serves as a compilation of programming exercises and database queries for evaluation purposes.

Uploaded by

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

Krishna International Public School, Patan

At. Runi, Po. Mandotri, Patan Unjha Highway, Patan, Gujarat

Affiliated to CBSE, New Delhi Affiliation No: 430378

PRACTICAL RECORD FILE

Session: 2024-2025

Subject: Informatics Practices (065)

Class: XI

Submitted by: ___________________________

Roll Number:_____________ Exam No.: ___________

Submitted to: Mr. Suresh Patel


ACKNOWLEDGEMENT
I wish to express my deep sense of
gratitude and indebtedness to our learned teacher
SURESH PATEL, PGT INFORMATICS PRACTICES,
Krishna International Public School for his
invaluable help, advice and guidance in the
preparation of this practical record file.

I am also greatly indebted to our


principal Mr. Amit Patel and school authorities for
providing me with the facilities and requisite
laboratory conditions for making this practical file.

I also extend my thanks to a number of


teachers, my classmates and friends who helped me to
complete this practical file successfully.

___________________________

[Name of Student]
CERTIFICATE

This is to certify that ____________

, student of Class XI, Krishna International Public

School has completed the PRACTICAL FILE during

the academic session 2024-2025 towards partial

fulfillment of credit for the Informatics Practices

practical evaluation of CBSE and submitted

satisfactory report, as compiled in the following

pages, under my supervision .

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

print(“Due to mobile phone many people lose their loved ones”)


print(“Many people suicide due to mobile games”)
print(“Eyes can be affected”)
print(“Physical and mental health issue”)
print(“Reduce study and family time”)

Output

Due to mobile phone many people lose their loved ones


Many people suicide due to games
Eyes can be affected
Physical and mental health issue
Reduce study and family time
2. Write a Python program to find the addition, multiplication, division and subtraction of
two numbers entered by user.

n1=int(input("Enter the first number:"))


n2=int(input("Enter the second number:"))
add=n1+n2
mul=n1*n2
sub=n1-n2
div=n1/n2
print("The addition of two number is:",add)
print("The multiplication of two number is:",mul)
print("The subtraction of two number is:",sub)
print(" The division of two number is:",div)

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.

r = float(input("Enter radius of circle: ”))


a=3.14*r**2
print("The area of circle is: ", a,” sq.cm”)

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.

age=int(input("Enter your current age"))


if age>=18:
print("Wow! You are eligible for driving license")
else:
print("Oh Sorry! You are not eligible for driving license, please try when your age is 18 year")
Output
Enter your age16
Oh Sorry! You are not eligible for driving license, please try when your age is 18 year
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.
num=int(input("Enter a number:"))
if 9<num<=99:
print("Two digit number")
elif 99<num<=999:
print("Three digit number")
elif 999<num<=9999:
print("Four digit number")
else:
print("number is <=9 or >=9999")

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.

salary=float(input(“Enter your current monthly salary: ”))


yos=float(input(“Enter your year of service: ”))
if yos>5:
print(“Your Bonus amount is:”,0.10*salary)
else:
print(“No Bonus because you have not completed 5 years of service”)

Output
Enter your current monthly salary: 50000
Enter your year of service:7

Your Bonus amount is: 5000.0

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));

3. Write a query to view the structure of the table.


>>> DESC student; OR
>>> DESCRIBE student;

4. Write a query insert given records in table student.

StudentID Class Section Gender Name DOB Marks


1101 11 A M Ajay Patel 12-09-2004 91.78
1102 11 A M Vatsal Shah 25-10-2005 93.77
1103 11 A M Ved Goswami 15-08-2003 87.98
1104 11 A F Honey Patel 31-01-2005 79.77
1105 11 A F Tulsi Pandya 25-02-2008 82.55
>>>insert into student values(1101,’11’,’A’,’M’,’Ajay Patel’,’2004-09-12’,91.78);
>>>insert into student values(1102,’11’,’A’,’M’,’Vatsal Shah’,’2005-10-25’,93.77);
>>>insert into student values(1103,’11’,’A’,’M’,’Ved Goswami’,’2003-08-15’,87.98);
>>>insert into student values(1104,’11’,’A’,’F’,’Honey Patel’,’2005-01-31’,79.77);
>>>insert into student values(1105,’11’,’A’,’F’,’Tulsi Pandya’,’2008-02-25’,82.55);

5. Write a query to display the entire records of table student.


>>>select * from student;

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;

15. Write a query to DELETE the last record in the table.


>>>Delete from student where StudentID=1105;

16. Write a query to display the final records of table student.


>>>select * from student;

Note: No need to write the output of MySQL Query No. 1, 2, 4 and 15.

You might also like