Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

DATA STRUCTURE

1.WAP to implement a stack for adding element


(PUSH Operation) and displaying the stack
elements (Traversal operations) using lists

Input:

Output:
2.WAP to implement a stack for removing
element (POP Operation) and displaying the
stack elements (Traversal operations) using lists

Input:

Output:
3.WAP to display vowels present in the given
word using Stack

Input:

Output:
4.Write a program, with separate user-defined
functions AddPlayer(player) and
DeletePlayer(player) in python to add and
remove a player by considering them as push
and pop operations in a stack
Input:

Output :
5.Vedika has created a dictionary containing
names and marks as key-value pairs of 5
students. Write a program, with separate
user-defined functions to perform the
following operations:
a)Push the keys (name of the student) of the
dictionary into a stack, where the corresponding
value (marks) is greater than 70.
b)Pop and display the content of the stack.

Input:

Output:
SQL/CSV FILES
(1)(a) To show all information about the teacher of
history department

(b) To list the names of female teachers who are in


Maths department

(c) To list names of all teachers with their dates of


joining in ascending order
(d) To display students name, fee, age for male
teacher only

(e)To count the number of teachers with


age>23
(2)(a) To display W_ID, FIRSTNAME, ADDRESS and
CITY of all employees living in New York from the
table WORKERS.
(b)To display the contents of WORKERS table in
ascending order of LASTNAME

(c)To display the FIRSTNAME, LASTNAME and total


salary of all clerks from the table WORKERS
and DESIG, where total salary is calculated as
SALARY + BENEFITS
(d)To display the minimum salary among Managers
and Clerks from the table DESIG

3. Write a program to create bank database and


create a table containing details like accno, name,
balance, mobno and emailed and to insert record
in the created table
Input:
Output:

4. Write a program to search a record from the table


given in question no. 3 on the basis of accno
(account number of customer)
Input:

Output:

5. Write a program to delete a record from the


table given in question no. 3 on the basis of name
of customer
Input:

Output:

6. Write a program to read all content of


student.csv” and display records of only those
students who scored more than 80 marks
Input:

Output:

7. Write a program to calculate the sum of all the


marks given in the file “marks.csv”
Input:

Output:

COMPUTER SCIENCE
PRACTICAL FILE

BY ARYAN MALIK
CLASS(X-II)

ROLL NO-

You might also like