KV CS Practical File
KV CS Practical File
1 AFS
Grurugram
Computer Science
Practical File
Name :- ____________________
Class :- ____________________
Roll no. :- ____________________
1. Write a program to accepts two integers and print their sum.
Code:-
Output:-
2. Write a program that accepts radius of a circle and prints its area.
Code:-
Output:-
3. Write a program that accepts base and height and calculate the area of
triangle.
Code:-
Output:-
4. Write a program that inputs a student’s marks in three subjects (out of 100)
and prints the percentage marks.
Code:-
Output:-
5. Write a program to calculate simple interest.
Code:-
Output:-
Output:-
i.
ii.
7. Write a program to find largest among three integers.
Code:-
Output:-
Code:-
Output:-
9. Write a program that accepts weight in Kg and height in meters and
calculate the BMI.
Code:-
Output:-
10. Write a program to accept the marks of five subjects and calculate the
average marks.
Code:-
Output:-
11. Write a program to accept the year and check if it is a leap year or not.
Code:-
Output:-
12. Write a program to input percentage marks of a student and find the grade
as per the following criterion:
Marks Grade
>=90 A
75-90 B
60-75 C
Below 60 D
Code:-
Output:-
14. Write a program that reads two numbers and an arithmetic operator and
displays the computed result.
Code:-
Output:-
Output:-
16. Write a Python script to print Fibonacci series’ first 20 elements.
Code:-
Output:-
17. Input three angles and determine if they form a triangle or not.
Code:-
Output:-
Output:-
20. WAP to store students’ details like admission number, roll number, name
and percentage in a dictionary and display information on the basis of
admission number.
Code:-
Output:-
21. WAP to accept values from user and create a tuple.
Code:-
Output:-