Practical File Computer Science 2024-25
Practical File Computer Science 2024-25
Sr. PRACTICAL
OUTPUT:-
Q2)Program to find factorial of a number entered by user.
Output:-
Q3) Program to reverse a number entered by user.
Output:-
Q4) Write a program to search for a given number in a list.
Output:-
Q5) Write a program to create a dictionary with roll number as key and name as values and then display only
those names which are starting with the alphabet A.
Output:-
Q6) Create a menu driven code for performing arithmetic operation.
Output:-
Q7) Write a program to create Fibonacci series.
Output:-
Q8) To Write a Python program to define the function Check(no1,no2) that take two numbers
andReturns the number that has minimum ones digit.
Output:-
Q9) Write a program to show the use of global keyword in the function.
Output:-
Output:-
Q10) To write a Python program to generate random number between 1 to 6 to
simulatethe dice.
Output:-
11) To write a Python Program to Read a text file "Story.txt" line by line and
displayeach word separated by '#'.
Output:-
Q12) To write a Python Program to read a text file "sample.txt" and displays the
number ofVowels/ Consonants/ Lowercase / Uppercase/characters in the file.
Output:-
Q13) Write a program to read data from a text file and write all the line into a new file which are having
alphabet a in them.
Q14) Write a program to create a binary file of 5 students with rn and name. And search the rn and display
appropriate message when roll found and not found also display the name of roll number if found.
Output:-
Q15) Program to update the data in a binary file.
Output:-
Q16) Create a CSV file by entering user-id and password, read and search the password for given userid.
Output:-
Q17) Program to implement stack using list
Output:-
Q18) Write SQL queries for the following questions –
USE SCHOOL;
SHOW DATABASES;
(e) Write a Query to List all the tables that exists in the current database.
SHOW TABLES;
Q19) Write SQL queries for the following questions –
(a) Write a Query to insert all the rows of above table into Info table.
Output:
(c) Write a query to Rollno, Name and Department of the students from STUDENT table.
Output:
Output:
Q20) Write SQL queries for the following questions –
Output:
(b) Write a Query to list name of the students whose ages are between 18 to 20.
Output:
(c) Write a Query to display the name of the students whose name is starting with 'A'.
Output:
(d) Write a query to list the names of those students whose name have second alphabet
'n' in theirnames.
Output:
Q21) Write SQL queries for the following questions –
(b) Write a Query to change the fess of Student to 170 whose Roll number is 1, if the
existing fessis less than 130.
Output(After Update):
(c) Write a Query to add a new column Area of type varchar in table STU.
Output:
(d) Write a Query to Display Name of all students whose Area Contains NULL.
Output:
(e) Write a Query to delete Area Column from the table STU.
Output:
Output:
Q22) Write SQL queries for the following questions –
c) Write an sql query to display the fees of sohan using natural join
e) Write an sql query to display all the details along with the fees details using equi join.
Output:-
Output:-
Q25) To write a Python Program to integrate MYSQL with Python a n d d i s p l a y
the records present in the book table of lib database .
Output:-
Q26) To write a Python Program to integrate MYSQL with Python a n d u p d a t e t h e
bookname for the provided book number.
Output:-
Q27) To write a Python Program to integrate MYSQL with Python a n d c r e a t e a
login system.
Output:-
----------------END--------------