0% found this document useful (0 votes)
7 views

practical class 12

Uploaded by

vaishnavijk2008
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

practical class 12

Uploaded by

vaishnavijk2008
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Q1. Write a Program to check if the entered number is Armstrong or not.

Q2. Write a Program to enter the string and to check if it’s palindrome or
not using loop.
Q3.Write a program to Input any number from user and calculate factorial
of a number.

Q4. Write a program to search any word in given string/sentence.

Q5. Program to read the content of file and display the total number of
consonants, uppercase, vowels and lower case characters.
Q6. Program to read and display file content line by line with each word
separated by „#‟

Q7. Write a python program to write structure ,list in the binary file.
Q8. Write a python program to write structure ,dictionary to the binary
file.

Q9. Program to create binary file to store Rollno, Name


and Marks and update marks of entered Rollno
Q10. Program to read the content of file line by line and write it to
another file except for the lines contains „a‟ letter in it.

PYTHON
Q11. Write a python program to insert/append a record in a binary file
student .
Q12. Write a menu driven program to perform all the basic operations
using dictionary on student binary file such as inserting, reading ,
updating , searching and deleting a record.
Q13. Program to create CSV file and store empno,name,salary and search
any empno and display name,salary and if not found appropriate
message.
Q14. Write a program to write data onto “student” CSV file using
writerow() method.

Q15. Write a python program to implement all basic operations of a Stack,


such as adding element (PUSH operation), removing element(POP element
) and displaying the Stack elements(Traversal operation) using lists.
SQL
Q18.Write a program to connect Python with MySQL using database
connectivity and store record of employee and display records.
Q.19 Write a program to connect Python with MySQL using database
connectivity and update the employee record of entered empno.

Q20. Write a program to connect Python with MySQL using database


connectivity and delete the record of entered employee number.

You might also like