0% found this document useful (0 votes)
23 views4 pages

XII CS ReportFile ProgramList AISSCE BoardExam 2024 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)
23 views4 pages

XII CS ReportFile ProgramList AISSCE BoardExam 2024 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/ 4

KRISHNA PUBLIC SCHOOL,RAIPUR

AISSCE Practical - 2024-25


Report File Programs List
Class - XII
Subject - Computer Science

General Instructions:
1. Solution must be handwritten in the Report File.
2. Each solution should start from a fresh page.
3. Output should be written in black side of page.
4. Report File must contains following things(Printed) in a given order only:
a. Front Page
b. Index Page
c. Certificate Page
d. Coding with output(Handwritten)

1. Input a list/tuple of elements, search for a given element in the list/tuple.

2. Count and display the number of vowels, consonants, uppercase, lowercase characters
in string.

3. Input a list of numbers and swap elements at the even location with the elements at the
odd location.

4. Create a dictionary with the roll number, name and marks of n students in a class and
display the names of students who have scored marks above 75.

5. Ask user to enter age, gender ( M or F ), marital status ( Y or N ) and then


using following rules print their place of service.
● If the employee is female, then she will work only in urban areas.
● if employee is a male and age is in between 20 to 40 then he may
work in anywhere
● If the employee is male and age is between 40 t0 60 then he will
work in urban areas only.
● And any other input of age should print "ERROR".

6. Write a Python function that accepts a string and calculates the number of
uppercase letters and lowercase letters.
Sample String : 'The quick Brow Fox'
Expected Output :
No. of Uppercase characters : 3
No. of Lowercase Characters : 12

7. A text file contains alphanumeric text(say an.txt) . Write a program that


reads this text file and prints only the numbers or digits from the file.
8. Define a function Count_Me_My() in Python that counts the number of
“Me” or “My” words present in a text file “Story.txt”. If the “Story.txt”
contents are as follows:
My first book
Was me and
My family. It
Gave me
Chance to be
Known to the
World.
The output of the function should be:
Count of Me/My in file: 4

9. A text file contains alphanumeric text(say an.txt) . Write a program that


reads this text file and prints only the numbers or digits from the file.

10. Write a program to get item details (code,description and price) for
multiple items from the user and create a csv file by writing all the item
details in one go.

11. Read a text file line by line and display each word separated by a #.

12. Create a binary file with name and roll number. Search for a given roll number and
display the name, if not found display appropriate message.

13. Write a function in Python , MakePush(Product) and MakePop(Product) to add a new


product and delete a product from a List of Product Description(Where Product is of
dictionary type and contains Product Name as KEY and Price as Value),
considering them to act as push and pop operations of the stack data structure.

14. Write a function in Python PUSH(Arr), Where Arr is a list of numbers. From this list push
all numbers divisible by 5 into a stack implemented by using a list. Display the stack if it
has at least one element, otherwise display appropriate error messages.

15. Write code to connect to a MySQL database namely School and insert following data
into School table:
(9 , ‘Amit’,’X’,’1995-01-01’,’M’,’Raipur’,500)
(Consider the STUDENT table which is given in Question number - 19(below)).

16. Write code to connect to a MySQL database namely School and then fetch all those
records from table Student where class is either ‘X’ or ‘XII’.(Consider the STUDENT
table which is given in Question number - 19(below)).

17. Write a Python database connectivity script that updates FEES by 100 points from the
COURSE table of database EDUCATION where FEES is more than 15000.(Consider
the COURSE table which is given in Question number - 20(below)).

18. Write a Python database connectivity script that deletes records from the COURSE table
of database EDUCATION that have FEES more than 15000.(Consider the COURSE
table which is given in Question number - 20(below)).
19. Write a output for SQL queries (i) to (iii), which are based on the table: STUDENT given
below:

(i) SELECT COUNT(*), City FROM STUDENT GROUP BY CITY HAVING


COUNT(*)>1;
(ii) SELECT MAX(DOB),MIN(DOB) FROM STUDENT;
(iii) SELECT NAME,GENDER FROM STUDENT WHERE CITY=”Delhi”;

Write SQL queries for (i) to (iv), which are based on the table: STUDENT :
(i) To display the records from table student in alphabetical order as per
the name of the student.
(ii) To display Class, Dob and City whose marks is between 450 and 551.
(iii) To display Name, Class and total number of students who have
secured more than 450 marks, class wise
(iv) To increase marks of all students by 20 whose class is “XII”

20. Write SQL queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), which are
based on the tables.

I. Display the Trainer Name, City & Salary in descending order of their Hiredate.
II. To display the TNAME and CITY of Trainer who joined the Institute in the month
of December 2001.
III. To display TNAME, HIREDATE, CNAME, STARTDATE from tables TRAINER
and COURSE of all those courses whose FEES is less than or equal to 10000.
IV. To display the number of Trainers from each city.
V. SELECT TID, TNAME, FROM TRAINER WHERE CITY NOT IN(‘DELHI’,
‘MUMBAI’);
VI. SELECT DISTINCT (TID) FROM COURSE;
VII. SELECT TID, COUNT(*), MIN(FEES) FROM COURSE GROUP BY TID HAVING
COUNT(*)>1;
VIII. SELECT COUNT(*), SUM(FEES) FROM COURSE WHERE STARTDATE<
‘2018-09-15’;

You might also like