0% found this document useful (0 votes)
361 views9 pages

PRACTICAL ans(24-25)

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)
361 views9 pages

PRACTICAL ans(24-25)

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/ 9

SSCE COMPUTER SCIENCE SET A

PRACTICAL EXAMINATION 2024-2025


Q.No Description Marks

PART – I (Python Program)


1. Write a Python Program read a text file line by line and display each word
Q1. separated by a #. (4) [8]

2. Create a python program to create a stack of student’s marks .(4)


 Write function PUSH to add marks in to the stack
 Write function POP to remove the marks from stack and display the same.
Q2. Consider the following tables Supplier and Consumer. Write SQL commands for the
statements (a) to (d). [4]

a) To display the C_ID, Supplier name, Supplier Address, Consumer Name and
Consumer Address for every Consumer.
select c_id,suppliername,supplieraddress,cname,caddress from supplier
s,consumer cwhere s.supplierid=c.supplierid.
b) To display Consumer details in ascending order of CName
Select * from consumer orderby cname;
c) To display number of Consumers from each city.
Select count(*),Ccity from consumer groupby Ccity;
d)To display number of supplier name for each city whose count is greater than one.
Select count(*),suppliercity from supplier groupby suppliercity having count(*)>1;
Q3. Practical Record (Report File) [7]
Q4. Project file [8]
Q5. Viva Voce [3]
SSCE COMPUTER SCIENCE
PRACTICAL EXAMINATION 2024-2025
SET B

Q.No Description Marks

PART – I (Python Program)


1. Write a python program to read text file "Story.txt" and display
Q1. the number of vowels/consonants/lower case/ upper case [8]
characters present in that text file.
Q2. Consider the following tables FACULTY and COURSES and write the SQL queries
for the following questions (a) to (c) and write the output for the questions (d) & (e) [4]

a) To display fname, cname, fees from faculty and courses for the faculty whose
salary is more than 8000.
Select Fname,Cname from Faculty F,Courses C where F.F_ID=C.F_ID
and F.salary >8000;
b) To display the Fname, Lname whose Hiring date is more than 01-01-2000.
Select Fname,Lname from Faculty where Hire_date> “2000-01-01”;
c) To display Fname whose first letter starts with “R”.
Select Fname from faculty where Fname like “R%”.
d) Select COUNT(DISTINCT F_ID) from COURSES;
Count(distinct F_ID)
4

e) Select MIN(Salary) from FACULTY,COURSES where COURSES.F_ID =


FACULTY.F_ID;
Min(salary)
10000

Q3. Practical Record (Report File) [7]


Q4. Project file [8]
Q5. Viva Voce [3]

SSCE COMPUTER SCIENCE


SET C
PRACTICAL EXAMINATION 2024-2025

Q.No Description Marks

PART – I (Python Program)


Write a function to WriteRec() to write the 5 Employee Records (id, name, salary) in a
Q1. binary file name “Emp.dat” and ReadRec() function to read the all records from a binary [8]
file “Emp.dat” and display the employee name whose salary is greater than 35000.

Q2. . Mr. Kumar is a database administrator setting up an inventory system in a supermarket.


He creates a database Stock in SQL, to store the information of products for sale. He has [4]
decided that:
 Name of database: Stock
 Name of Table: Product
The attributes of Product table are
 Pcode numeric
 Ptype character of size 30
 Pname character of size 30
 Price numeric
 Quantity numeric
a) Create database and create table with the above given database.
Create database Stock;
Use Stock;
Create table Product(Pcode int, Ptype char(30),Pname char(30),Price
int,quantity int);
b) Insert all the data’s given in the table.
Insert into Product values(9005,‟Processor‟, „Intel-3‟,11000,10);
c) Now Mr. Singh wants to increment the price of all product by 10 %.Write SQL
query to do the same.
Update Product set Price=Price+Price*10/100;
d) Mr. Kumar wants to display the structure of the table Product i.e., name of the
attributes and its data types.Write SQL query to display the same
desc Product;
Q3. Practical Record (Report File) [7]
Q4. Project file [8]
Q5. Viva Voce [3]

SSCE COMPUTER SCIENCE


SET D
PRACTICAL EXAMINATION 2024-2025

Q.No Description Marks

PART – I (Python Program)


1) Write a function in Python that counts the number of “Me” or “My” words present in a
Q1. text file “STORY.TXT” [8]
(4)
2) Write function WritesStudent() to write the Records of Students (admno, name, fee) in a
binary file name “stud.dat”, and Write function Display() those records from a binary which
fee is less than 1500. (4)

Q2. Write the sql commands for the following questions.


[4]
a) To display first name,lastname,address and city of all employees
living in paris.
Select firstname,lastname,address,city from Employees where
city= ‘paris’;
b) To display first name,last name and total salary of all managers
from table employee and table empsalary where total salary is
calculated as salary+benefits.
Select firstname,lastname,salary+befenits as tot from
Employees E,Empsalary S where E.Empid=S.Empid and
designation=’manager’;
c) To display maximum salary of the employee designationwise.
Select max(salary) from EMpsalary groupby designation;
d) To display all the details of employee from both tables whose name
starts with “R”.
Select * from Employees E,Empsalary S where
E.Empid=S.Empid and firstname like ‘R%’;
Q3. Practical Record (Report File) [7]
Q4. Project file [8]
Q5. Viva Voce [3]

SSCE COMPUTER SCIENCE


SET F
PRACTICAL EXAMINATION 2024-2025

Q.No Description Marks

PART – I (Python Program)


. A) Write a python program to create and search employee’s record in csv file.[8]
Q1. [8]
Q2. Write SQL commands for (a) to (d) on the basis of Teacher relation given below:
[4]

a) Display name of all doctors who are in “ORTHOPEDIC” having more than 10
years of experience from the table DOCTOR.
Select name from doctor where dept= „orthopedic „and experience>10;
b) Display the average salary of all doctors working in “ENT” department (using
both tables) where salary=basic+Allowance.
Select avg(basic+Allowance) from doctor D,salary S where D.id=S.id and
dept=‟ENT‟;
c) Display the minimum allowance of all female doctors.
Select min(Allowance) from doctor D,salary S where D.id=S.id and sex=‟F‟;
d) Display the highest consultation fee of all doctors departmentwise.
Select max(consultation),dept from doctor D,salary S where D.id=S.id
groupby dept;

Q3. Practical file


7
Q4. Project Report
8
Q5. Viva Voce
3

You might also like