0% found this document useful (0 votes)
4 views

cs practical 24-25

The document outlines the practical examination format for Senior Secondary Computer Science for the academic year 2024-25, consisting of multiple question sets. Each set includes Python programming tasks and SQL programming tasks, with specific requirements for creating and manipulating student and teacher databases. The examination is structured to assess students' skills in programming and database management, with a maximum score of 30 for each set.

Uploaded by

marab.e.t.o.la
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

cs practical 24-25

The document outlines the practical examination format for Senior Secondary Computer Science for the academic year 2024-25, consisting of multiple question sets. Each set includes Python programming tasks and SQL programming tasks, with specific requirements for creating and manipulating student and teacher databases. The examination is structured to assess students' skills in programming and database management, with a maximum score of 30 for each set.

Uploaded by

marab.e.t.o.la
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Q.

SET -1

SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25


COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs
PART-I (Python Program) 8

1 (i) Write a Python program to accept a string from the user. 4


(iI) Implement python string functions . 4

PART-II (MySQL ) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-12.
Creating Database and Table
CREATE TABLE student and stream.

1. Display student data in descending order of sid.


2. Add 2 new columns: city varchar(15), phone varchar(10).to table student
3.Display details of students who are in the medical stream.
4..Display the stream _name and mark of students.
Q.SET -2

SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25


COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs

PART-I (Python Program) 8

1 (i)Write a python program to get 4 players' names and score.write the 4


input in a csv file.
(ii) Accept a player name from the user and display the details,if the player 4
name is not found give an appropriate message.

PART-II (MySQL ) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-12.
Creating Database and Table
CREATE TABLE student and stream.

1. Display the number of students gender wise.


2. Remove the record of medical students from the stream table.
3.Display lowest, highest, total marks & average marks of students gender wise.
4.Display the details of students whose stream _name starts with ‘c’.
Q.SET -3
SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25
COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs
PART-I (Python Program) 8

1 (i)Write a program to create a binary file. 4


(iI)Write the code search for an item in a binary file.
4

PART-II (MySQL ) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-12.
Creating Database and Table
CREATE TABLE student and stream.

1.Display highest marks gender wise having highest marks less than 90.
2.Redefine the size of the sname attribute to 20 characters.
3.Display the details of a student whose name starts with v or ends with v.
4.Display the marks of students who are in the medical stream.
Q.SET -4
SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25
COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs
PART-I (Python Program) 8

1 (i)Write a menu based program to add,delete and display the record 4


of the hostel.

(ii)Write the code using a list as a stack data structure in python . 4

PART-II (MySQL ) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-4.
Creating Database and Table
CREATE TABLE student and stream.

1.Display the total number of male students.


2.Change the mark of student Rizwana to 75.
3.Display the students' names in descending order of their marks.
4.Display the Sid,Name and stream of students they are in a particular stream.
Q.SET -5

SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25


COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs
1 PART-I (Python Program) 8
(i)Write a python program to get item details(code,description and 4
price)for multiple items from the user.
(ii)Write the code to create a csv file by writing all the item details in one go. 4

PART-II ( MySQL) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-4.
Creating Database and Table
CREATE TABLE student and stream.

1.Display the number of male students..


2.Increase the mark of female students by 5.
3.Add another column Date in the stream table.
4.Display details of students whose Rollno between ‘101’and ‘104’
Q.SET -6
SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25
COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs

PART-I (Python Program) 8

1 (i)Write a program to read the contents of the file “myfile.txt’ . 4

(ii)Write the code to display the total number of consonants 4


,uppercase, vowels and lowercase characters.

PART-II ( MySQL) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-4.
Creating Database and Table
CREATE table Teacher and Department.

Table: Teacher Table: Department

1. Display Teacher data in descending order of age.


2. Add 2 new columns: city varchar(15), phone varchar(10).to table Teacher
3.Display details of teachers who are in the Finance stream.
4..Display the Teacher _name and department details.
Q.SET -7
SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25
COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs

PART-I (Python Program) 8

1 (i)Write a program to read the file “indian.txt line by line . 4

(ii)Write the code to display each word separated by a #. 4

PART-II ( MySQL) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-4.
Creating Database and Table
CREATE table Teacher and Department.

Table: Teacher Table: Department

1.Display the total number of teachers in each department .


2. Drop the attribute HOD from the Department table.
3.Display lowest, highest, total & average salary of teachers in each zone..
4.Display the Name and department name of all the teachers’.
Q.SET -8
SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25
COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs

PART-I (Python Program) 8

1 (i)Write a program to create a phone contact book . 4

(ii)Write the code to search and display contact. 4

PART-II ( MySQL) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-4.
Creating Database and Table
CREATE table Teacher and Department.

Table: Teacher Table: Department

1.Display the total number of teachers in each department..


2.Redefine the size of the Grade to 20 characters.
3.Display the details of a teacher whose name starts with n or ends with n.
4.Display the names of teachers and the name of the corresponding HOD for
All the departments.
Q.SET -9
SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25
COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs

PART-I (Python Program) 8

1 (i)Write a program containing a function that accepts a key and value. 4

ii)Write a code to update the value of that key in the dictionary entered by 4
the user.

PART-II ( MySQL) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-4.
Creating Database and Table
CREATE table Teacher and Department.

Table: Teacher Table: Department

1.Display the name and salary of all the teachers in ascending order of their
salaries.
2.Increase the salary of all the teachers above 30 years of age by 10%..
3.Display the number of teachers working in department 10..
4.Display the teacher's details whose minimum salary is above 25000 .
Q.SET -10
SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25
COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs

PART-I (Python Program) 8

1 (i)Write a program to input n numbers into a tuple and pass it to a function . 4

(ii)Write a function to count how many even and odd numbers are 4
entered.

PART-II ( MySQL) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-4.
Creating Database and Table
CREATE table Teacher and Department.

Table: Teacher Table: Department

1.Display the details of teachers whose grade is between “A” and”c”.


2.Put the grade B for all those whose grade is null.
3.Display details of teachers who are working in department 20 or 30.
4..Display the Teacher _name and department details.
Q.SET -11
SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25
COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs

PART-I (Python Program) 8

1 (i)Write a python program to open a text file in read mode. 4


(ii)Write code copies all lines that contain the character “a’ in a file and
write it to another file. 4

PART-II (MySQL ) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-12.
Creating Database and Table
CREATE TABLE student and stream.

1. Display the students details where the mark is more than 89.
2. Display the names of streams from stream table .A stream name should appear
only once.
3.Display lowest, highest, total marks & average marks of students gender wise.
4.Display the details of students who are getting mark greater than 80 in medical
stream’.
Q.SET -12
SENIOR SECONDARY PRACTICAL EXAMINATION 2024-25
COMPUTER SCIENCE(083)
MAXIMUMMARK:30
SCHOOL CODE: 75657 TIME:3hrs

PART-I (Python Program) 8

1 (i)Write a program to create a binary file. 4


(iI)Write the code to update an item in a binary file.
4

PART-II (MySQL ) 4

2 SQL PROGRAMS
Create a table Student. Write SQL commands for the statements 1-12.
Creating Database and Table
CREATE TABLE student and stream.

1. Display the details of medical,non medical and commerce streams .


2. Display the names of streams from stream table .A stream name should appear
only once.
3.Add one column city to the stream table.
4.Display the details of students who are in non medical stream with names contain
‘u’ as the second character.

You might also like