aglasem.com
Schools Admission Mock Test Playground
ClassChoose class
StateSelect state

Class 12 PT II Question Paper 2023-24 Computer Science

Get the Class 12 PT II Question Paper 2023-24 for Computer Science. Download the latest 12th class periodic test question papers pdf to enhance your Computer Science preparation and score well in your exams. More Detail
Class 12 PT II Question Paper 2023-24 Computer Science - Page 1 of 5

Finished viewing? Save it for later —

Download Class 12 PT II Question Paper 2023-24 Computer Science (PDF · 5 pages)
Downloaded 14 times

About Class 12 PT II Question Paper 2023-24 Computer Science

Class 12 PT II Question Paper 2023-24 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 (5 pages). Candidates preparing for Class 12 can use Class 12 PT II Question Paper 2023-24 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 II Question Paper 2023-24 Computer Science?

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

Is Class 12 PT II Question Paper 2023-24 Computer Science free to download?

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

How many pages does Class 12 PT II Question Paper 2023-24 Computer Science have?

Class 12 PT II Question Paper 2023-24 Computer Science contains 5 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 II Question Paper 2023-24 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 (5 pages)

Page 1

PERIODIC TEST
QUESTION PAPER
Question Paper for CBSE Board, KV Schools,
State Board following NCERT Syllabus

PT 1 | PT 2

Page 2

Question Paper based on NCERT Syllabus
CBSE Board Question Paper / KV Schools Question Paper
CLASS XII , COMPUTER SCIENCE (083)
MM: 40 UNIT TEST-II 2023 TIME: 90 MIN
General Instructions: i) All questions are compulsory. ii) Programming Language: Python
[1] a) Find the invalid identifier from the following 1
a)MyName b) True c) 2ndName d) My_Name
b) What is local variable in context of python function? 1
c) What is the value of the python expression: 1
>> 3 ** 2 + 5
a) 14 b) 11 c) 21 d) none of these
d) Write the following mode that will be used for opening the following files 1
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) What is global variable ? 1
f) The keyword to declare / define the function : 1
a) module_func b) func c) def d) def_func
g) def interest( p , r=0.1, t=2): 1
…………
Above function declaration is an example of ..
a) function calling b) default function
c) function having default argument d) none of these
h) Which module should be imported in python program to access and show 1
randomly generated value. ?
i) What are mutable types. 1
j) Give the example(s) if immutable data types. 1
k) Compare list and dictionary. 1
[2] a) Find and write the output of the following Python 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('[email protected]')
b) The mode to allows to open the file in append mode. 1
i) r ii) a iii) b iv) w
c) Name the built-in mathematical function / method that is used to return 2
an absolute value of a number.

d) If the following code is executed, what will be the output of the following 2
code?
name="ComputerSciencewithPython"
print(name[3:10])
e) Fill in the Blank: 1
_________ function allows to set the position in file, to resume next
read/write access from that position.

Page 3

f) Name the module wich can be used to access Binary File. 1
g) Consider the below given function header. Identify the error ? 1
def interest( p=1000, r , t=2):
h) Consider the following Problem: 2
“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.
i) What is the function of csv.reader object ? 1
j) Differentiate between actual parameter(s) and a formal parameter(s) with 2
a suitable example for each.
k) Write a command(s) to write the following lines to the text file named 2
hello.txt. Assume that the file is opened in append mode.
“Welcome my class”
“It is a fun place”
“You will learn and play”
[3] a) Write a function AMCount() in Python, which should read each character 3
of a text file STORY.TXT, should count and display the occurance of
alphabets A and M (including small cases a and m too).
b) Rewrite the following code after removing the syntax error(s), underline 2
the correction(s) made:
x=23
For y in range(30)
z=x+y
print(z)
print(x+2)
c) Write a statement in Python to open a text file CONTENT.TXT so 1
that new contents can be written in it.
d) Write a statement in Python to open a text file REMARKS.TXT so that 1
existing content can be read from it.
e) Discuss the syntax and use of sqrt( ) function of math module. What will 2
happen if a negative number is passed as argument to .
[4] a) Which of the following function(s) are in the math module? 1
(A) fabs( ) (B) len( ) (C) sin( ) (D) random( )
b) Which of the following is true about the Python packages ? 1
(a) A package is a collection of modules.
(b) Name of package corresponds to name of the folder containing modules.
(c) The folder must contain __init__.py file
(d) All of the above.
c) Write a program to enter the following records in binary file: 4
Item No integer
Item_Name string

Qty integer
Price float
Number of records to be entered should be accepted from the user. Read the file to
display the records in the following format:
Item No:
Item Name:
Qty:
Price:
Amount:

Page 4

(Amount to be calculated as Price * Qty )

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

Page 5

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
Pages5
Updated15 Jul 2026