CS Practical File
CS Practical File
to 10
Code :
Output :
Program 2 : Write A Program To Check The Character Is Alphabet
Or Digit
Code :
Output :
Program 3 : Write A Program That Reads A String And Checks
Whether It Is A Palindrome Or Not
Code :
Output :
Output :
Code :
Output :
Code :
Output :
Code :
Output :
Output :
Program 10 : Program To Remove All The Lines That Contain The
Character 'a' In A File And Write It To Another File
Code :
Output :
Code :
Output :
Program 12 : Program to create a CSV file by entering user_id and
password, read
Code :
Output :
Program 13 : Write A Random Number Generator That Generates
Random Numbers Between 1 And 6 (Simulates A Dice)
Code :
Output :
Program 14 : Write A Python Program To Implement A Stack Using
A List
Code :
Output :
Program 15 : Program For Binary Search
Code :
Output :
Code :
Output :
SQL PROGRAMS
SQL Files
a. Add one column Email of data type VARCHAR and size 30 to the table Customer.
b. Add one column Email of data type VARCHAR and size 30 to the table Customer.
c. Insert few records with relevant information, in the table.
d. Drop the column CustomerIncomeGroup from table Customer
Output
Program 3)
a. Display all the details of those watches whose name end with “Time”
b. Display the name and price of those watches, which have a price range in between
5000 – 15000. c. Display the total quantity in store of ‘Unisex’ type watches.
d. Display the watch names and the quantity sold in the first quarter.
a. To show Book name, Author name and Price of books of First Publ. publishers.
c. To display the names and price from books in ascending order of their price.
e. To display the Book_Id, Book_Name, and Quantity_Issued for all books which have
been issued.(The query will require contents from both the tables.)
f. To insert a new row in the table Issued having the following data: “F003”, 1
g. Give the output of the following queries based on the above tables:
Output
Program 5)
(i). To display Wno, Name, Gender from table WORKER in descending order of Wno.
(ii). To display the Name of all the FEMALE workers from the table WORKER.
(iii). To display the Wno and Name of those workers from the table WORKER who are
born between ‘1987-01-01’ and ‘1991-12-01’.
(iv). To count and display MALE workers who have joined after ‘1986-01-01’.
(vii). SELECT NAME, DEPARTMENT, CITY FROM WORKER W, DEPT D WHERE W.DCODE
= D.DCODE AND WNO<1003;
Output
Python Connectivity Programs
Code :
Output :
Code :
Output :
Code :
Output :