0% found this document useful (0 votes)
156 views11 pages

12 Cs Practical QP-final

The document outlines the questions that will be asked as part of a Computer Science practical examination for Class 12. Question 1 involves writing a Python program to implement stack operations on a list of employee data. Question 2 involves writing SQL queries to manipulate data in tables for employees and jobs. Questions 3-5 relate to submission of a report, project, and viva questions.

Uploaded by

JASWINDER SINGH
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)
156 views11 pages

12 Cs Practical QP-final

The document outlines the questions that will be asked as part of a Computer Science practical examination for Class 12. Question 1 involves writing a Python program to implement stack operations on a list of employee data. Question 2 involves writing SQL queries to manipulate data in tables for employees and jobs. Questions 3-5 relate to submission of a report, project, and viva questions.

Uploaded by

JASWINDER SINGH
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/ 11

AISSCE PRACTICAL EXAMINATION 2021-22

SUBJECT – COMPUTER SCIENCE (083)


CLASS XII
Duration:- 1 Hours 30 Minutes Total Marks 15
Q.1. Write a menu driven program to perform Push, Pop and Display operations for stack using [2]
List as per the following structure:-

Item Description
e_no Employee Number
e_name Employee Name
e_salary Employee Salary
Note:- By using Python.
Q.2. In a Database, there are two tables given below:- [4]
Table:- EMPLOYEE

EMPLOYEE NAME SALES JOBID


ID

E1 SUMIT SINHA 1100000 102


E2 VIJAY SING TOMAR 1300000 101
E3 AJAY RAJPAL 1400000 103
E4 MOHIT RAMNANI 1250000 102
E5 SHAILJA SINGH 1450000 103

Table:- JOB

JOBID JOBTITLE SALARY

101 President 200000


102 Vice President 125000
103 Administration Assistant 80000
104 Accounting Manager 70000
105 Accountant 65000
106 Sales Manager 80000

(i) Write a SQL command to create above mentioned tables. Also insert values.
(ii) To display employee ids, name of employees, job ids with corresponding job titles.
(iii) To display names of employees, sales and corresponding job titles who have achieved sales more
than 130000.
(iv) To display names and corresponding job titles of those employees who have ‘SINGH’ in their
names.
(v) Write SQL command to change the JOBID to 104 of the EMPLOYEE with EMPLOYEEID as ‘E4’ in the
table ‘EMPLOYEE’.
Q.3 Report File [3]
Q.4 Project File [5]
Q.5 Viva [1]
Internal Examiner External Examiner

Signature Signature
( ) ( )
Examiner Code:- Examiner Code:-
AISSCE PRACTICAL EXAMINATION 2021-22
SUBJECT – COMPUTER SCIENCE (083)
CLASS XII
Duration:- 3 Hours Total Marks 15
Q.1. Write a menu driven program to perform Push, Pop and Display operations for stack using [2]
List as per the following structure:-

Item Description
b_no Book Number
b_name Book Name
b_price Book Price
Note:- By using Python.
Q.2. In a Database, there is table given below:- [4]
Table: PLAYER

PID PNAME GENDER GAME RANK

P01 SUMIT M CRICKET 5


P02 VIJAY SING M BADMINTON 9
P03 SANYA F BADMINTON 51
P04 VIRAT M CRICKET 1
P05 SHAILJA SINGH F TENNIS 15

(i) Write a SQL command to create above mentioned tables. Also insert values.
(ii) To display player name and game whose rank is 5 to 10
(iii) Show PID PName and RANK whose game is either Tennis or Cricket.
(iv) Display unique game from the table

Q.3 Report File [3]


Q.4 Project File [5]
Q.5 Viva [1]
Internal Examiner External Examiner

Signature Signature
( ) ( )
Examiner Code:- Examiner Code:-
AISSCE PRACTICAL EXAMINATION 2021-22
SUBJECT – COMPUTER SCIENCE (083)
CLASS XII
Duration:- 3 Hours Total Marks 15
Q.1. Write a menu based program to add, delete and display the record of hostel
using list as stack data structure in python. Record of hostel contains the fields : Hostel
number, Total Students and Total Rooms.
Item Description
Hostel_no Hostel number
Total_stud Total Student
Total_room Total Rooms
s
Note:- By using Python.
Q.2. In a Database, is table given below:- [4]
Table: BOOK

BNO TITLE AUTHOR DATE_PURCHASED PRICE

P01 IP CLASS XI A ARORA 2020-01-05 350


P02 COMP SCI P ARORA 2020-10-15 250
P03 CS CLASS XII NCERT 21-06-30 NULL
P04 ACCOUNTANCY CBSE 2022-01-01 550
P05 IP WITH PYTHON NCERT 2021-12-01 400

(i) Write a SQL command to create above mentioned tables. Also insert values.
(ii) To display details of the books whose price not mentioned
(iii) Display title and date of purchase of the books having “IP” in their title
(iv) Display all the details of books by NCERT in the descending order of their price
(v) Add Rs. 50 in the price of all the books by CBSE

Q.3 Report File [3]


Q.4 Project File [5]
Q.5 Viva [1]

Internal Examiner External Examiner

Signature Signature
( ) ( )
Examiner Code:- Examiner Code:-
AISSCE PRACTICAL EXAMINATION 2021-22
SUBJECT – COMPUTER SCIENCE (083)
CLASS XII
Duration:- 3 Hours Total Marks 15
Q.1. Program to connect with database and store record of employee and display records.

Fields Data types


e_no Variable char
e_name varchar
e_salary float

Note:- By using Python.


Q.2. In a Database, is table given below:- [4]
Table: BOOK

BNO TITLE AUTHOR DATE_PURCHASED PRICE

P01 IP CLASS XI A ARORA 2020-01-05 350


P02 COMP SCI P ARORA 2020-10-15 250
P03 CS CLASS XII NCERT 21-06-30 NULL
P04 ACCOUNTANCY CBSE 2022-01-01 550
P05 IP WITH PYTHON NCERT 2021-12-01 400

(i) Write a SQL command to create above mentioned tables. Also insert values.
(ii) To display details of the books which have been purchased before 01-01-2022
(iii) Display BNO,TITLE And PRICE of the books which book no is P01,P03,P05
(iv) Delete all the books whose price is not given
(v) Increase the price of all the books by 10% whose price is below 300

Q.3 Report File [3]


Q.4 Project File [5]
Q.5 Viva [1]

Internal Examiner External Examiner

Signature Signature
( ) ( )
Examiner Code:- Examiner Code:-
AISSCE PRACTICAL EXAMINATION 2021-22
SUBJECT – COMPUTER SCIENCE (083)
CLASS XII
Duration:- 3 Hours Total Marks 15
Q.1 Write a menu based program to Maintaining Book details like bcode, btitle
and price using stacks in python. (implement push(),pop(), and trarverse() function.

Note:- By using Python.


Q.2. In a Database, is table given below:- [4]
Table: BOOK

PLAYER_SN PLAYER_NAME PLAYHER_CITY PLAYER_SCORE PLAYER_SALAR


Y
1 RAJESH JAIPUR 100 10000
2 SURESH DELHI 90 20000
3 AMAN JAIPUR 50 40000
4 RAJNI TONK 39 50000
5 HARISH BARMER 69 200000
6 PIHU SIKAR 77 800000

(i) Write a SQL command to create above mentioned tables. Also insert values.
(ii) To increase the salary of player by 50% if he scored a century
(iii) To list the names of those players whose name length is characters and end with ‘ESH’
(iv) Mr. Ram wants to add one more column”coach_name”.Help ram to write commands
(v) List the names of players who belong to city Jaipur or tonk

Q.3 Report File [3]


Q.4 Project File [5]
Q.5 Viva [1]

Internal Examiner External Examiner

Signature Signature
( ) ( )
Examiner Code:- Examiner Code:-
AISSCE PRACTICAL EXAMINATION 2021-22
SUBJECT – COMPUTER SCIENCE (083)
CLASS XII
Duration:- 3 Hours Total Marks 15
Q.1. Program to connect with database and and store records of employee and display record..

Fields Data types


e_no Variable char
e_name varchar
e_salary float

Note:- By using Python.


Q.2. In a Database, is table given below:- [4]
Table: BOOK

PLAYER_SN PLAYER_NAME PLAYHER_CITY PLAYER_SCORE PLAYER_SALAR


Y
1 RAJESH JAIPUR 100 10000
2 SURESH DELHI 90 20000
3 AMAN JAIPUR 50 40000
4 RAJNI TONK 39 50000
5 HARISH BARMER 69 200000
6 PIHU SIKAR 77 800000

(i) Write a SQL command to create above mentioned tables. Also insert values.
(ii) To increase the salary of player by 50% if he scored a century
(iii) To list the names of those players whose name length is characters and end with ‘ESH’
(iv) Mr. Ram wants to add one more column”coach_name”.Help ram to write commands
(v) List the names of players who belong to city Jaipur or tonk

Q.3 Report File [3]


Q.4 Project File [5]
Q.5 Viva [1]

Internal Examiner External Examiner

Signature Signature
( ) ( )
Examiner Code:- Examiner Code:-
AISSCE PRACTICAL EXAMINATION 2021-22
SUBJECT – COMPUTER SCIENCE (083)
CLASS XII
Duration:- 3 Hours Total Marks 15
Q.1. Program to connect with database and search employee number in table employee and
display record, if empno not found display appropriate message.

Fields Data types


e_no Variable char
e_name varchar
e_salary float

Note:- By using Python.


Q.2. Consider the following table and write query for question (i) to (iv):- [4]
Table: ACCOUNT

ACNO C_NAME BALANCE TYPE BRANCH

111 KAMLESH KUMAR 50000 SAVING JAIPUR


112 SANDEEP JAIN 25000 SAVING UDAIPUR
113 RAJESH SHARMA 30000 CURRENT AJMER
114 OMESH 20000 CURRENT JAIPUR
115 RITIK GUPTA 70000 SAVING KOTA

(i) Display total balance of account table.


(ii) Display average balance of JAIPUR branch.
(iii) Display maximum balance and minimum balance of each branch.
(iv) Display number of accounts of each type.

Q.3 Report File [3]


Q.4 Project File [5]
Q.5 Viva [1]

Internal Examiner External Examiner

Signature Signature
( ) ( )
Examiner Code:- Examiner Code:-
AISSCE PRACTICAL EXAMINATION 2021-22
SUBJECT – COMPUTER SCIENCE (083)
CLASS XII
Duration:- 3 Hours Total Marks 15
Q.1. Program to connect with database and update the employee record of entered empno

Fields Data types


e_no Variable char
e_name varchar
e_salary float

Note:- By using Python.


Q.2. Consider the following table and write query for question (i) to (iv):- [4]
Table: CONTACTS

ID NAME CITY STATE MOBILE

111 KAMLESH KUMAR MUMBAI MAHARASHTRA 9858499341


112 SANDEEP JAIN CHENNAI TAMIL NADU 9857683422
113 RAJESH SHARM,A KOLKATA WEST BENGAL 9862345563
114 OMESH CHENNAI TAMIL NADU 7658364654
115 RITIK GUPTA MUMBAI MAHARASHTRA 8734645335
116 GAGANESH CHENNAI TAMIL NADU 9244535446
117 HARVINDER CHANDIGARH PUNJAB 7885500307

(i) Display total no. of contacts from TAMIL NADU state.


(ii) Display no. of contacts from each city.
(iii) Display details of contacts whose city is either starting from M and K.
(iv) Display name of state and total no. of contacts where at least 2 contacts are there.

Q.3 Report File [3]


Q.4 Project File [5]
Q.5 Viva [1]

Internal Examiner External Examiner

Signature Signature
( ) ( )
Examiner Code:- Examiner Code:-
AISSCE PRACTICAL EXAMINATION 2021-22
SUBJECT – COMPUTER SCIENCE (083)
CLASS XII
Duration:- 3 Hours Total Marks 15
Q.1. Program to connect with database and delete the employee record of entered empno

Fields Data types


e_no Variable char
e_name varchar
e_salary float

Note:- By using Python.


Q.2. Consider the following table and write query for question (i) to (iv):- [4]
Table: WORKER

WID WNAME JOB SALARY DNO

1001 RAHUL SHARMA CLERK 15000 D03


1002 MUKESH VYAS ELECTRITION 11000 D01
1003 SURESH FITTER 9000 D02
1004 ANKUR GUARD 8000 D01

DEPARTMENT
DNO DNAME LOCATION MANAGER
D01 PRODUCTION GROUND FLOOR D K JAIN
D02 ACCOUNTS 1ST FLOOR S ARORA
D03 SECURITY 1ST FLOOR R K SINGH

(i) Display Worker ID and job who are working under D K JAIN
(ii) Display Worker name and their respective department names who are working as ELECTRITION.
(iii) Display the average salary of workers who are working in the PRODUCTION department.
(iv) Display Worker name, job and their respective manager.

Q.3 Report File [3]


Q.4 Project File [5]
Q.5 Viva [1]
Internal Examiner External Examiner

Signature Signature
( ) ( )
Examiner Code:- Examiner Code:-

AISSCE PRACTICAL EXAMINATION 2021-22


SUBJECT – COMPUTER SCIENCE (083)
CLASS XII
Duration:- 3 Hours Total Marks 15
Q.1. Program to connect with database and search employee number in table employee and
display record, if empno not found display appropriate message.

Fields Data types


e_no Variable char
e_name varchar
e_salary float

Note:- By using Python.


Q.2. Consider the following table and write query for question (i) to (iv):- [4]
Table: WORKER

WID WNAME JOB SALARY DNO

1001 RAHUL SHARMA CLERK 15000 D03


1002 MUKESH VYAS ELECTRITION 11000 D01
1003 SURESH FITTER 9000 D02
1004 ANKUR GUARD 8000 D01

DEPARTMENT
DNO DNAME LOCATION MANAGER
D01 PRODUCTION GROUND FLOOR D K JAIN
D02 ACCOUNTS 1ST FLOOR S ARORA
D03 SECURITY 1ST FLOOR R K SINGH

(i) Display the total salary of workers who are working under CLERK.
(ii) Display no. of workers working in each department.
(iii) Display average, highest salary of workers who are working in the departments located at 1 st floor.
(iv) Display WNAME, Annual salary (assuming given salary is monthly), department whose
department no. is D01 or D03.

Q.3 Report File [3]


Q.4 Project File [5]
Q.5 Viva [1]
Internal Examiner External Examiner

Signature Signature
( ) ( )
Examiner Code:- Examiner Code:-

You might also like