0% found this document useful (0 votes)
150 views4 pages

SSCE CS PracticalsList 2024 2025

The document contains the practical list for Class XII Computer Science subject for the academic year 2023-2024. It lists 18 Python programs covering topics like arithmetic operations, string manipulation, file handling, data structures and SQL questions. The SQL questions involve creating and manipulating tables to retrieve and update data according to given conditions.

Uploaded by

xefayo4337
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)
150 views4 pages

SSCE CS PracticalsList 2024 2025

The document contains the practical list for Class XII Computer Science subject for the academic year 2023-2024. It lists 18 Python programs covering topics like arithmetic operations, string manipulation, file handling, data structures and SQL questions. The SQL questions involve creating and manipulating tables to retrieve and update data according to given conditions.

Uploaded by

xefayo4337
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/ 4

CLASS XII COMPUTER SCIENCE

(SUBJECT CODE: 083)

PRACTICAL LIST-2023-2024

Python Programs:

1. Write a menu driven Python Program to perform Arithmetic operations (+, -, *, /).
2. Write a Python program to display the multiplication table of the given number
3. Write a python program to pass list to a function and double the odd values and half even values of a list and
display list element after changing.
4. Write a Python program input n numbers in tuple and pass it to function to count how many even and odd
numbers are entered.
5. Write a Python program to function with key and value, and update value at that key in dictionary entered by the
user.
6. Write a Python program to pass a string to a function and count how many vowels are present in the string.
7. Write a Python program to generate random numbers between 1 and 6.
8. Write a Python program to implement any 5 mathematical built-in functions.
9. Write a Python program to implement any 5 string built-in functions.
10. Write a Python program to read and display the file content line by line with each word separated by #.
11. Write a Python program to remove all the lines that contain the character ‘a’ in a file and write it to another file.
12. Write a Python program to read characters from keyboard one by one. All lowercase letters to be stored inside a
file named “lower”. All uppercase letters to be stored inside a file “upper”.
13. Write a Python program to 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.
14. Write a Python program to create a binary file with roll number, name and marks. Input a roll number and
update the marks.
15. Write a Python program to create a CSV file to store Empno, Name and Salary. Search and display Name and
Salary of a given Empno, if not found display appropriate message.
16. Write a Python program create a CSV file to store Rollno, Name and Marks. Also read the content from CSV file.
17. Write a Python program to create a CSV file by entering the user-id and password. Read and search the password
for a given user-id.
18. Write a Python Program demonstrate the stack operation to push the Book details – b_ID, b_NAME, b_PRICE,
delete using pop() function and display the stack elements.
SQL Questions:

1. Consider the following table named EXAM with details of marks. Write command of MySQL for (i) to
(iv) and output for (v) to (vii).
Table EXAM
Adno SName Percentage Clsection Stream
R001 Sushanth 90.2 12A Science
R002 Vaidhyanath 80.5 12B Humanities
R003 Miara 68.9 12B Science
R004 Niara 96.0 12A Commerce
R005 Shinjini 88.9 12D Commerce

(i) To display all information of the students of humanities in descending order of percentage.
(ii) To display Adno, Name, Percentage and Stream of those students whose name is less than 6
characters long.
(iii) To add another column Bus_Fees with datatype and size as Decimal(8,2).
(iv) To increase percentage by 2% of all the Humanities students.
Scode Pname Supname Qty City Price
102 Biscuit Hide and Seek 100 Delhi 10.00
103 Jam Kissan 110 Kolkatta 25.00
101 Coffee Nestle 200 Kolkatta 55.00
106 Sauce Maggi 66 Mumbai 55.00
107 Cake Britania 72 Delhi 10.00
104 Maggi Nestle 150 Mumbai 10.00
105 Chocolate Cadbury 170 Delhi 25.00
2. Consider the table SHOPEE given below. Write commands in MySQL for (i) to (iv) and output for (v) to
(vii).
TABLE: SHOPEE

(i) To display names of the product, whose name starts with ‘C’ in ascending order of Price.
(ii) To display code, product name and City of the products whose quantity is less than 100.
(iii) To count distinct Company in the table.
(iv) To insert a new row in the table SHOPEE.
110, ‘Pizza’, ‘Papa Jones’, 120, ‘Kolkata’, 50.00

3. Consider the following table named SBOP with details of account holders. Write commands of MySql
for (i) to (iv) and output for (v) to (vii).
TABLE SBOP

Accountno Name Balance DateOfopen Transaction


SB-1 Mr. Anil 15000.00 2011-02-24 7
SB-2 Mr. Amit 23567.89 8
SB-3 Mrs. Sakshi 45000.00 2012-02-04 5
SB-4 Mr. Gopal 23812.35 2013-09-22
SB-5 Mr. Dennis 63459.80 2009-11-10 15
(i) To display Accountno, Name and DateOfopen of account holders having transactions more than 8.
(ii) To display all information of account holders whose transaction value is not mentioned.
(iii) To add another column Address with datatype and size as VARCHAR(25).
(iv) To display the month day with reference to DateOfopen for all the account holders.

4. Consider the table PERSONS given below. Write commands in SQL for (i) to (iv)
Table: PERSONS

PI SurNam FirstNam Gend City PinCod BasicSalar


D e e er e y
1 Sharma Geeta F Udhamwar 182141 50000
a
2 Singh Surinder M Kupwara 193222 75000
Nagar
3 Jacob Peter M Bhawani 185155 45000
4 Alvis Thomas M Ahmed 380025 50000
Nagar
5 Mohan Garima M Nagar 390026 33000
Coolangatt
a
6 Azmi Simi F New Delhi 110021 40000
7 Kaur Manpree F Udhamwar 182141 42000
t a

(i) Display the SurName, FirstName and City of people residing in Udhamwara city.
(ii) Display the Person IDs (PID), Cities and Pincode of persons in descending order of Pincode.
(iii) Display the FirstName and City of all the females getting Basic salaries above 40000.
(iv) Display FirstName and BasicSalaries of all the persons whose first name start with ‘G’.

5. Consider the following table FITNESS with details about fitness products being sold in the store. Write
command of SQL for (i) to (iv)
TABLE FITNESS

PCODE PNAME PRICE MANUFACTURER


P1 Treadmill 21000 Coscore
P2 Bike 20000 Aone
P3 Cross Trainer 14000 Reliable
P4 Multi Gym 34000 Coscore
P5 Massage Chair 5500 Regrosene
P6 Belly Vibrator Belt 6500 Ambway

(i) To display the names of all the products with price more than 20000.
(ii) To display the names of all products by the manufacturer ‘Aone’.
(iii) To change the price data of all the products by applying 25% discount reduction.
(iv) To add a new row for product with the details: ‘P7’, ‘Vibro Exerciser’, 28000, ‘Aone’.

You might also like