aglasem.com
Home Schools Admission Career Mock Test PDF Docs Playground
ClassChoose class
StateSelect state

Class 12 PT I Question Paper 2025-26 Computer Science

Download Class 12 PT I Question Paper 2025-26 Computer Science pdf. Here at aglasem.com get all Class 12 Periodic Test previous year question papers. Unit Test / Periodic Test Question Paper 2025-26 Computer Science is given below. More Detail
Class 12 PT I Question Paper 2025-26 Computer Science - Page 1 of 6

Finished viewing? Save it for later —

Download Class 12 PT I Question Paper 2025-26 Computer Science (PDF · 6 pages)
Downloaded 164 times

About Class 12 PT I Question Paper 2025-26 Computer Science

Class 12 PT I Question Paper 2025-26 Computer Science is available here for free download. Published by AglaSem for Class 12, this question paper can be viewed online or downloaded as a PDF (6 pages). Candidates preparing for Class 12 can use Class 12 PT I Question Paper 2025-26 Computer Science to understand the exam pattern, the type of questions asked, and the overall difficulty level.

Frequently Asked Questions

How can I download Class 12 PT I Question Paper 2025-26 Computer Science?

Open this page and click the Download button to save Class 12 PT I Question Paper 2025-26 Computer Science as a PDF. It is completely free on AglaSem Docs.

Is Class 12 PT I Question Paper 2025-26 Computer Science free to download?

Yes. Class 12 PT I Question Paper 2025-26 Computer Science can be viewed online and downloaded as a PDF free of cost on AglaSem Docs.

How many pages does Class 12 PT I Question Paper 2025-26 Computer Science have?

Class 12 PT I Question Paper 2025-26 Computer Science contains 6 pages, which you can read online or download together as a single PDF.

Where can I find more Class 12 study material?

You can find more Class 12 question papers, sample papers, syllabus, and answer keys on AglaSem Docs.

Class 12 PT I Question Paper 2025-26 Computer Science – Text

Read the full text of this question paper below — useful to quickly search, copy and reference the content online without downloading the PDF.

📄 View text version (6 pages)

Page 1

PERIODIC TEST
QUESTION
PAPER
PT1 - PT2

BASED P
T A
ER

P
ER
NC

S

Page 2

UNIT TEST- JUL 2025 , XII , COMPUTER SCIENCE (083)
MM: 40 ​ TIME: 90 MIN
General Instructions: i) All questions are compulsory. ​ ​
ii) Programming Code Language: Python Programming Language
[1] a) 1
Find the invalid identifier from the following​
a) abc b) True c) 2ndabc d) ab_c

b) 1
What is the local variable in context of python function?

c) 1
What is the value of the python expression:​
>> 23 ** 4 + 5​
a) Syntax Error​
b) 374658​
c) 267383​
d) none of these

d) Write the following mode that will be used for opening the following 1
files​
a) a text file “example.txt” in both read and write mode​
b) a binary file “bfile.dat” in write mode​
c) a text file “try.txt” in append and read mode​
d) a binary file “btry.dat” in read only mode.

e) 1
What is the global variable ?

f) 1
The keyword to declare / define the function :​
a) module_func ​ b) func ​ c) def ​ d) def_func

g) 1
def interest( p , r=0.1, t=2):​
​ …………
Above function declaration is an example of ..​
a) function calling b) default function ​
c) function having default argument d) none of these

h) 1

Which module should be imported in python program to access and
show randomly generated value. ?

Page 3

i) 1
What are mutable types?

j) 1
Give the example(s) of immutable data types.

[2] a) Find and write the output of the following code 3
def Display(str):
​ m=""
​ for i in range(0,len(str)):
​ if(str[i].isupper()):
​ m=m+str[i].lower()
​ elif str[i].islower():
​ m=m+str[i].upper()
​ else:
​ if i%2==0:
​ m=m+str[i-1]
​ else:
​ m=m+"#"
​ print(m)
Display('abcdefghijksfh@643hhctik')
b) 1
The mode allows you to open the file in append mode.​
i) r ​ii) a ​ iii) b ​ iv) w

c) 2
Name the built-in function / method that is used to return an absolute
value of a number.

d) 2
If the following code is executed, what will be the output of the
following code?
​ name="csxiiajul2025"
​ print(name[3:10])

e) 1
Name the module which can be used to access Binary File.

f) 1
Consider the below given function header. Identify the error ?
def interest( p=1000, r , t=2):

Page 4

g) 2
Consider the following Problem:​
“Write the method in python to display the elements of list thrice if it
is a number and display the element terminated with ‘#’ if it is not a
number.”​
Now Consider the following code, which attempts to solve the given
problem:

def show_elements(lst):​
​ for elem in lst:
​ if elem.isdigit( ):
​ print( ………………. ) ​#Line 1
​ else:
​ print( elem + ‘#’ )

Write the python statement/code/expression to correctly fill in the
blanks.

h) 2
Differentiate between actual parameter(s) and a formal parameter(s)
with a suitable example for each.

i) Rewrite the following code after removing the syntax error(s), 2
underline the correction(s) made:
x=23
For y in range(30)
​ z=x+y
​ print(z)
print(x+2)
[3] a) 3
Write a command(s) to input the text from user and write the text to
the text file named abc.txt. Assume that the file is opened in append
mode.​
“”

b) 3
Write a function bcCount(), which should read each character of a text
file STORY.TXT, should count and display the occurrence of
alphabets B and C (including small cases b and c too).

c) 3
Discuss the syntax and use of sqrt( ) function of the math module.

What will happen if a negative number is passed as an argument to the
function.

Page 5

[4] a) 1
Which of the following function(s) are in the math module?​
(A) fabs( ) (B) len( ) (C) sin( ) (D) random( )

b) Write a function to search and display details, whose destination is “Sitapur” 4
from the binary file “movie.dat”. Assuming the binary file is containing the
following elements in the list: ​
1. Movie name​
2. Movie start time​
3. Movie duration

AglaSem Earn while Learn Program. Send your papers and get paid.
Contact: support@

Page 6

QUESTION PAPERS
GET PREVIOUS YEAR QUESTION PAPERS FOR ALL CLASSES FOR CBSE, ISCSE, ISC AND ALL ALL
STATE BOARDS HERE AT

Andhra Pradesh Board Question Papers
BOARD
WISE Assam Board Question Papers
Bihar Board Question Papers
Chhattisgarh Board Question Papers
Goa Board Question Papers
Gujarat Board Question Papers
Haryana Board Question Papers
Himachal Pradesh Board Question Papers
J&K State Board Question Papers
Jharkhand Board Question Papers
Karnataka Board Question Papers
Kerala Board Question Papers
Madhya Pradesh Board Question Papers
Maharashtra State Board Question Papers
Manipur Board Question Papers
Meghalaya Board Question Papers
Mizoram Board Question Papers
Nagaland Board Question Papers
Orissa Board Question Papers
Punjab Board Question Papers
Rajasthan Board Question Papers
Tamil Nadu Board Question Papers
Telangana State Board Question Papers
Tripura Board Question Papers
Uttarakhand Board Question Papers
Uttar Pradesh (UP) Board Question Papers
West Bengal (WB) Board Question Papers

Document Details

Board / OrgAglasem
ExamClass 12
TypeQuestion Paper
Pages6
Updated24 Sep 2026