You are on page 1of 16

RYAN INTERNATIONAL SCHOOL

SANPADA

COMPUTER SCIENCE PRACTICAL FILE


TERM 2

SUBMITTED BY:
AURITRO DUTTA
XII B

ROLL NO:

CERTIFICATE
This is to certify that Auritro Dutta, a student of class XII-B,
Ryan International School, Sanpada has successfully
completed the course work of Computer Science under the
guidance of Mrs. Gargy Dam during the year 2021-22 in
partial fulfilment of Computer Science Practical examination
of the Central Board of Secondary Education. I certify this
Project up to my expectation & as per guidelines issued by
CBSE, NEW DELHI.

Signature of Internal Examiner:

Signature of External Examiner:

Principal’s Signature:

School Stamp:

CODING
1. Write a Python program push(book) and pop(book) to add books
and remove books from list considering them to act as Push and
Pop operations of stack.

OUTPUT
CODING
2. Write a program that depending upon user’s choice, either pushes
or pops an element in a stack.

OUTPUT
CODING
3. A line of text is read from the input terminal into a stack. Write a
program to output the string in reverse order, each character
appearing twice.

OUTPUT
CODING
4. Write a program to insert or delete an element from a queue
depending upon user's choice elements are not shifted after
insertion or deletion.

OUTPUT
CODING
5. Write AddClient(Client) and DeleteClient(Client) methods in Python
to add a new client and delete a client from a list client name,
considering them to act as insert and delete operations of the
Queue data structure.

OUTPUT
CODING
6. Create a student table with the student id, name, and marks as
attributes where the student id is the primary key. Insert the
details of a new student in the table

OUTPUT
CODING
7. Write a SQL query to order the (student ID, marks) table in
descending order of the marks. Write a SQL query to display the
marks without decimal places, display the reminder after diving
marks by 3 and display the square of marks.
CODING
8. Add a column names email of data type VARCHAR and size 20 to
the table student.

CODING
9. Change the marks of the student whose student ID is 5 to 78.5
CODING
10. Create another table parent with studentid of their children.
Use the join clause to combine the rows of the two tables.
CODING
11. Write a python program to select all records from the "student"
table made previously in mySQL, and display the result:

OUTPUT
CODING
12. Write a python program to select only the columns studentid
and marks from the "student" table made previously in mySQL,
and display the result:

OUTPUT

You might also like