We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
AISSCE PRACTICAL EXAMINATION – 2023
CLASS: XII SUB: COMPUTER SCIENCE (083) SET A TIME: 3Hrs MM:30
S.No. Unit Name Marks
LAB TEST A binary file “STUDENT.DAT” has structure (Admission_number, 8 Name, and Percentage). i) Write a user defined function CreateFile() to input data for a record and add to Student.dat. ii) Create a Python function CountRec() that reads the contents of the file "STUDENT.DAT" and displays information about students whose percentage is greater than 75. Also, display the number of students who scored higher than 75%. iii) Sumitra wants to write a program to connect to MySQL database 4 usingpython and increase the age of all the students who are studying in class XI by 2 years.Since she had little understanding 1 of the coding, she left a few blank spacesin her code. Now help her to complete thecode by suggesting correct codingfor statements 1, 2 and 3. import ________________ as myc # Statement 1 con = myc.connect(host="localhost", user="root", passwd="", ______ )#Statement 2 mycursor = __________________ #Statement 3 sql = "UPDATE student SET age=age+2 WHERE class='XI'" mycursor.execute(sql) sql = "SELECT * FROM student" con.execute(sql) result = _____________________ #Statement 4 for row in result: print(row) REPORT FILE 2 Report File 7 PROJECT 3 Project 8 VIVA 4 Viva 3
INTERNAL EXAMINER EXTERNAL EXAMINER
AISSCE PRACTICAL EXAMINATION – 2023 CLASS: XII SUB: COMPUTER SCIENCE (083) SET B TIME: 3Hrs MM:30
S.No. Unit Name Marks
LAB TEST A binary file “BOOK.DAT” has structure (Book_No, Name, and 8 Price). i) Write a user defined function CreateFile() to input data for a record and add to Book.dat. ii) Create a Python function CountRec() that reads the contents of the file "BOOK.DAT" and displays the details of books with prices greater than 250. Also, display the number of books with a price greater than 250. iii) Sumit wants to write a program to connect to MySQL database 4 using python and promote the students who are studying in classes 1 to 11 to next higher class. Since he had little 1 understanding of the coding, he left a few blank spaces in his code. Now help him to complete the code by suggesting correct coding for statements 1 to 4. import ________________ as myc # Statement 1 con = myc.connect(host="localhost", user="root", passwd="", ______ )#Statement 2 mycursor = __________________ #Statement 3 sql = "UPDATE student SET class=class+1 WHERE class<12" mycursor.execute(sql) sql = "SELECT * FROM student" con.execute(sql) result = _____________________ #Statement 4 for row in result: print(row) REPORT FILE 2 Report File 7 PROJECT 3 Project 8 VIVA 4 Viva 3
PDF (Ebook) Pro C# 8 with .NET Core 3: Foundational Principles and Practices in Programming - Ninth Edition by Andrew Troelsen, Phil Japikse ISBN 9781484257555, 1484257553 download