Professional Documents
Culture Documents
Adil Practicall Final Pages 4 5,26,32 33
Adil Practicall Final Pages 4 5,26,32 33
4 Program to read the content of a file and display the total number of consonants, vowels and lower case
characters
6 Program to read and display a file line by line with each word separated by @
7 Program to create binary file containing Roll no. and name and search the Roll no. and display name
8 Program to create binary file to containing Roll no., name and marks and update marks of entered Roll no.
9 Program to read content of a file line by line and write it to another file except for the lines containing ‘a’ in it
10 Program containing a function that takes a sorted list and number as arguments and search for the number in
the list using binary search
11 Program to write and read data from a CSV file consisting item code, item name, quantity and price and search
for a particular item using item code
12 Program to sort a list using bubble sort
Write SQL commands for the statements (i) to (V) and give outputs also:
Write SQL commands for the statements (i) to (V) and give outputs also:
Write SQL commands for the statements (i) to (V) and give outputs also:
4 Consider the following tables PRODUCT and CLIENT . Write SQL commands for the statements (i) to (V) and give
outputs also:
5 Consider the following tables STATIONARY and CONSUMER . Write SQL commands for the statements(i)to(V)
and give outputs
16. Program to implement stack in python
using list
def push(stack,item):
stack.append(item)
def pop(stack):
if len(stack)==0:
else:
stack.pop()
def display(stack):
if len(stack)==0:
else:
for i in stack:
print(i)
stack=[]
ch=1
while ch in [1,2,3]:
print('''\n*********STACK MENU*********
1) PUSH
19. SQL Connectivity: Create a Table