Professional Documents
Culture Documents
SCHOOL
CLASS XII
CERTIFICATE
Registration No:
Signature Signature
(Internal Examiner) (External Examiner)
PROGRAM – 1
Aim : Write a program to do calculator operations using functions.
Program :
Output :
Program – 2
Aim : Write a program to find the HCF of two numbers using
functions.
Program :
Output :
Program – 3
Aim : Write a recursive code to find the Factorial.
Program :
Output :
PROGRAM – 4
Aim : Write a recursive code to find the sum of N numbers.
Program :
Output :
PROGRAM – 5
Aim : Write a recursive code to find the Fibonacci series.
Program :
Output :
PROGRAM – 6
Aim : To traverse, search, insert and delete elements in a linear list.
INSERT
Program :
OUTPUT :
DELETE
Program:
OUTPUT :
SEARCH
Program:
OU
TPUT :
Traverse
Program:
OUTPUT:
Program – 7
Aim : To get roll numbers, names and marks of the students of a class and
store these details in a file.
Program :
OUTPUT :
Program – 8
Aim : To read a text file line by line and display each word separated by ‘#’.
Program :
OUTPUT :
PROGRAM – 9
Aim : Read a text file and display the number of vowels /consonants /uppercase
/lowercase characters in the file.
Program :
Output :
Program – 10
Aim : Remove all the lines that contain the character 'a' in a file and write it to
another file.
Program :
Output :
PROGRAM – 11
Aim : Create a binary file with name and roll number. Search for a given roll
number and display the name, if not found display appropriate message.
Program :
Output :
Program – 12
Aim : Write a random number generator that generates random numbers between 1
and 6 (simulates a dice).
Program :
OUTPUT :
PROGRAM – 13
Aim : Program to find the occurrence of any word in a string.
Program :
OUTPUT :
Program – 14
Aim : To count no. of lines in a CSV file.
Program:
OUTPUT :
PROGRAM – 15
Aim : Write a function countrec() in Python that would read contents of the file
“STUDENT.DAT” and display the details of those students whose percentage is
OUTPUT :
TERM 2
PROGRAM – 16
Aim : Write a program to implement stack operations
Program :
OUTPUT :
SQL PRATICALS
ACTUAL TABLE:
IN :
BETWEEN:
LIKE:
SUM:
AVERAGE:
COUNT:
COUNT*
MAX:
MIN:
ORDER BY:
GROUP BY:
NULL/NOT NULL:
HAVING:
JOIN:
Show tables
Alter Table
Desc Table
Insert Into Table
Update set
Delete
P a g e | 43
Fetchone
Fetchall
Row Count