CBSE Class 12 Computer Science (083) Supplementary 2025 – Python Revision Tour Questions with Answers
📘 Introduction
Are you preparing for the CBSE Class 12 Computer Science (083) Exam? 🎯
In this post, you will get Python Revision Tour questions with answers from the latest supplementary exam. This will help you understand the exam pattern, important concepts, and expected questions 📊
👉 Whether you are appearing for the supplementary exam or preparing for next year, this resource will boost your preparation 🚀
🎯 Why This Post is Important?
✅ Covers the latest supplementary exam questions
✅ Includes accurate answers with explanation
✅ Helps in last-minute revision ⏱️
✅ Focus on important Python concepts
📂 Python Revision Tour – Questions with Answers (Supplementary 2026)
- State if the following statement is True or False :
If T is a tuple and L is a list, then T+L is a valid statement in Python.
Ans: False
- Identify the output of the following code segment :
s = “an apple. a toy.”
s=s.find(‘a’,2)
print(s)
(A) 0 (B) 1 (C) 3 (D) ‘a’
Ans: (C) 3
- What is the value of the following expression?
3 + 3·00, 3**3·0
(A) [6·0, 27·0] (B) (6·0, 9·0)
(C) (6, 27) (D) (6·0, 27·0)
Ans: (D) (6·0, 27·0)
- What is the output of the following expression?
Sports=”Paralympic Games”
print (Sports.split(“m”))
(A) [‘Paraly’,’m’,’pic Ga’,’m’,’es’]
(B) (‘Paraly’,’m’,’pic Games’)
(C) (‘Paraly’,’pic Ga’,’es’)
(D) [‘Paraly’,’pic Ga’,’es’]
Ans: (D) [‘Paraly’,’pic Ga’,’es’]
- What will be the output of the following code segment?
p = list(“Session 2024–25”)
print(p[10:20:])
Ans: [‘2’, ‘4’, ‘-‘, ‘2’, ‘5’]
- Which of the following is a mapped data type?
(A) List
(B) Sets
(C) Dictionary
(D) Boolean
Ans: (C) Dictionary
- If the dictionary D1 is defined as :
D1 = {1 : ‘a’, 2 : ‘b’}
Then which of the following statements is incorrect and hence will result in an error?
(A) D1.get(1)
(B) D1.get(3)
(C) D1.del(1)
(D) D1.clear()
Ans: (C) D1.del(1)
- Which of the following list methods accepts exactly 2 parameters?
(A) append()
(B) extend()
(C) insert()
(D) pop()
Ans: (C) insert()
- State whether the following statement is True or False.
In Python, the print() evaluates the expression before displaying it on the screen.
Ans: True
- Assertion (A): Every object in Python is assigned a unique identity (ID).
Reason (R): ID remains the same for the lifetime of that object.
Ans: (A) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation for Assertion (A).
- What is the difference between = and == in Python? Give an example of each.
Ans: = is an assignment operator to assign a value to a variable,
whereas == is a relational operator to check whether two values are equal.
Example: a=5 assigns value to variable a.
a==5 returns True if a has the value 5.
- Give an example of each of the following :
(i) An expression using any one identity operator.
(ii) An arithmetic expression that uses any one augmented assignment operator.
Ans (i) Num1 = 5
print(type(Num1) is int) # Output True
OR
Num1 = False
print(type(Num1) is int) # Output False
(ii) Num1 = 5
Num1 += 5 (or any other)
- Assuming that D1 and D2 are Python dictionaries. Write the following statements using built-in functions/methods :
(a) To delete all the elements of D1.
(b) To generate a list of values of D1.
Ans: (a) D1.clear()
(b) list(D1.values())
- Assuming that D1 and D2 are Python dictionaries. Write the following statements using built-in functions/methods :
(a) To update dictionary D2 with the elements of D1.
(b) To generate a tuple of keys of D2.
Ans: (a) D2.update(D1)
(b) tuple(D2) # OR tuple(D2.keys())
- The code provided below is intended to input a positive integer from the user and display the total number of its factors.However,there are syntax and logical errors in the code. Rewrite the code after removing all the errors. Underline all the corrections made.
n = int (input(“Enter a positive integer:”)
c = 0
for i in range(n+1):
if n%i=0:
c+=1
print(c)
Ans:
n = int(input(“Enter a positive integer:”)) # Close bracket / parenthesis
c = 0
for i in range(1,n+1): # range to start at 1
if n%i == 0: # ==
c += 1 # indentation
print(c)
- Write the output on execution of the following Python code :
P = [3, 5, 7, 4]
P.insert(2,3)
P.extend([10, 6])
print(P) #Line 1
print(P.index(7)) #Line 2
print(P[ : : 2 ]) #Line 3
Ans:
[3, 5, 3, 7, 4, 10, 6] #Line 1
3 #Line 2
[3, 3, 4, 6] #Line 3
- Identify the correct possible output(s) of the following code segment.Also write the minimum and the maximum possible values of the variable b.
import random
s = “War and Peace”
a = len(s)//2
for i in range(4):
b = random.randrange(i, a)
print(s[b], end = ‘+’ )
(A) n+P+d+a+
(B) W+r+n+n+
(C) e+r+W+a+
(D) a+P+e+r+
Ans: Correct output: (B) W+r+n+n+
Minimum possible value of b is 0,
The maximum possible value of b is 5.
By Anjeev Kr Singh – Computer Science Educator
Published on : March 23, 2026 | Updated on : March 23, 2026


