0% found this document useful (0 votes)
39 views34 pages

COMPUTER SCHOOL Practical 11th

Uploaded by

Rutwik
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)
39 views34 pages

COMPUTER SCHOOL Practical 11th

Uploaded by

Rutwik
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/ 34

CENTRAL BOARD OF SECONDARY EDUCATION

JAYAWANT
PUBLIC SCHOOL
A TERM 2 PRACTICAL RECORD FILE IS SUBMITTED TO DEPART-
MENT OF INFORMATICS PRACTICES FOR THE PARTIAL FULLFILL-
MENT OF CLASS XI TERM 2 EXAMINATION SESSION –2023-24

SUBMITTED BY - Rutwik Hankare


Subject Teacher - Mrs. SWATI MA’AM
CLASS - XI A
ROLL NO -
JAYAWANT PUBLIC SCHOOL
Urali Devachi,Handewadi,Pune-60

CERTIFICATE
This is a certification that _________________________has
finished the Practical work in IP (Informatics Practices)
according to the CBSE rules for the Practical Examination
class XI, which will be held in Jayawant Public School in 2023-
24.

Signature of Signature of Co-Coordinator’s Principal’s


External examiner Subject teacher Signature Signature
ACKNOWLEDGMENT

My practical would not have been possible


without the excellent guidance and helpful
support of my Computer teacher Swati
ma’am. I thank her from the bottom of my
heart.
I am also thankful to our principal ma’am
for her generous support and provision of all
the necessary facilities for this project.
I would like to express my sincere thanks
to my parents and friends for their constant
support and guidance throughout this project.
Their valuable feedback and advice helped me
to enhance the quality of my work. I also want
to acknowledge the contributions of the au-
thors and researchers whose works I consult-
ed for gathering information.
CONTENT

Sr.No. Name of the practical Date Sign


1. To find average and grade for giv-
en marks.

2. To find sale price of an item with


given cost and discount (%).

3. To calculate perimeter / circum-


ference and area of shapes such
as triangle, rectangle, squareand
circle.

4. To calculate Simple and Com-


pound interest.

5. To calculate profit-loss for given


Cost and Sell Price.

6. To calculate EMI for Amount, Pe-


riod and Interest.

7. To calculate tax - GST / Income


Tax.

8. To find the largest and smallest


numbers in a list.

9. To find the third largest/smallest


number in a list.
Sr.No. Name of the practical Date Sign
10. To find the sum of squares
of the first 100 natural num-
bers .

11. To print the first 'n' multi-


ples of given number.

12. To count the number of


vowels in user entered
string.

13. To print the words starting


with a alphabet in a user en-
tered string.
14. To print number of occur-
rences of a given alphabet
in each string.
15. Create a dictionary to store
names of states and their
capitals.
16. Create a dictionary of stu-
dents to store names and
marks obtained in 5 sub-
jects.
17. To print the highest and
lowest values in the diction-
ary.
Sr.No. Name of the practical Date Sign
18. To create a database
USE YourDatabaseName;

19. To create student table with the


student id, class, section, gen-
der, name, dob, and marks as
attributes where the student id
is the primary key.
20. To insert the details of at least
10 students in the above table.

21. To display the entire content of


table.

22. To display Rno, Name and Marks


of those students who are scor-
ing marks more than 50.
23. To display Rno, Name, DOB of
those students who are born
between '2005-01-01' and '2005
-12-31'.
24. To update the marks by 20 of
those student who got less than
35 marks.
25. To display the details of students
those name contains ‘S’ at any
position;
Sr.No Name of the practical Date Sign
.
26. To modify student table and add
new column ‘Address’.

27. To rename the table “Student”


to “Student_Details”.

28. To delete the records of those


student who are from class 10.

29. To display the details of all stu-


dent from Student_id 1 to 9.

30. To display the details of all the


students who are from 11 class.

31. To drop the table


“Student_Details”.
Python:
1. To find average and grade for given marks.
marks = [85, 90, 78, 92, 88]
average = sum(marks) / len(marks)
grade = 'A' if average >= 90 else 'B' if average >= 80 else 'C' if aver-
age >= 70 else 'D'
print(f"Average: {average}, Grade: {grade}")
2. To find sale price of an item with given cost and discount (%).
cost = 100
discount_percentage = 20
sale_price = cost - (cost * discount_percentage / 100)
print(f"Sale Price: {sale_price}")
3. To calculate perimeter/circumference and area of shapes such
as triangle, rectangle, square and circle.
length = 5
width = 3
perimeter = 2 * (length + width)
area = length * width
print(f"Perimeter: {perimeter}, Area: {area}")
4. To calculate Simple and Compound interest.
principal = 1000
rate = 5
time = 2
simple_interest = (principal * rate * time) / 100
print(f"Simple Interest: {simple_interest}")
5. To calculate profit-loss for given Cost and Sell Price.
cost_price = 200
sell_price = 250
profit_loss = sell_price - cost_price
print(f"Profit-Loss: {profit_loss}")
6. To calculate EMI for Amount, Period and Interest.
loan_amount = 5000
interest_rate = 8
loan_period = 12
emi = (loan_amount * interest_rate * (1 + interest_rate) *
loan_period) / ((1 + interest_rate) * loan_period - 1)
print(f"EMI: {emi}")
7. To calculate tax - GST / Income Tax.
income = 50000
gst_rate = 18
income_tax_rate = 15
gst_amount = (income * gst_rate) / 100
income_tax_amount = (income * income_tax_rate) / 100
print(f"GST Amount: {gst_amount}, Income Tax:
{income_tax_amount}")
8. To find the largest and smallest numbers in a list.
numbers = [34, 12, 89, 45, 67]
largest = max(numbers)
smallest = min(numbers)
print(f"Largest: {largest}, Smallest: {smallest}")
9. To find the third largest/smallest number in a list.
numbers=[78,10,165,48,96,37,20,13,1,7,9,6,4,3,5]
sorted_numbers = sorted(numbers)
third_largest = sorted_numbers[-3]
third_smallest = sorted_numbers[2]
print(f"Third Largest: {third_largest}, Third Smallest:
{third_smallest}")
10. To find the sum of squares of the first 100 natural numbers.
sum_of_squares = sum(i**2 for i in range(1, 101))
print(f"Sum of Squares: {sum_of_squares}")
11. To print the first 'n' multiples of given number.
base_number = 5
n=4
multiples = [base_number * i for i in range(1, n + 1)]
print(f"Multiples of {base_number}: {multiples}")
12. To count the number of vowels in user entered string.
user_string = "Hello, World!"
vowel_count = sum(1 for char in user_string if char.lower() in
'aeiou')
print(f"Vowel Count: {vowel_count}")
13. To print the words starting with a alphabet in a user entered
string.
user_string=’iloveinformaticspractices’
words_starting_with = 'H'
word_list = user_string.split()
selected_words = [word for word in word_list if word.startswith
(words_starting_with)]
print(f"Selected Words: {selected_words}")
14. To print number of occurrences of a given alphabet in each
string.
given_alphabet = 'l'
occurrences_per_string = [user_string.count(given_alphabet) for
user_string in ["Hello", "World", "Python"]]
print(f"Occurrences Per String: {occurrences_per_string}")
15. Create a dictionary to store names of states and their capitals.
states_capitals = {'California': 'Sacramento', 'Texas': 'Austin', 'New
York': 'Albany'}
print(states_capitals)
16. Create a dictionary of students to store names and marks ob-
tained in 5 subjects.
student_dict = {'John': [80, 85, 90, 75, 88], 'Alice': [92, 88, 78, 95,
89]}
print(student_dict)
17. To print the highest and lowest values in the dictionary.
marks={"m1":78 , "m2":89 , "m3":64 , "m4":35 , "m5":71}
v = marks.values()
maxi = max(v)
mini = min(v)
print("Maximum :",maxi)
print("Minimum :",mini)
Database:
18.To create a database.
—>
CREATE DATABASE School;

USE school;
19. To create student table with the student id, class, section,
gender, name, dob, and marks as attributes where the student id
is the primary key.
—>
CREATE TABLE student (
student_id INT PRIMARY KEY,
class INT,
section CHAR(1),
gender CHAR(1),
name VARCHAR(255),
dob DATE,
marks INT
);
20.To insert the details of at least 10 students in the above table.
—>
INSERT INTO student VALUES
(1, 10, 'A', 'M', 'John Doe', '2000-01-01', 75),
(2, 11, 'B', 'F', 'Jane Smith', '2001-02-15', 60),
(3,10,'A','M','Rajesh Kumar','2009-07-15',85),
(4, 10, 'A', 'F', 'Priya Sharma', '2009-03-20', 90),
(5, 10, 'B', 'M', 'Vikas Singh', '2009-05-10', 80),
(6, 10, 'B', 'F', 'Neha Patel', '2009-07-25', 95),
(7, 9, 'A', 'M', 'Rohan Desai', '2010-02-05', 75),
(8, 9, 'A', 'F', 'Pooja Joshi', '2010-04-15', 70),
(9, 9, 'B', 'M', 'Karan Gupta', '2010-06-30', 65),
(10, 9, 'B', 'F', 'Anjali Verma', '2010-09-10', 60);
21.To insert the details of at least 10 students in the above table.
—>
SELECT * FROM student;
22. To display Rno, Name and Marks of those students who are
scoring marks more than 50.
—>
SELECT student_id, name, marks FROM student WHERE marks >
50;
23. To display Rno, Name, DOB of those students who are born
between '2005-01-01' and '2005-12-31'.
—>
SELECT student_id, name, dob FROM student
WHERE dob BETWEEN '2009-01-01' AND '2009-12-31';
24. To update the marks by 20 of those student who got less than
35 marks.

->Update Student set marks=marks+20 where marks>35;

25. To display the details of students those name contains ‘S’ at


any position;

->Select * from student where name like ‘%s%’ ;


26. To modify student table and add new column ‘Address’.
->ALTER TABLE student ADD Address VARCHAR(200);

27. To rename the table “Student” to “Student_Details”.

->ALTER TABLE Student RENAME TO Student_Details;

28. To delete the records of those student who are from class 10.

->DELETE FROM student_Details


WHERE class = 10;
29. To display the details of all student from Student_id 1 to 9.

SELECT * FROM student_details


->WHERE Student_id BETWEEN 1 AND 9;

30. To display the details of all the students who are from 11
class.
->SELECT * FROM student_details
WHERE class = 11;
31. To drop the table “Student_Details”.

->DROP TABLE Student_Details;

You might also like