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

Set 4

Uploaded by

Nitheswaran
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)
9 views1 page

Set 4

Uploaded by

Nitheswaran
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

Sri Sakthi Vinayagar International School (CBSE) - Cumbum

GRADE: XII SUBJECT CODE:083 SUBJECT: COMPUTER SCIENCE

Roll No: _____________ Date: ___________ Duration: 3 Hours Marks :30

SSCE PRACTICAL EXAMINATION 2023- 2024

Q1. Create a binary file with roll number name and marks. Input a roll number and update the marks.

Q2. To write a Python program to connect with mysql. (4)

The code given below reads the following record from the table named Client and displays the Client name and City from
the table.

import ________________ as myc # Statement 1

con = myc.connect(host="locahost", user="root", passwd="", database="mydb")

mycursor = __________________ #Statement 2

sql = "UPDATE student SET age=age+2 WHERE class='XI'"

mycursor.execute(sql)

sql = "SELECT * FROM student"

mycursor=con.execute(sql)

result = _____________________ #Statement 3

for row in result:

print(row)

i) Import the required module to be imported.

ii) initialize the cursor object.

iii) Write the Statement 3 to read all the rows from the cursor object.

Q3. Practical Record (7)

Q4. Project File (8)

Q5. Viva-voce (3)

SIGNATURE OF INTERNAL SIGNATURE OF EXTERNAL


EXAMINER EXAMINER
***********BEST OF LUCK************

You might also like