0% found this document useful (0 votes)
181 views13 pages

XII Comp SC SSCE Practical Examination 2024-25

Uploaded by

srividya
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)
181 views13 pages

XII Comp SC SSCE Practical Examination 2024-25

Uploaded by

srividya
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/ 13

SSCE PRACTICAL EXAMINATION - 2024

Computer Science (083)


Max Marks:- 30 Time:- 3 hours

Question 1 -Python Programming - (8 marks)

Concept implementation :- User defined functions, passing mutable data types to


functions

Question - Define the following functions


a) Update(L) which accepts a list of numbers as an argument and updates the list
with all even numbers with twice the value and all odd numbers replaced with
the number 0. The function should display the updated list.
b) Rev(L) which accepts a list of numbers as argument and reverses each number
in the list . For example, if the list is [102,305,45], the updated list must be
[201,503,54]
Write a menu driven program to invoke the above methods
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours

Question 2 -Python Programming - (8 marks)

Aim:- Applications of text files

Concept implementation :- Text files

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 3 -Python Programming - (8 marks)

Aim:- Applications of text files

Concept implementation :- Text files

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 4 -Python Programming - (8 marks)

Aim :- Operations on files


Concept implementation :- Text files

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 5 -Python Programming - (8 marks)


Aim:- To implement CSV files
Concept implementation :- CSV files, User defined functions
Question :- Write a menu driven program to store the username and password of users
in a CSV file. It must contain the following functions
1) write_data() :- which accepts the user name and password of users in a csv file
“Credentials.csv”
2) read_data():- which displays the entire contents of the csv file
3) search_data(name):- which accepts the user name as argument and displays the
password of that user from the csv file. Display an appropriate message if the
user name is not found
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours

Question 6 -Python Programming - (8 marks)


Aim :- To implement CSV files
Concept implementation :- CSV files, writer() and reader() methods

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 7 -Python Programming - (8 marks)


Aim:- Employee data management using binary files
Concept implementation :- lists, binary files
Question:-
Write a menu driven program to perform the following operations in a binary file
named emp.dat

A) add employee details name,E No.,salary as list


B) display employee details
C) search for employee by E No
Use separate user defined functions for each menu item
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours

Question 8 -Python Programming - (8 marks)


Aim:- Student database using binary files
Concept implementation :- tuples, binary files
Questions:-
Write a menu driven program to perform the following operations on a binary file
student.dat
a. Add a student detail as (Admno, Name, Mark1, Mark2, Mark3)
b. Display the entire contents of the binary file
c. Display the details of students - Name and marks who have an average
score of 75 and above.
Use separate user defined functions for each menu item
SSCE PRACTICAL EXAMINATION - 2024
Computer Science (083)
Max Marks:- 30 Time:- 3 hours

Question 9 -Python Programming - (8 marks)


Aim :- Stack implementation I
Concept implementation :- Stack data structure and lists

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

Question 10 -Python Programming - (8 marks)

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

Question 11 -Python Programming - (8 marks)

Integrate SQL with Python by importing the MySQL module .


Aim : To implement DML commands - SELECT & INSERT
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 the Section column can be either A or B .
Populate 4 records of your choice .

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

Question 12 -Python Programming - (8 marks)

Integrate SQL with Python by importing the MySQL module .


Aim : To implement DML commands - SELECT & DELETE
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 the Section column can be either A or B .
Populate 4 records of your choice .

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

Question 13 -Python Programming - (8 marks)

Integrate SQL with Python by importing the MySQL module .


Aim : To implement DML commands - SELECT & UPDATE
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 the Section column can be either A or B .
Populate 4 records of your choice .

Python activity :
1) Accept RollNo to be updated and update the Stream through the program .
2) Display all the records in table STUDENT

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