0% found this document useful (0 votes)
12 views1 page

DFDF

Uploaded by

ts4521225
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)
12 views1 page

DFDF

Uploaded by

ts4521225
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/ 1

1) Write a python program to create a CSV file by entering user-id and password, read and

search the password for given user-id. 8


2) Create a table students with six attributes (Roll, Name, Age, Class, Email ,Phone) that
contains minimum 3 tuples. Then write the following SQL queries - 4
a) Modify Email of student whose roll is 1099.
b) Print the name of youngest student.
c) Print the table of students from higher class to lower class.
d) Delete the column Phone from table
1) 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. 8
2) Create a table employee with six attributes (Empid, Name,Designation, Email,Phone,Salary)
that contains minimum 3 tuples. Then write the following SQL queries - 4
a) Print total no of clerk present in table.
b) Print the name and designation of employees whose name contains ‘a’.
c) Print average salary of employees.
d) Change data type of Phone.
1) Write a python program to read a text file and display the number of vowels,consonants,
lowercase and uppercase characters in the file. 8
2) Create a table employee with six attributes (Empid, Name,Designation,DOB,Phone,Salary)
that contains minimum 3 tuples. DOB attribute cannot contain null value. Then write the
following SQL queries - 4
a) Print name and designation of employee whose salary is more than 50000.
b) How many different posts are present in employee table.
c) Delete the primary key(Empid) from table.
d) Make Phone as primary key
1) Write a Python program to implement push and pop operation of a stack using list. 8
2) Create a table students with six attributes (Roll, Name,DOB, Class, Email ,Phone)that
contains minimum 3 tuples. DOB attribute cannot contain null value. Then write the
following SQL queries - 4
a) Change Email of a student named ‘Atul’.
b) Print different class present in table.
c) Add a new column Marks to the table.
d) Delete the details of all class X students.

You might also like