0% found this document useful (0 votes)
20 views1 page

SET B CS 083 Practical QP

Uploaded by

aayannkjain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

SET B CS 083 Practical QP

Uploaded by

aayannkjain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

All India Senior Secondary Certificate Examination (AISSCE) – (2022-2023)

CLASS XII

School Code & Name: 55735 & Vriksha Global School Date: 12 /01/2023

Subject: Computer Science Practical’s Subject Code : 083

Maximum Marks: 30 Duration: 3 Hrs

1. Write a Python program to implement Stack operation (PUSH and POP) using List. (8 Marks )
Or
Write a Python program to Remove all the lines that contain the character 'a' in a file and write it to
another file.

2. Observe the following code and fill in the given blanks as directed: (4 Marks )

import mysql.connector as mysql


mycon=mysql.connect(host='localhost',user='root',passwd='library4',database='test')
cursor=mycon.cursor()
person_id=int(input('enter required person id'))
lastname=input('enter required lastname:')
cursor.execute('______ staff (person_id,lastname) values({},"{}")'.format(person_id,lastname)) #line 1
mycon._________ #line2
a=int(input('enter the staff id of the staff to delete the record from the table:'))
cursor.execute('________ from staff where staff_id={}'.format(a)) #line3
cursor.execute('______ * from staff') #line4
data=cursor.fetchall()
for i in data:
print(i)
mycon.close()
Report file (7 Marks )
Project (using concepts learnt in Classes 11 and 12) (8 Marks )
Viva voce (3 Marks )

External Examiner Observer Internal Examiner


Name : ________________ Name : _______________ Name : _______________
Sign : ________________ Sign : ______________ Sign : ______________
Examiner No: ___________ Examiner No: ___________ Examiner No: ___________

You might also like