practicals for cs
SET – 1 AISSCE Practical Examination 2020 – 2021 COMPUTER SCIENCE – 083 Time : 3:00hrs M.M. – 30 Q1. A binary file “Book.dat” has structure [BookNo, BookName, Author, Price]. a) Write a user defined function CreateFile() to input data for a record and add to Book.dat . b) Write a function CountRec(Author) in Python which accepts the Author name as parameter and count and return number of books by the given Author are stored in the binary file “Book.dat 7 Q2. Write a program in python to display all the records of table “student” already created in MySQL . 5 Q3. Practical File 7 Q4. Project File 8 Q5. Viva-Voce 3 SOLUTION OF PRACTICAL QUESTION PAPER SET – 1: Ans 1 import pickle