0% found this document useful (0 votes)
12 views2 pages

Practical QN CS 2023-24

Tsjtjdthd th thd thd

Uploaded by

vsahu7281
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)
12 views2 pages

Practical QN CS 2023-24

Tsjtjdthd th thd thd

Uploaded by

vsahu7281
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/ 2

SENIOR SECONDARY CERTIFICATE EXAMINATION

PRACTICAL EXAMINATION 2023-24 School code : ………….


COMPUTER SCIENCE (083)
Duration 3 Hrs Max.Mark 30
Mark Distribution
Python Program 08 Marks
SQL Queries 04 Marks
Report File 07 Marks
Project work 08 Marks
Viva voce 03 Marks

Part 1 (Python Program - 8 Marks)


Attempt one question (as allotted), Note down code and output.
1. Write a program to find the factorial of a number entered by user, by
invoking a function. Also check if the number entered by the user is a
prime number or not.
2. Write a program to display size before and after removing blank spaces from a
text file.
3. Write a program for counting vowels and consonants in a text file.
4. Write a program to read the content of file line by line and write it to another
file except for the lines contains ‘a’ letter in it.
5. Write a program countmy() to read the text file “myfile.txt” and count the
number of times “my” occurs in the file.
6. Program to read a text file line by line and display each word separated by “#”.
7. Program that reads characters from the keyboard one by one . All lower case
characters get stored in the file ” Lower.txt” and all upper case characters
stored in the file “upper.txt” and all other characters get stored inside the file
“others.txt”.
8. Program to create a binary file to store Rollno and Name, Search any Rollno
and display name if Rollno found, otherwise print “Rollno not found”.
9. Program to create a CSV file “Myfile.csv” which contain employee number,
name and salary and display the details in formatted output.
10. Program using function to read the text file “story.txt” ,and display those
words ,which are less than 4 characters.
11. Program to implement STACK IN Python using List
Part 2 (SQL Queries - 4 Marks)
Do four questions which is ticked. Note down the query and output.
12. Consider the following student table.

No Name Age Department Dateofadm Fee Sex

1 Pankaj 24 Computer 1997-01-10 120 M

2 Shalini 21 History 1998-03-24 200 F

3 Sanjay 22 Hindi 1996-12-12 300 M

4 Sudha 25 History 1999-07-01 400 F

5 Rakesh 22 Hindi 1997-09-05 250 M

6 Shakeel 30 History 1998-06-27 300 M

7 Surya 34 Computer 1997-02-25 210 M

8 Shikha 23 Hindi 1997-07-31 200 F

Write a Query:
a) To show all information about the students of History department.
b) To list the names of female students who are in Hindi department.
c) To list the names of all students with their date of admission in
ascending order.
d) To display student Name, Fee, Age for male students only.
e) To count the number of students with age <23.
f) To display the number of departments from the table student.
g) To display the age of most senior Female student from the table
student.
h) To display the average fees of students whose date of admission below
01/01/98.
i) To display the details of students whose name starts with s.
j) To display the number of students from Hindi department.
k) To display the details of students whose age between 20 and 25.
l) To display the number of students in each department.
m) To display the details of a students whose name starts with S and ends
with a.
n) To display the details of all male students whose age greater than 30.
o) To display the number of Female students from the table student.
p) To increase the fees of students from computer department by 200.
q) To display the details of students in descending order of their age.
r) To display Total number of students from History and Computer
department.

You might also like