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

Program List c12

Uploaded by

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

Program List c12

Uploaded by

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

Program List – Batch I & III

Set 1 [8 Marks]
1. Write a menu driven Python program to perform the following:
 Write a function PUSH_VOW() to insert only vowels from a string entered by the
user into a stack.
 Write a function DISPLAY_VOW() to display the content of the stack
 Write a function POP_VOW() to delete elements from the stack.

2. Write a menu driven Python program to perform the following:


 To read a text file line by line.
 To display only the lines starting with alphabet ‘I’ from the file.
3. Write a menu driven Python program to perform the following:
 Write a function WriteRec() to write records of 5 employees [ID, Name ,
Salary], entered by the user in a binary file ‘Emp.dat’.
 Write a function UpdateRec() to update the salary of employee whose ID &
new salary is given by the user in binary file ‘Emp.dat’ & display the details.
4. Write a menu driven Python program to perform the following operations:
 To create a CSV file ‘Emp.csv’, to store empno, name & salary of employees.
 To display the details of those employees whose salary is in the range 5000 to
15000.
5. Write a menu driven program to implement a stack for book details
(book_id,book_name,book_author,book_price) to add book details, remove book
details & display book details.

Set 2 [4 Marks]

1. Write SQL Queries for a) to d) based on the following tables:

a) To display the name of the Teacher and their Designation.


b) To display the name and subjects of all Female Teachers.
c) To display all details of all Teachers with Gender and Designation.
d) To display details of all HOD.

2. Write SQL Queries for a) to d) based on the following tables:

a) To display names of Students, Subject & Mark.


b) To display the name of student and mark obtained for Science.
c) To display the average marks in each subject along with subject name.
d) To display the names of students who have scored more than 80 in Mathematics.
e) To display the names of students, class & section who scored more than 90 in any
subject.
f) To display the total marks scored by each student along with their names.
g) To display the names of students who belong to section ‘A’.
h) To display the ID, name and total marks scored by each student in all subjects.

3. Write SQL Queries for a) to d) based on the following tables:


a) To display the name of Employees, their Department & Location.
b) To display details of all employees in ‘Information Technology’ department.
c) To display the names of employees and their departments whose salary is greater than
50,000.
d) To display the name of employees whose name ends with ‘t’.
e) To display the names of employees, their department and age who are older than 30.
f) To display the total salary paid to employees in each department.
g) To display the names of employees who work in departments located in Mumbai.
h) To display the names of employees whose age is 30 or 40.

Report File (Lab Record) : 7 Marks


Project: 8 Marks
Viva Voce : 3 Marks

You might also like