You are on page 1of 7

COMPUTER SCIENCE (083)

Create a student table with the student id, name, and marks as
24. 3/10/23 24
attributes where the student id is the primary key.
25. 7/10/23 Insert the details of a new student in the above table. 24
26. 12/10/23 Delete the details of a student in the above table. 25
Use the select command to get the details of the students with marks
27. 19/10/23 25
more than 80.
Find the min, max, sum, and average of the marks in a student
28. 23/10/23 25
marks table.
Write a SQL query to order the (student ID, marks) table in
29. 25/10/23 26
descending order of the marks.
Write a SQL query to display the marks without decimal places,
30. 31/10/23 display the reminder after diving marks by 3 and display the square 26
of marks.
Write a code demonstrates MySQL database interaction, including
31. 3/11/23 connection, cursor creation, table creation, and data inserting, 27
committing changes, fetching records, and closing the connection.
Write a code to demonstrate connecting to a MySQL database,
executing a query, retrieving and printing results, and managing
32. 7/11/23 28
resources by closing the cursor and connection after the query
execution.
Write a code to insert data into a 'student' MySQL table using a
cursor, commits changes, and closes the connection. It serves as an
33. 15/11/23 29
example for users learning how to connect to a MySQL database
using Python.
Write a code to update data in a MySQL table named 'std' in the
'connectivity' database by establishing a connection, creating a
34. 17/11/23 30
cursor, updating the 'id' field, committing changes, and closing the
connection, providing a practical example.
Write a code to delete data from a MySQL table named 'std' within
the 'connectivity' database. It establishes a connection, creates a
35 22/11/23 31
cursor, deletes the specified record, commits changes, and closes the
cursor, providing an example for Python users.

36 24/11/23 Program to implement Stack in Python using List. PUSH, POP, 32


PEEK, SHOW STACK, EXIT
Write a menu driven program to input scores for players and display
37 27/11/23 the details of scores according to their highest score. The menu is as: 34
Quit, Add a Score, List Scores
Write a program to create CSV file and store empno, name, salary
38 29/11/23 and search any empno and display name, salary and if not found 35
appropriate message.

Monarch International School


COMPUTER SCIENCE (083)

PROGRAM 35:
Write a code to delete data from a MySQL table named 'std' within the 'connectivity'
database. It establishes a connection, creates a cursor, deletes the specified record, commits
changes, and closes the cursor, providing an example for Python users.
INPUT:

OUTPUT:

Monarch International School 31


COMPUTER SCIENCE (083)

PROGRAM 36: Program to implement Stack in Python using List.


1. PUSH
2. POP
3. PEEK
4. SHOW STACK
0. EXIT
INPUT:

Monarch International School 32


COMPUTER SCIENCE (083)

OUTPUT

Monarch International School 33


COMPUTER SCIENCE (083)

PROGRAM 37: Write a menu driven program to input scores for players and display the
details of scores according to their highest score. The menu is as:
0-Quit
1- Add a Score
2- List Scores

OUTPUT:

Monarch International School 34


COMPUTER SCIENCE (083)

PROGRAM 38:
Write a program to create CSV file and store empno, name, salary and search any empno and
display name, salary and if not found appropriate message.

INPUT:

Monarch International School 35


COMPUTER SCIENCE (083)

OUTPUT:

Monarch International School 36

You might also like