0% found this document useful (0 votes)
19 views

Practical_File

Uploaded by

akanujid
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)
19 views

Practical_File

Uploaded by

akanujid
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/ 36

RPVV DWARKA SECTOR -19

NAME: ANUJ KUMAR

CLASS: XII A

ROLL NO:

SUBJECT: COMPUTER SCIENCE PRACTICAL FILE

REPORTED TO: MR.VINAY GAHLOT

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

2 WAP for calculating simple interest. 6

3 WAP to accept a number from the user and display 7


whether it is an even number or odd number.
4 WAP to accept percentage of a student and
8
display its grade accordingly

5 WAP to print Fibonacci series upto certain limit. 9


WAP to display prime numbers upto a certain
6 10
limit.
7 WAP to accept a number, find and display 11
whether it’s a Armstrong number or not.
WAP to accept a number and find out whether
8 it is a perfect number or not. 12
WAP to print the sum of the series
9 1+x1/1!+x2/2!+…….xn/(n)! - exponential series. 14

10 WAP to print pattern: 17

WAP to accept a string and display whether


11 18
it is a palindrome.
WAP that counts the number of alphabets
12 and digits, uppercase ........... 19
WAP to accept a string ( a sentence) and returns
13 a string ..... 20
WAP to remove all odd numbers from
14 21
the given list.
WAP to display second largest element
15 22
of a given list.
WAP to display cumulative elements
16 of a given list...... 23
WAP to display frequencies of all the
17 elements of a list. 24
WAP in Python to display those strings which
18 25
are string
WAP in Python to find and display
19 26
the sum of all the......
WAP to shift the negative number to left
20 27
and the positive ...
WAP to shift the negative number to left and
21 28
the positive ...
WAP to accept values from user and
22 29 4
create a tuple.
Program 2 : WAP for calculating simple interest.

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:

********Output of the program********

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********

Program 11: WAP to accept a string and display whether it is a


palindrome.
Code:

********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:

********Output of the program********

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********

Country Capital Currency

Austria Vienna Euro


India New D elhi Indian R upee
France Paris Euro

Country Capital Currency

India New D elhi Indian R upee

3
3
. Command for creating a database.

2.Command for using the database.

3.Command for creating a table.

4.Command for showing the structure of table.

5.Command to show tables present in database.

6. Command for inserting data into a table.

3
7.Command to view the contents of the table.

8.Command to retrieve data.

9.Command for using keyword DISTINCT.

10. Command for using WHERE clause.

3
11. Command for using ORDER BY clause.

12. Command for using UPDATE .

13. Command for using ALTER (to modify structure of table).

14. Command for using LIKE operator.

15. Command for using aggregate functions.

3
16. Command for using GROUP BY.

17. Command for using HAVING clause.

18. Command for using Group by with order by.

19. Command for using group by and having clause with where clause.

20. Command for equi-join of tables.

3
21. Command to retrieve data from two tables.

22. Command for using group by clause in join.

23. Command for using group by and order by clause in equi-join.

3
24. Command for using where clause and group by.

25. Command for adding primary key.

26. Command to delete a column.

27. Command to remove primary key.

28. Command to increase marks.

29. Command to change data type of an existing column.

30. Command to a delete table.

You might also like