Practical_File
Practical_File
CLASS: XII A
ROLL NO:
1
CERTIFICATE
This is to certify that ANUJ KUMAR of Class 12 at
RPVV DWARKA SECTOR -19 has successfully
completed their Practical file of subject
“Computer science” for the Class XII practical
examination of the Central Board of Secondary
Education in the academic year 2024 – 2025.
I further certify that this practical file is the
individual work of the student.
[Signature of Teacher/HOD]
2
ACKNOWLEDEGEMENT
I would like to express my sincere gratitude
to my mentor Mr. Vinay sir for their guidance and
support throughout this practical file. Their feedback
was invaluable, and their encouragement helped me
to stay motivated and on track. I am grateful for their
patience and kindness. Also I am grateful for the
resources provided by my school and library, which
made it possible to complete this practical file.
finally, I would like to thank my friends and family for
their support and encouragement. They helped me
to get through the tough times and celebrate my
successes. I could not have done this without them.
3
S.NO DATE TOPIC PAGE.NO SIGN
1 WAP to compute x n of given two integers x and n. 5
Code:
********Output o f t he p rogram********
6
Program 3: WAP to accept a number from the user and display whether it
is an even number or odd
number.
Code:
7
Program 4 : WAP to accept percentage of a student and display its
grade
. accordingly
Code:
********Outputo f t he program********
8
Program 5 : WAP to print Fibonacci series upto certain
limit.
Code:
********Outputo f t he program********
9
Program 6 : WAP to display prime numbers upto a certain
limit.
Code:
********Outputo f t he program********
1
Program 7: WAP to accept a number, find and display whether it’s a
Armstrong number or not.
Code:
********Outputo f t he program********
1
Program 8 : WAP to accept a number and find out whether it is a
perfect number or not.
Code:
********Outputo f t he program********
1
Program 9: WAP to print the sum of the series
1+x1/1!+x2/2!+…….xn/(n)! - exponential series.
Code:
********Outputo f t he program********
1
Program 10: WAP to print the following1
pattern:
1
12
123
Code:
1
********Output of the program********
********Outputo f t he program********
1
1
Program 1 2- WAP that counts the number of alphabets and digits,
uppercase letters, lowercase letter, spaces and other characters in
the string entered.
Code:
********Outputo f t he program********
1
Program 1 3 WAP to accept a string ( a sentence) and returns a string
having first letter of each word in capital letter.
Code:
********Outputo f t he program********
1
Program 1 4 - WAP to remove all odd numbers from the given list.
Code:
********Outputo f t he program********
1
Program 1 5 WAP to display second largest element of a given list.
Code:
********Outputo f t he program********
2
Program 16 WAP to display cumulative elements of a given list.
For e g. L ist i s [10,20, 30,40]
output s hould b e [ 10, 3 0, 6 0, 1 00]
Code:
********Outputo f t he program********
2
Program 1 7 - WAP to display frequencies of all the elements of a
list.
Code:
********Outputo f t he program********
2
Program 1 8 - WAP in Python to display those strings which are
string
with ‘ A’ o f g iven list. Code:
********Outputo f t he program********
2
Program 19 - WAP in Python to find and display the sum of all
the
values which are ending with 3 from a list.
Code:
2
Program 2 0 - WAP to shift the negative number to left and the
positive Original l ist [- 1 2, 1 1, - 1 3, - 5 , 6 , - 7 , 5 , - 3 , - 6 ]
numbers t o r ight s o t hat t he r esultant l ist w ill l ook l ike.
Output s hould b e [ 11, 6 , 5 , - 6 , - 3 , - 7 , - 5 , - 1 3, - 1 2]
Code:
********Outputo f t he program********
2
Program 2 1-A list Num contains the following elements:
3 , 2 1, 5 , 6 , 1 4, 8 , 1 4, 3
WAP to swap the content with next value divisible by 7 so that the resultant
array will look like:
3 , 5 , 2 1, 6 , 8 , 1 4, 3 , 1 4
Code:
********Outputo f t he program********
2
Program 2 2-WAP to accept values from user and create a tuple.
Code:
********Outputo f t he program********
2
Program 2 3-Write a program to input total number of sections and stream
name in 11th class and display all information on the outpu
screen.
Code:
********Outputo f t he program********
2
Program 2 4- Write a Python program to input names of ‘n’ countries and their
capital and currency, store it in a dictionary and display in tabular form. Also
search and display for a particular country.
Code:
2
********Outputo f t he program********
3
3
. Command for creating a database.
3
7.Command to view the contents of the table.
3
11. Command for using ORDER BY clause.
3
16. Command for using GROUP BY.
19. Command for using group by and having clause with where clause.
3
21. Command to retrieve data from two tables.
3
24. Command for using where clause and group by.