Bps 12 Sci Program List 2023-24-1
Bps 12 Sci Program List 2023-24-1
PROGRAMS OF FUNCTIONS
8. Write Python program to input a string and pass to the function that
counts the number of uppercase and lowercase letters.
9. Write Python program to pass string to a function and count how many
vowels are there in the string.
10. Write Python program to pass string to a function and count how many
times any character is present in the string.
11. Write Python program to pass list to a function to double the odd
values and half the even values.
SQL STATEMENTS
21. SQL commands Exercise-1
PYTHON-SQL INTERFACE
25. Write a program to insert details of an employee into a table named
EMP which include the following details :
[Empno,Empname,dept_id,designation,Salary,city]
(Empno is Primary key)
26. Write a program to search and display records of table named EMP on
basis of Empno.
27. Write a program to delete records from table named EMP.
STACK IMPLEMENTATION
29. Write a program for implementation of stack operations using list.
(Menu based)
30. A list contains following record of course details for a university:
[Course_name, Fees, Duration]
Write the following user defined functions to perform given
operations on the stack named 'Univ':
(a) Push_element(): To push an object containing the Course_name,
Fees and Duration of a course, which has fees greater than 100000
to the stack.
(b) Pop_element(): To pop the object from the stack and display it.
Also, display “Underflow” when there is no element in the stack.