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

Set 01 2023

This document outlines a computer science practical examination containing 4 questions worth a total of 30 marks. Question 1 involves writing Python programs to read/write files and implement a stack. Question 2 requires submitting a report or practical file. Question 3 involves a project. Question 4 is a viva voce component with internal and external examiners. The first part of Question 1 provides two programming problems worth 8 marks, with subparts worth 4 marks each.

Uploaded by

sumitkum7795
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)
88 views1 page

Set 01 2023

This document outlines a computer science practical examination containing 4 questions worth a total of 30 marks. Question 1 involves writing Python programs to read/write files and implement a stack. Question 2 requires submitting a report or practical file. Question 3 involves a project. Question 4 is a viva voce component with internal and external examiners. The first part of Question 1 provides two programming problems worth 8 marks, with subparts worth 4 marks each.

Uploaded by

sumitkum7795
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

JAI NARAYAN VIDYA MANDIR INTER COLLEGE

AISSCE PRACTICAL EXAMINATION-2022-23


Time 3 Hours SUBJECT: COMPUTER SCIENCE (083) M.M. : 30
SET: 01

Q1. LAB TEST [8+4=12]


A. 1) Write a Python Program to read a text file name ‘myfile.txt’ line by line and display all those lines started
with ‘T’ or ‘t’. (4)
OR
Write a function to WriteRec() to write the 5 Employee Records (id, name, salary) in a binary file name
“Emp.dat” and ReadRec() function to read the all records from a binary file “Emp.dat” and display them.

2) Write a python program to create a stack of student’s record which contains [admno, name]. (4)
 Write function PUSH to add record in to the stack
 Write function DISPLAY to display those students whose name is started with ‘A’

B. A table ‘Student’ is created in the database ‘School’. The details of table are given below. (4)
StuID Name Class Total Grade
ST12 Tanmay 12 C 499 A+

import mysql.connector as sqltor


mycon = sqltor.connect( _______, user = “root”, _________, database = ___________ ) #1
cursor = mycon.cursor( )
cursor.execute(______________________ ) #2
data = _________________ #3
for rec in data:
print ( rec )
_____________________ #4
mycon.close( )
a. Complete the statement #1 to write appropriate missing parameter and values.
b. Write the statement #2, to fetch Name, Class, Grade from table Student who have scored more than 400.
c. Complete the statement #3, to fetch all records from the result set.
d. What statement you will write in place of statement #2 to insert one more record in table Student, as well
as in statement #4, to make your changes permanent in the table Student.
StuID Name Class Total Grade
ST15 Amrit 12 D 496 A+
Q.2 Report/Practical File (7)
Q.3 Project (8)
Q.4 Viva voce (3)
External Examiner Internal Examiner
Name : _____________________ Name : ______________________
Sign : _____________________ Sign : _____________________
Examiner No: _______________ Examiner No: __________________

You might also like