0% found this document useful (0 votes)
18 views2 pages

Grade 12 Practical Exam Paper - SET A - PB2

The document outlines the practical examination for Computer Science for Grade XII, consisting of various programming tasks and SQL queries. Students are required to create programs in Python and SQL, including handling CSV files and database operations. The exam includes internal choices for different programming problems related to player scores and employee salary calculations.

Uploaded by

Deepti Korde
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)
18 views2 pages

Grade 12 Practical Exam Paper - SET A - PB2

The document outlines the practical examination for Computer Science for Grade XII, consisting of various programming tasks and SQL queries. Students are required to create programs in Python and SQL, including handling CSV files and database operations. The exam includes internal choices for different programming problems related to player scores and employee salary calculations.

Uploaded by

Deepti Korde
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/ 2

HALF YEARLY EXAMINATION 2022-23

Practical Exam SET A


Subject: Computer Science(083) Grade: XII
Marks: 30 Time : 3 Hrs.
Attempt all programs mentioned below. (Internal choice is given)
---------------------------------------------------------------------------------------------------------------------------------------------------------------

1. Write a program using python to get 10 players name and their score. Write the input in a csv file. Accept a
player name using python. Read the csv file to display the name and the score. If the player’s name is not found
give an appropriate message.

OR

Create a student table in SQL with attributes-sid, sname, section, gender & mark. Integrate SQL with Python by
importing the MySQL module. Display the details of students from student table in descending order of marks
from the Python script.

2. Write queries (a) to (d) based on the tables EMPLOYEE and DEPARTMENT given below:

(a) To display the average salary of all employees, department wise.


(b) To display name and respective department name of each employee whose salary is more than 50000.
(c) To display the names of employees whose salary is not known, in alphabetical order.
(d) To display DEPTID from the table EMPLOYEE without repetition.

3. Write a program to compute the total salary of the employee and also calculate the size of of the binary file
named “emplfile.dat”. The file consists of the following fields : employee number , employee name , basic salary
, allowances.
Total salary = basic + allowance

OR

Write a python function printcaps() that prints all the upper-case alphabets from a prewritten text file
alpha.txt.

Eg: for the datafile containing the following text: “India is My Country” The output should be:

M
C

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy