XII Comp SC SSCE Practical Examination 2024-25
XII Comp SC SSCE Practical Examination 2024-25
Question:- Write a menu driven program to open a text file “mydiary.txt” and perform
the following operations
1. Count and display the number of words longer than 5 characters
2. Display all the words starting with letter “s” in reverse order. Eg if the file
contents are “School is so much fun”, the output must be “loochS is os much
fun”
3. Exit
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours
Question:- Write a menu driven program to open a text file “mydiary.txt” and perform
the following operations
1. Display the frequency of each word in the file
2. Copy all words starting with the letter “a” into another file “mydiarynew.txt”
3. Display text statistics of the file ie, display the number of
a. Uppercase vowels
b. Lowercase vowels
c. Uppercase consonants
d. Lowercase consonants
e. Digits
f. Special characters
g. Number of words
4. Exit
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours
Question :-
Write a menu driven program to perform the following operations in a text files:
1. Read a poem from the user and add it to a file “poem.txt”
2. Display the contents of the file
3. Display the lines starting with vowels.
4. Display the number of lines having more than 5 words.
5. Exit
The program has to work as many times as the user wishes to. Use separate functions
for each operation.
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours
Question:-
Write a menu driven program to do the following operations on the file “student.csv”
1. add() - to add a record of data with Roll No, Name, TotalMarks and Grade into
the file
2. disp() - to display the entire file contents
3. search() - to search for a student’s details using rollno
4. update() - to update the marks of a student based on his / her roll no
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours
Question:- Accept a list L from the user which contains the details of employees in the
following format. [eno, ename, salary, department]. The departments must be IT, HR,
FINANCE or ADMIN. Define the following user defined functions
a) PUSH(): which pushes the details of employees who are in different departments
into different stacks named IT, HR, FIN and ADM.
b) POP(): which pops and displays the contents of all the stacks
Write a menu driven program to invoke both the methods
Eg :- if the list L is
[[“S102”,”Sanket”, 68000, “IT”],
[“S103”,”Navneeth”,72000,”ADM”],
[“S104”,”Kalpesh”,89200, “FIN”],
[“S105”,”Pooja”,79800,”IT”],
[“S106”,”Punya”, 95800,”ADM”],
[“S107”,”Shilpa”,78650,”FIN”]
[“S108”,”Venkat”,95400,”HR”]]
The contents of the lists must be as follows:
IT=[[“S102”,”Sanket”, 68000, “IT”],[“S105”,”Pooja”,79800,”IT”]]
ADM=[[“S103”,”Navneeth”,72000,”Admin”],[“S106”,”Punya”, 95800,”Admin”]]
FIN=[[“S104”,”Kalpesh”,89200, “FIN”],[“S107”,”Shilpa”,78650,”FIN”]]
HR=[[“S108”,”Venkat”,95400,”HR”]]
The output must be
Contents of the stack IT
[“S105”,”Pooja”,79800,”IT”]
[“S102”,”Sanket”, 68000, “IT”]
Stack empty
Contents of the stack ADM
[“S106”,”Punya”, 95800,”Admin”]
[“S103”,”Navneeth”,72000,”Admin”]
Stack empty
Contents of the stack FIN
[“S107”,”Shilpa”,78650,”FIN”]
[“S104”,”Kalpesh”,89200, “FIN”]
Stack empty
Contents of the stack HR
[“S108”,”Venkat”,95400,”HR”]Stack empty
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours
Aim : Integrate SQL with Python by importing the MySQL module and to implement
DML command - SELECT
SQL activity :
Create a Table: STUDENT
With attributes : RollNo , Name , Stream , Section
Note : The values in Stream column can be Science, Commerce,
or Humanities. The values in Section column can be either A or B .
Populate 4 records of your choice .
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours
Python activity :
1) Accept values for a new record through the program .
2) Insert these values into table STUDENT .
3) Display all the records in table STUDENT
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours
Python activity :
1) Accept RollNo to be deleted through the program .
2) Delete this record from table STUDENT .
3) Display all the records in table STUDENT
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours
Python activity :
1) Accept RollNo to be updated and update the Stream through the program .
2) Display all the records in table STUDENT