0% found this document useful (0 votes)
6 views

Practical Exam(CompSc-XII)-2024-25

The document outlines the practical examination for the All India Senior School Certificate Examination in Computer Science for Class XII, detailing the structure, maximum marks, and time allotted. It includes programming tasks in Python, SQL query writing, and requirements for a report file and project work. Additionally, it specifies the marking scheme and components for evaluation, including viva voce.

Uploaded by

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

Practical Exam(CompSc-XII)-2024-25

The document outlines the practical examination for the All India Senior School Certificate Examination in Computer Science for Class XII, detailing the structure, maximum marks, and time allotted. It includes programming tasks in Python, SQL query writing, and requirements for a report file and project work. Additionally, it specifies the marking scheme and components for evaluation, including viva voce.

Uploaded by

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

ALL INDIA SENIOR SCHOOL CERTIFICATE EXAMINATION: 2024-25

SUB : COMPUTER SCIENCE PRACTICAL (083)


CLASS : XII
SCHOOL CODE : 15315
Maximum Marks : 30 Time : 3 Hrs
GENERAL INSTRUCTIONS & Questions:
A. Programming in Python. [8+4=12]

1. Write any one program in Python. (Attempt the question marked with () symbol.)
Marking Scheme [8 Marks]
(i) Logic: 60%
(ii) Documentation / Indentation: 20%
(iii) Code Quality: 20%

2. SQL queries (4 queries based on one or two tables) [4 Marks]

Q1. (i) A binary file “student.dat” has structure [Roll_number, Name, percentage]. Write a
program in python using function countrecthat would read contents of file
“student.dat” and display the details of those students whose percentage is above 75.
Also display number of students scoring above 75%.
(ii) A binary file “Book.dat” has structure [BookNo, Book_Name, Author, Price].
Write a program using user defined functions:
a) CreateFile() to input data for a record and add to Book.dat.
b) CountRec(Author) in Python which accepts the Author name as parameter and
count and return number of books by the given Author are stored in the binary file
“Book.dat.
(iii) Write a method DISPLAY( ) in Python to read lines from a text file
DIARY.TXT, and display those lines, which are starting with an alphabet ‘P’.
For example:
“Python is a high level programming language.
It is easy to learn.
Python language uses interpreter.
A language processor is also called a language translator.”
The output should be :
Python is a high level programming language.
Python language uses interpreter.

(iv) Write a program in Python that defines and calls the following user defined
functions:
(a) ADD() – To accept and add data of students to a CSV file “student.csv‟. Each
record consists of a list with field elements as Rollno, Name, Marks respectively.
(b) Display() – To read all content of “student.csv” and display records of only those
students who scored more than 80 marks. Records stored in students is in format :
Rollno, Name, Marks.

(v) Write a Python Menu driven program to implement a stack using


list.
Choice : 1. PUSH ELEMENTS INTO THE STACK
Choice : 2. POP ELEMENTS FROM THE STACK
Choice : 3. DISPLAY ELEMENTS OF THE STACK
Q2. Write SQL Commands for the following statements (i) to (iv) based on the basis of
given table GRADUATE.

(i) To increase the stipend of PHYSICS students by 100.


(ii)To display the name of those students whose name starts with ‘D’.
(iii)
To display the rollno, name and subject in descending order of name.
(iv)To show total amount of stipend of each subject.
“OR”
Write queries (i) to (iv) based on the tables EMPLOYEE and DEPARTMENT given
below:

(i) To display the average salary of all employees, department wise.


(ii) To display name and respective department name of each employee whose salary
is more than 50000.
(iii) To display the names of employees whose salary is not known, in alphabetical
order.
(iv) To display DEPTID from the table EMPLOYEE without repetition.

B. Report File :
 Minimum 15 Python programs.
 SQL Queries – Minimum 5 sets using one table / two tables.
 Minimum 4 programs based on Python - SQL connectivity. 7 Marks

C. Project Work : (using concepts learnt in Classes 11 and 12) 8


Marks

D. Viva Voce : 3 Marks

Signature of Internal Examiner Signature of External Examiner

Examiner No. ______________ Examiner No. ______________

You might also like