AISSCE – PRACTICAL EXAMINATION 2023
CLASS: XII
Set-1
SUBJECT: COMPUTER SCIENCE (083)
Time Allowed: 3 Hrs Maximum Marks: 30
1 Write a menu drive Python program to perform PUSH, POP and 7
DISPLAY operation on Stack (PRICE) implemented as List.
1. PUSH
2. POP
3. DISPLAY
4. EXIT
2 Complete the given python program to search for employee number 4
in a table emp. Following parameters required for connections are:
Server name: localhost
User : root
Password: admin
Database: company
import [Link] as mycon
cnt = [Link](_________________________________________)
#Statement 1
mycursor=cnt.____________ #Statement 2
empno = int(input('Enter Employee Number :'))
query=___________________________________________ #Statement 3
[Link](query)
record = mycursor._____________ #Statement 4
for r in record:
print(r)
3 Practical File 7
4 Project Report 8
5 Viva-Voce 3