0% found this document useful (0 votes)
53 views1 page

List of Practicals Class Xii 2022 23

The document lists 28 practicals for the Computer Science subject using Python programming language. Some key practicals include writing programs to check if a number is prime or a palindrome, compute GCD and LCM of numbers, generate random numbers for a lottery, perform file handling operations with text and binary files, perform linear search on a list, implement stack operations, write SQL queries to perform operations on databases including creating/inserting/updating/deleting records.

Uploaded by

Night Fury
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)
53 views1 page

List of Practicals Class Xii 2022 23

The document lists 28 practicals for the Computer Science subject using Python programming language. Some key practicals include writing programs to check if a number is prime or a palindrome, compute GCD and LCM of numbers, generate random numbers for a lottery, perform file handling operations with text and binary files, perform linear search on a list, implement stack operations, write SQL queries to perform operations on databases including creating/inserting/updating/deleting records.

Uploaded by

Night Fury
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/ 1

PRACTICAL FILE- COMPUTER SCIENCE (083)

LIST OF PRACTICALS (2022-23) CLASS-XII


Programming Language : Python
S.
NAME OF PRACTICAL
No.
1 Write a program in python to check a number whether it is prime or not.
2 Write a program to check a number whether it is palindrome or not.
3 Write a program to display ASCII code of a character and vice versa.
Write a function SwapNumbers( ) to swap two numbers and display the numbers before swapping and
4
after swapping.
5 Write a program to compute GCD and LCM of two numbers using functions.
6 Write a function FACT( ) to calculate the factorial of an integer .
Write a program to generate random numbers between 1 to 6 and check whether a user won a lottery or
7
not.
8 Write a program to count the number of vowels present in a text file.
9 Write a program to write those lines which have the character 'p' from one text file to another text file.
10 Write a program to count number of words in a file.
11 Write a python program to write student data in a binary file.
12 Write a python program to read student data from a binary file.
13 Write a python program to modify/update student data in a binary file.
14 Write a python program to delete student data from a binary file.
15 Write a python program to search a student record in a binary file.
16 Write a program to perform read and write operation with .csv file.

17 Create a CSV file by entering user-id and password, read and search the password for given userid.

18 Write a program for linear search.


Write a program to pass an integer list as stack to a function and push only those elements in the stack
19
which are divisible by 7.
20 Write a menu based program to perform the operation on stack in python.
SQL Queries :
Queries using Create database, Show databases, USE, Create table, Show Tables, Describe, Rename,
21
Alter, Select, From, Where, Insert, Update commands
22 Queries using DISTINCT, BETWEEN, IN, LIKE, IS NULL, ORDER BY, GROUP BY, HAVING
23 Queries for Aggregate functions- SUM( ), AVG( ), MIN( ), MAX( ), COUNT( )
Write a program to connect Python with MySQL using database connectivity and perform the following
24
operation on data in database: Create a table in database
Write a program to connect Python with MySQL using database connectivity and perform the following
25
operation on data in database: Insert record in the table
Write a program to connect Python with MySQL using database connectivity and perform the following
26
operation on data in database: Fetch records from the table using fetchone( ), fetchall() and fetchmany( ).

Write a program to connect Python with MySQL using database connectivity and perform the following
27
operation on data in database: Update record in the table
Write a program to connect Python with MySQL using database connectivity and perform the following
28
operation on data in database: Delete record from the table

You might also like