0% found this document useful (0 votes)
228 views4 pages

CS Practical 2023

This document contains two sample practical examination papers for Class 12 Computer Science. Each paper contains 5 questions assessing students' skills with Python programming, SQL queries, and a report/project. Question 1 involves writing a Python program to implement stack operations using a list. Question 2 tests skills with SQL by having students complete code to query a database table and insert a new record. The remaining questions assess report/project work and viva skills.
Copyright
© © All Rights Reserved
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
0% found this document useful (0 votes)
228 views4 pages

CS Practical 2023

This document contains two sample practical examination papers for Class 12 Computer Science. Each paper contains 5 questions assessing students' skills with Python programming, SQL queries, and a report/project. Question 1 involves writing a Python program to implement stack operations using a list. Question 2 tests skills with SQL by having students complete code to query a database table and insert a new record. The remaining questions assess report/project work and viva skills.
Copyright
© © All Rights Reserved
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/ 4

AISSCE PRACTICAL EXAMINATION-2022-23

CLASS XII

COMPUTER SCIENCE ( 083)

Time :2 Hrs. Max. Marks: 30

SET A

Q1. Write a menu driven program in python to perform Push, Pop and Display operation for
stack using list of numbers. (4)
Q2.A table Student is created in the database School. The details of table are given below. (8)

Name Class Total Grade


ST/12 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 less
than 400.
c. Complete the statement #3, to fetch all records from the resultset.
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
ST/15 Amrit 12 D 496 A+
Q3. Report file (7)

Q4. Project file (8)

Q5. Viva voice (3)

Sign of External Examiner Sign of Internal Examiner


AISSCE PRACTICAL EXAMINATION-2022-23

CLASS XII

COMPUTER SCIENCE ( 083)

Time :2 Hrs. Max. Marks: 30

SET B

Q1. Write a function addemp() and delemp() and disemp() to add a new employee name, remove a employee name
and to display employee names from a list emp, according to Stack Data Structure in Python. (4)
Q2.Observe the following code and fill in the given blanks as directed: (8)
import mysql.connector as mycon
mydb=mycon.connect(_______________________________________) # Statement 1
mycursor=mydb.___________ # Statement 2
mycursor.execute(__________________________________________) # Statement 3
myresult = mycursor.__________ # Statement 4
for x in myresult:
print(x)
The partial code is given for displaying all records from customer table created . The customer table is given
as following:
CustomerID CustomerName City BillAmt MobileNo
111 Abhishek Ahmedabad 1500 9999999999
222 Ram kumar Chennai 1501 8888888888 i.
Write the parameters and values required to fill statement 1. The parametersvalues are as follows:
Database Server : localhost
User : root
Pasword : rootpass
Database : customer

ii. Write function name to create cursor and fill in the gap for statement 2.
iii. Write a query to fill statement 3 to display all records from customer table.
iv. Write function to fill statement 4 to fetch all records from customer table.

Q3. Report file (7)

Q4. Project file (8)

Q5. Viva voice (3)

Sign of External Examiner Sign of Internal Examiner

You might also like