0% found this document useful (0 votes)
67 views3 pages

Index of Computer Science Class 12th 2024-25-1

Class 12

Uploaded by

naumankhan12321
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views3 pages

Index of Computer Science Class 12th 2024-25-1

Class 12

Uploaded by

naumankhan12321
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

INDEX

Part A – Python Programs


For separate programs follow the list and given links:-

1. Write a program to find the sum and average of list in python.


2. Write a program to remove duplicates from the dictionary.
3. Write a program to define a function to accept two integers m and n respectively as argument
and display prime numbers between them.
4. Write a program to compute interest based on different arguments given in the function.
5. Write a program to largest element in a list using a function. Pass list object as argument.
6. Write a program to count the number of vowels in passed string to the function.
7. Write a program to take two integers and perform addition of two numbers handle exception
when non-integers entered by user.
8. Write a program to find the square root of a positive number, raise a custom exception when
user enters a non-integer number.
9. Write a program to replace entered word from a text file india.txt.
10. Write a menu driven program to store and manipulate data in binary file to insert, update,
delete and display records. The data has following structure:
Data Represents – Patient Information
Dictionary – {‘P_ID’:101,’P_Name’:’Shiv’,’Charges’:25000}
File Name – patient.dat
Menu:
1 – Add Patient
2 – Display Patient
3 – Search Patient
4 – Update Patient
5 – Delete Patient
6 – Exit
11. Create a CSV file by entering user-id and password, read and search the password for given
userid.
12. Write a program to create a binary file candidates.dat which stores the following information in
list as follows:
Structure of Data:
Candidate_id – Integer
Candidate_Name – String
Designation – String
Experience – Float
(i) Write a function append() to write data into binary file.
(ii) Write a function display() to display data from binary file for all candidates whose
experience is more than 10.
13. Write a program to generate a CSV file named happiness.csv. Each record of CSV contains
these data:
Name of the country -String
Population of country – Integer
No. people participated in survey – Integer
No. of people who are Happy – Integer
Write user defined functions to do the following:
1 – Insert records into CSV
2 – Display records from CSV
3 – Update record
4 – Delete record
14. Write a menu drive program for stack operations.
15. Write a program to Push an item into stack where a dictionary contains the details of stationary
items as follows: stn = {“Shirt”:700,”T-Shirt”:750,”Jeans”:1150,”Trouser”:400}

(a) Write a function to push an element into stack for those items names whose price is more than
850.

(b) Also display the count of elements pushed into the stack. Write a function to pop an element to remove the
element and display appropriate message when the stack is empty.

Part B – MySQL Queries


1. Set 1 – Based on Database basic commands
o Create a database named practical_2025
o Check the database is created or not
o Open a database
o Create a database emp
o Delete Database emp
2. Set 2 – Based on DDL commands
o Create a table and insert data
o Show the structure of table
o Add a column
o Modify a column
o Rename a column
o Delete a column
3. Set 3 – Select SQL Queries including SQL query
o Artihmatic operator
o In operator
o Between Operator
o Like operator
o null operator
o order by
4. Set 4 – Group by, having aggregate functions
o Group by Query
o Distinct Keyword
o Aggregate function max()
o Aggregate function avg()
o Group by and Having
5. Set 5 – Join Queries
o Display cartesian product
o Equijoin
o Natural Join
o Where condition in join
o Using alias names
Part C – MySQL & Python Connectivity Programs
1. Write a program to connect with mysql database and insert a record into database.
2. Write a program to connect with mysql database and update a record into database.
3. Write a program to connect with mysql database and delete a record into database.
4. Write a program to connect with mysql database display record of particular label under the
artist is working.

You might also like