0% found this document useful (0 votes)
11 views1 page

Practical Question, CS-2024 PDF Computer Programming Computing

This document is a sample question paper for the AISSCE Examination 2024 for Computer Science (Class XII). It includes practical questions related to Python programming and SQL queries, along with a practical report and project components. The document outlines the structure, time allocation, and maximum marks for each section.
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)
11 views1 page

Practical Question, CS-2024 PDF Computer Programming Computing

This document is a sample question paper for the AISSCE Examination 2024 for Computer Science (Class XII). It includes practical questions related to Python programming and SQL queries, along with a practical report and project components. The document outlines the structure, time allocation, and maximum marks for each section.
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/ 1

Search

Practical Question, CS-2024


Uploaded by piyushnag34

 100% (5) · 7K views · 3 pages


AI-enhanced title and description

Document Information 
This document contains a sample question paper for t…

Original Description:
Download now 
Hii Yyujjhgbnnbbvbnnk
Download as docx, pdf, or txt

Original Title
PRACTICAL QUESTION, CS-2024
AISSCE EXAMINATION – 2024
Copyright Practical Question Paper (Set-1)
School No-
© © All Rights Reserved Date:

Subject: Computer Science (083) Class XII Science


Available Formats
Time: 3:00 Hours
Python program (60% logic + 20% documentation + 20% code quality)
Max. Marks: 30

DOCX, PDF, TXT or read online from Scribd


Q – 1 Write the Python code for the following. [4+4=8]
a) Write a function in python that counts no of ‘Me’ or ‘My’ word present in a text
file ‘text1.txt’.

Share b)this document


Write a program to create a binary file to write 10 integers, read the file and display
the sum of even integers.


given below:

Facebook

Q – 2 Write the SQL queries (a) to (d) based on the relations SENDER and RECIPENT

Twitter
[1*4=4]

Email

Did you find this document useful?

a) Display all sender names those who are belongs from the city Mumbai.
Is this content
b) Display inappropriate?
recID, SenderName, SenderAddress & Recipient City belonging from the tables.
c) Display the records of recipient table in ascending order based on RecID.
d) Display the no of recipient and city name from each city.

Report
Q – 3 Practical Report File 7
Q – 4 Project 8
Q –5 Viva Voce 3

Internal Signature External Signature

Examiner No……….. Examiner No………..


Page 1

Ad Download to read ad-free


ADVERTISING

PYTHON CODE

Q1(A). Write a function in Python that counts the number of “Me” or “My” (in smaller
case also) words present in a text file.

# SOURCE CODE
def displayMeMy():
num=0
f=open("Mydoc4.txt","r")
N=f.read()
M=N.split()
for x in M:
if x=="Me" or x== "My":
print(x)
num=num+1
print("Count of Me/My in file:",num)
f.close()
filein = open("Mydoc4.txt",'w')
str=" "
n=int(input("enter the no of lines you want to write in a file"))
for k in range(n):
str =input("enter a line")
filein.write(str)
filein.write("\n")
filein.close()
displayMeMy()

# OUTPUT
enter the no of lines you want to write in a file2
enter a lineMe Mee My MMy Myy
enter a lineeMe Me Myy My YMy
Me
My
Me
My
Count of Me/My in file: 4

Q1(B) Write a program to create a binary file to write 10 integers, read the file and display
the sum of even integers.

#SOURCE CODE
def accept_integer(file1):
import pickle
obj=open("file1","wb")
k=0
for k in range(10):
num=eval(input("enter an integer"))
pickle.dump(num,obj)

print("Data has been written into binary file")


print("---------------------------------------")

Page 2

Ad Download to read ad-free


ADVERTISING

Learn More

obj.close()

def read_integer(file1):
import pickle
obj=open("file1","rb")
val=0
try:
while True:
num=pickle.load(obj)
if num%2==0:
val+=num
except EOFError :
pass

print("Sum of all even numbers is",val)


print("------------------------------")

obj.close()

file1=input("Enter binary file name")


accept_integer(file1)
read_integer(file1)

#OUTPUT
Enter binary file namekk
enter an integer11
enter an integer23
enter an integer5
enter an integer4
enter an integer9
enter an integer7
enter an integer8
enter an integer12
enter an integer22
enter an integer13
Data has been written into binary file
---------------------------------------
Sum of all even numbers is 46

Page 3

Reward Your Curiosity


Everything you want to read.
Anytime. Anywhere. Any device.

Read For Free

Cancel Anytime

Share this document


    

You might also like

Document 53 pages

CLASS 12 Computer Science


Practical - Report Files 2023 2024
malathi
100% (1)

Document 34 pages

VNX - VNX 5300 Procedures-7.0


Control Station Replacement
Vicente Junior
No ratings yet

Document 19 pages

Class 11 CBSE Computer Science


General Practical
Harshwardhan Unde
100% (1)

Document 28 pages

Most Expected 2 Marks Most


Expected Questions Stack…
Computer Science Class 12
sridharan.sri7766
100% (1)

Document 6 pages

Class 11 IP Annual Exam (QP)


Sample Paper 1
Neelima Vijayan
100% (1)

Document 8 pages

Python MQL Connectivity


Programs
Aditya Petkar
100% (2)

Document 31 pages

CH 2 - Revision Tour 2 - Practice


Material For Board Exam
Muhammed Nehan
100% (1)

Document 7 pages

Binary File Questions


Namita Sahu
No ratings yet

Document 1 page

Practical Question Paper For Class


12th
Vinika Ahuja
0% (1)

Document 10 pages

Solution Revision Tour Worksheet


PDF
Sonika Dogra
100% (2)

Document 2 pages

Practical Paper CS Class 12 Set I


Sahil Mishra
44% (9)

Document 11 pages

Class 12 CSC Practical Record File


2024-25 Final
Soham Mohanty
0% (1)

Show more

About Support

About Scribd Help / FAQ

Everand: Ebooks & Audiobooks Accessibility

SlideShare Purchase help

Press AdChoices

Join our team!


Social
Contact us

Invite friends Instagram

Twitter
Legal Facebook

Terms Pinterest

Privacy

Copyright

Cookie Preferences

Do not sell or share my


personal information

Get our free apps

Documents

Language: English

Copyright © 2025 Scribd Inc.

Download

You might also like