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

Rel Cer Cs

The document outlines the AISSCE Computer Science practical examination for Sainik School Ambikapur scheduled for January 29, 2025. It includes a series of programming tasks in Python, SQL queries, and practical report requirements, with a total of 30 marks. Additionally, it specifies the examiners for the assessment.

Uploaded by

labphysics14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views4 pages

Rel Cer Cs

The document outlines the AISSCE Computer Science practical examination for Sainik School Ambikapur scheduled for January 29, 2025. It includes a series of programming tasks in Python, SQL queries, and practical report requirements, with a total of 30 marks. Additionally, it specifies the examiners for the assessment.

Uploaded by

labphysics14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

nwjHkk"k : 07774-261609 lSfud Ldwy

vfEcdkiqj
Telephone : 07774-261609 (j{kk ea=ky; ds vf/ku
lapkfyr)
email: [email protected] Sainik School Ambikapur
website: www.sainikschoolambikapur.org.in (Under the aegis of Ministry of
Defence)
es.Mªkdyka] iksLV
fHkV~Bhdyka
Mendra Kalan, Post – Bhitti Kalan
ftyk & ljxqtk
¼NRRkhlx<+½
Dist – Surguja (Chhattisgarh)
fiu dksM+ & 497 001
PIN – 497 001

AISSCE COMPUTER SCIENCE (083) PRACTICAL EXAMINATION 2024-25


SAINIK SCHOOL AMBIKAPUR, MENDRA KALAN, AMBIKAPUR

Time Allowed – 03 hrs Date : 29-Jan-2025 Maximum Marks – 30

1. Lab Test:
1) Python Program [8]
1. Write a program to read content of a file “MEMO.TXT” and print number of
occurrence of the word “do” in it. Do not count the within a word eg. “done”.
Ex :- I will do it, if you request me to do it. It would have been done much earlier

2. Write a Menu driven program to implement stack:


 Push
 Pop
 Peek
 Display
 Exit

3. Write a function in Python that counts the number of “Me” or “My” words present
in a text file “STORY.TXT”
4. Write a program using function SUMFUN( ) with arguments X and N which
returns the sum of N terms of the following: x-x3 /3 + x5 /5 – x7 /7 + x9 /9…..

5. Write a python program using function 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 message.
6. Program to write data in a csv file student.csv. and then read and display the data
from student.csv file.

7. Write a program to accept an array of marks of ten students and sort using
Bubble/Selection sort.
1
8. Write a python program using function POP(Arr), where Arr is a stack
implemented by a list of numbers. The function returns the value deleted from the
stack.

9. Write a program in python to create a stack “student” with details of student


name and their marks. Write Operation for Push, Pop and Traversal
operation using menu.

10. WAP to open a file and count the Number of Lines, No. of Words and No.
of Characters in a given file.

11. Write a Program to create a binary file to store roll number and name and search
any roll number and display the respective name.

12. Write a python program to create a stack of Book’s record which contains [Book
code, Book title, Book price].
 Write function PUSH to add record into the stack
 Write function POP and display the record in the stack

13. Write a function in Python that counts the number of “this” or “that” words present
in a text file “STORY.TXT”
14. Write a python program to create stack Sport_Stack to store age of sportsman
using stack implementation as list. Write Operation for Push, Pop and Traversal
operation using menu.

15. Write a python code to create a SQL table Cadet (using pymysql interface )
with following specifications:

 Schno – int – size 4 – Primary Key


 Name – char – size 15
 DOB – Date
Note the following to establish connectivity between Python and MYSQL:
 Username is root
 Password is ssap
Insert one row as given below:
SchNo Name DOB
851 Shivam Kumar 21-06-2007

16. Write a python code to create a SQL table Student (using pymysql interface )
with following specifications:
 Admno – int – size 4 – Primary Key
 SName – char – size 15
 DOB – Date
Note the following to establish connectivity between Python and MYSQL:
 Username is root
 Password is tiger
2
Insert one row as given below:
AdmNo SName DOB
1229 Harsh Bhati 21-03-2006

2. SQL queries [4]


Q. Write queries for (i) to (iii) and find outputs (any one) for SQL queries (iv) to (v) , which are based on the
following tables:
Table : Book
Book_Id Book_Name Author_Name Publisher Price Type Quantity
C0001 Fast Cook LataKapoor EPB 355 Cookery 5
F0001 The Tears William Hopkins First Pub 650 Fiction 20
T0001 My First C++ Brain & Brooke EPB 350 Text 10
T0002 C++ Brain works A.W. Rossaine TDH 350 Text 15
F0002 Thunderbolts Anna Roberts First Pub 750 Fiction 50
Table : Issued
Book_Id Issuedto Quantity_Issued
T0001 Kamal 4
C0001 Arvind 5
F0001 Suresh 2
i. To show Book id, Book name, Author name and price of books of First Pub Publisher
ii. To display the names and price of books in ascending order of their prices.
iii. Display the price of book which has price between 300 to 500.
iv. Select Book_Name, Author_Name from Book where Publisher=’First Pub’;
v. Select count(distinct Publisher) from Book where Price>=400;

Q Write queries for (i) to (iii) and find outputs (any one) for SQL queries (iv) to (v), which are based on the
following tables: Table : VEHICLE

Note:
 PERKS is Freight Charges per kilometer.
 Km is kilometers Travelled
 NOP is number of passengers travelled in vehicle.
i. To display CNO, CNAME, TRAVELDATE from the table TRAVEL in descending order of CNO.
ii. To display the CNO and CNAME of those customers from the table TRAVEL who travelled between
‘2015-1231’ and ‘2015-05-01’.
iii. To display all the details from table TRAVEL for the customers, who have travel distance more than 120
KM in ascending order of NOE
iv. SELECT COUNT (*), VCODE FROM TRAVEL GROUP BY VCODE HAVING COUNT (*) > 1;
v. SELECT DISTINCT VCODE FROM TRAVEL;

Q. Write queries for (i) to (iii) and find outputs (any one) for SQL queries (iv) to (v), which are based on
the following tables :

3
Note:
 PERKM is Freight Charges per kilometer
 TTYPE is Transport Vehicle Type
 NO is Driver Number
 KM is Kilometer travelled
 NOP is number of travelers travelled in vehicle
 TDATE is Trip Date
i. To display NO, NAME, TDATE from the table TRIP in descending order of NO.
ii. To display the NAME of the drivers from the table TRIP who are traveling by transport vehicle
with code 101 or 103.
iii. To display the NO and NAME of those drivers from the table TRIP who travelled between
‘2015-02-10’ and ‘2015-04-01’.
iv. SELECT COUNT (*), TCODE From TRIP GROUP BY TCODE HAVNING Count (*) > 1;
v. SELECT DISTINCT TCODE from TRIP;

Q. Write queries for (i) to (iii) and find outputs (any one) for SQL queries (iv) to (v), which are based on
the following tables:

i. To display those company name which are having prize less than 30000.
ii. To display the name of the companies in reverse alphabetical order.
iii. To increase the prize by 1000 for those customers whose name starts with S?
iv. SELECT COUNT(*) , CITY FROM COMPANY GROUP BY CITY;
v. SELECT AVG(QTY) FROM CUSTOMER WHERE NAME LIKE “%r%”;

3. Practical Report File [07]

4. Project Work [08]

5. VIVA [03]

Mr. PRADEEP KUMAR DANGRE Mr. MITESH MISHRA


(Examiner No: 661019) (Examiner No: 348962)
INTERNAL EXTERNAL

******

You might also like