Class XII Practical Record
Class XII Practical Record
1. Write a program that multiplies two integer numbers without using the * operator, using
repeated addition.
2. Write a program that repeatedly asks from users some members until string ‘done’ is typed. The
program should print the sum of all numbers entered.
3. Write a program that reads a line and prints its statistics like:
Numbers of Uppercase letters:
Numbers of alphabets:
Numbers of digits:
4. Write a Program that receives two numbers in a function and returns the results of all arithmetic
operations (+, -, *, /, %) on these numbers.
5. Write a program to read a text file and display the count on vowels and consonant in the file.
6. Write a program to get student data (roll no., name and marks) from user and write onto a
binary file. The program should be able to get data from the user and write onto the file as long
as user wants.
7. Write a program to a Read a file stu.dat created in earlier programs and display the records
having marks > 81.
8. Write a program to create a csv file by suppressing the EOL translation.
9. Write a program that contains a recursive function to print a string backwards.
10. Write a program to delete an element from 50amsorted linear list.
11. Write a program to implement stack operations.
65 m
12. Write a program to implement queue operations.
13. Lantastic Corporation caters to many high profile clients and has 6 buildings where it runs its
operation shown below.
185
35 m
45 m 65 m
120
30 m
Robo Mast
55 er
40 m
70
Number of Computers
Distance
Name of
ID First_Name Last_Name User_id Salary
the Column
Type Number (4) Varchar(30) Varchar(30) Varchar(10) Number(9,2)
i. Populate table with first record mentoring the column list in the insert clause.
ii. Populate table with next two records without mentoring the column list in the insert
clause.
iii. Populate table with 4th record and enter only ID and First_name.
iv. Populate table with 5th record and enter ID, User_Id and last_name only.
17. Consider the table created in Q. 14 and Q. 15. Perform the following on the same Employee
table.
i. Modify the Last_name, of the employee 3 to ‘Verma’
ii. Modify the Salary and increase it by 1000, for all who get salary less than 5000
iii. Delete the employee record having Fisrt_name as sidhharth.
iv. For record with ID=4 record with Last_name, User_id, and salary.
18. Write a output for SQL queries , which are based on the table : Student given below
i. To display the record of the student in alphabetic order as per the name of the students.
ii. To display the Class, DOB, and city whose marks is between 450 and 551
iii. To display Name, Class and total number of students who have secured more than 450
marks, class wise.
iv. To increase marks of all the students by 20 whose class is “XII”.
19. Write a Python database connectivity script that deletes records from category table of
database items that have name =”Stockable”
20. Write a Python program that displays first three rows fetched from student table of MySQL
database ‘test’. Use pymysql to connect with the database.
Note. User is “learner” and password is “fast”