मराठी

Computer Science (Python) Set 4 2025-2026 Commerce (English Medium) Class 12 Question Paper Solution

Advertisements
Computer Science (Python) [Set 4]
Marks: 50 CBSE
Commerce (English Medium)
Science (English Medium)
Arts (English Medium)

Academic Year: 2025-2026
Date & Time: 25th March 2026, 10:30 am
Duration: 3h
Advertisements

General Instructions:

  1. This question paper contains 37 questions.
  2. All questions are compulsory. However, internal choices have been provided in some questions. Attempt only one of the choices in such questions.
  3. The paper is divided into 5 SectionsA, B, C, D and E.
  4. Section A consists of 21 questions (1 to 21). Each question carries 1 mark.
  5. Section B consists of 7 questions (22 to 28). Each question carries 2 marks.
  6. Section C consists of 3 questions (29 to 31). Each question carries 3 marks.
  7. Section D consists of 4 questions (32 to 35). Each question carries 4 marks.
  8. Section E consists of 2 questions (36 & 37). Each question carries 5 marks.
  9. All programming questions are to be answered using Python Language only.
  10. In case of MCQs, text of the correct answer should also be written.

SECTION - A
[1]1.

State True or False:

In Python, data type of 74 is same as the data type of 74.0.

Concept: undefined - undefined
Chapter:
[1]2.

Identify the output of the following code snippet:

8 = “the Truth”

print(s.capitalize())

The truth

THE TRUTH

The Truth

the Truth

Concept: undefined - undefined
Chapter:
[1]3.

Which of the following expressions in Python evaluates to True?

2>3 and 2<3

3>1 and 2

3>1 and 3>2

3>1 and 3<2

Concept: undefined - undefined
Chapter:
Advertisements
[1]4.

What is the output of the following code snippet?

s=‘War and Peace by Leo Tolstoy’

print(s.partition(“by”))

('War and Peace ', 'by', ' Leo Tolstoy')

['War and Peace ', 'by', ' Leo Tolstoy']

('War and Peace ', ' Leo Tolstoy')

['War and Peace ', ' Leo Tolstoy']

Concept: undefined - undefined
Chapter:
[1]5.

What will be the output of the following statement?

print(“PythonProgram”[−1:2:−2])

Concept: undefined - undefined
Chapter:
[1]6.

What will be the output of the following code snippet?

t = tuple('tuple')

t2 = t[2],

t += t2

print(t)

(‘tuple’)

(‘tuple’,‘p’)

(‘t’, ‘u’, ‘p’, ‘1’, ‘e’, ‘p’)

(‘t’, ‘u’, ‘p’, ‘1’, ‘e’)

Concept: undefined - undefined
Chapter:
Advertisements
[1]7.

Which of the following statements is true about dictionaries in Python?

A dictionary is an example of sequence data type.

A dictionary cannot have two elements with same key.

A dictionary cannot have two elements with same value.

The key and value of an element cannot be the same.

Concept: undefined - undefined
Chapter:
[1]8.

If L is a list with 6 elements, then which of the following statements will raise an exception?

L.pop (1)

L.pop (6)

L.insert(1,6)

L.insert(6,1)

Concept: undefined - undefined
Chapter:
[1]9.

What will be the output of the following code?

def f1(a,b=1):

     print(a+b,end='-')

c=f1(1,2)

print(c,sep='*')

3−2

3−2*

3−None

3*None

Concept: undefined - undefined
Chapter:
[1]10.

Consider the statement given below:

f1 = open(“pqr.dat”,“______”)

Which of the following is the correct file mode to open the file in read only mode?

a

rb

r+

rb+

Concept: undefined - undefined
Chapter:
[1]11.

State whether the following statement is True or False:

In Python, Logical errors can be handled using try...except...finally statement.

Concept: undefined - undefined
Chapter:

Other Solutions



































Video TutorialsVIEW ALL [2]

Submit Question Paper

Help us maintain new question papers on Shaalaa.com, so we can continue to help students




only jpg, png and pdf files

CBSE previous year question papers Class 12 Computer Science (Python) with solutions 2025 - 2026

     CBSE Class 12 Computer Science (Python) question paper solution is key to score more marks in final exams. Students who have used our past year paper solution have significantly improved in speed and boosted their confidence to solve any question in the examination. Our CBSE Class 12 Computer Science (Python) question paper 2026 serve as a catalyst to prepare for your Computer Science (Python) board examination.
     Previous year Question paper for CBSE Class 12 Computer Science (Python)-2026 is solved by experts. Solved question papers gives you the chance to check yourself after your mock test.
     By referring the question paper Solutions for Computer Science (Python), you can scale your preparation level and work on your weak areas. It will also help the candidates in developing the time-management skills. Practice makes perfect, and there is no better way to practice than to attempt previous year question paper solutions of CBSE Class 12.

How CBSE Class 12 Question Paper solutions Help Students ?
• Question paper solutions for Computer Science (Python) will helps students to prepare for exam.
• Question paper with answer will boost students confidence in exam time and also give you an idea About the important questions and topics to be prepared for the board exam.
• For finding solution of question papers no need to refer so multiple sources like textbook or guides.
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×