Thursday , March 19 2026
Class XI & XII Computer Science: Python

11 Class Computer Science Pre-Final Exam 2025-26: St. Margaret School, Rohini, New Delhi

11th Class CBSE Pre-Final Examination 2025–26 St. Margaret Sr. Sec. School, Prashant Vihar, Sector 14, Rohini, Delhi-85 India

School Name: St. Margaret Sr. Sec. School, D-Block, Prashant Vihar, Sector 14, Rohini, New Delhi  110085 India
Class: XI Standard (CBSE)
Subject: Computer Science (083)
Time Duration: 03 Hours
Maximum Marks: 70

General Instructions:

Important Instructions: The question paper is divided into five sections A, B, C, D and E.

  1. Section A consists of 21 questions (Question 1 to 21). Each question carries 1 mark.
  2. Section B consists of 7 questions (Question 22 to 28). Each question carries 2 marks.
  3. Section C consists of 3 questions (Question 29 to 31). Each question carries 3 marks.
  4. Section D consists of 4 questions (Question 32 to 35). Each question carries 4 marks.
  5. Section E consists of 2 questions (Question 36 to 37). Each question carries 5 marks.
  6. All questions are compulsory.
  7. Use of calculators is not permitted.
  8. Read the questions carefully before answering.

Section – A

Question 01. Identify the mutable data type.

  1. Tuple
  2. String
  3. List
  4. Set

Question 02. Identify the Python statement used to repeat a block of code until a condition becomes false.

  1. for
  2. while
  3. if
  4. if – elif

Question 03. Consider the given expression: print(19 < 11 and 29 > 19 or not 75 > 30)

Identify the correct output of the given expression.

  1. True
  2. False
  3. Null
  4. No output

Question 04. Identify the odd one out.

  1. boolean
  2. float
  3. int
  4. meter

Question 05. Identify the output of the following Python code:

str = “Soft Skills”
print(str[-3::-3])

  1. 1Sf
  2. Stkl
  3. StKi
  4. 1

Question 06. ________ unit of the CPU coordinates all activities of the computer.

  1. ALU
  2. CU
  3. MU
  4. Register

Question 07. ________ is the output of the expression: “5” * 3

  1. 15
  2. “15”
  3. “555”
  4. Invalid

Question 08. Cyber safety practice where data is changed before sending is called ________.

  1. Firewall
  2. Encryption
  3. Decryption
  4. Typo

Question 09. The lowest-level programming language is ________.

  1. Programming language
  2. Machine language
  3. Assembly language
  4. SQL

Question 10. Identify the cybercrime out of the following.

  1. Digital Footprints
  2. Phishing
  3. Hypertext
  4. Trojan Horse

Question 11. Which of these is an OS?

  1. Chrome
  2. MS Word
  3. Linux
  4. WhatsApp

Question 12. Identify the one known as Online harassment.

  1. Cracking
  2. Hacking
  3. Cyberbullying
  4. Phishing

Question 13. The ________ function returns the absolute value.

  1. truncate()
  2. abs()
  3. round()
  4. mod()

Question 14. Find the output of the given Python code.

st = “Waterskiing is thrilling!”
print(st.split(” “))

  1. [‘Waterskiing’, ‘is’, ‘thrilling!’]
  2. [‘Watersk’, ‘ng’, ‘s thr’, ‘ll’, ‘ng!’]
  3. [‘Watersk’, ‘i’, ‘ng’, ‘s thr’, ‘ll’, ‘ng!’]
  4. Error

Question 15. ________ method inserts value at a specific index.

  1. +
  2. extend()
  3. append()
  4. insert()

Question 16. Given an object

obj1 = (10, 20, 30, 40, 50, 60, 70, 80, 90).
Identify the output of:
print(obj1[3:7:2])

  1. (40, 50, 60, 70, 80)
  2. (40, 50, 60, 70)
  3. (40, 50, 60)
  4. (40, 60)

Question 17. Which of the following is an invalid datatype in Python?

  1. Set
  2. None
  3. Integer
  4. Real

Question 18. Given the following dictionaries:

dict_exam = {“Exam”:”AISSCE”, “Year”:2025}
dict_result = {“Total”:500, “Pass_Marks”:165}
Which statement will merge the contents of both dictionaries?

  1. dict_exam.update(dict_result)
  2. dict_exam + dict_result
  3. dict_exam.add(dict_result)
  4. dict_exam.merge(dict_result)

Question 19. Which of the following statement(s) would give an error after executing the following?

S = “Welcome to class XII” # Statement 1
print(S) # Statement 2
S[0] = ‘Q’ # Statement 3
S = S + “Thank you” # Statement 4

  1. Statement 3
  2. Statement 4
  3. Statement 5
  4. Statement 4 & 5

Question 20. Read the following statements:

Assertion (A) and Reason (R). Choose the correct alternative.
Assertion (A): The expression (1, 2, 3, 4).append(5) in Python will modify the original sequence datatype.

Reason (R): The append() method adds an element to the end of a list and modifies the list in place.

  1. Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A).
  2. Both Assertion (A) and Reason (R) are true, but Reason (R) is not the correct explanation of Assertion (A).
  3. Assertion (A) is true, but Reason (R) is false.
  4. Assertion (A) is false, but Reason (R) is true.

Question 21. Read the following statements: Assertion (A) and Reason (R).
Choose the correct alternative from those given below:

(a) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A).
(b) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the correct explanation of Assertion (A).
(c) Assertion (A) is true, but Reason (R) is false.
(d) Assertion (A) is false, but Reason (R) is true.

Assertion (A): List is an immutable data type.

Reason (R): When an attempt is made to update the value of an immutable variable, the old variable is destroyed and a new variable is created by the same name in memory.

Section – B

Question 22. Write a Python statement to accomplish the following tasks using built-in functions: (2)

You have a list named Numbers and want to insert an element 150
at the second position and then print the list in reverse order.

Question 23. Write the output of the following: (2)

a) Given is a Python string declaration:
myexam = “@@CBSE Examination 2022@@”
print(myexam[::-2])

b) my_dict = {“name”:”Aman”, “age”:26}
my_dict[“age”] = 27
my_dict[“address”] = “Delhi”
print(my_dict.items())

Question 24. Predict the output of the Python code given below: (2)

tuple1 = (11, 22, 33, 44, 55, 66)
list1 = list(tuple1)
new_list = []

for i in list1:
if i % 2 == 0:
new_list.append(i)

new_tuple = tuple(new_list)
print(new_tuple)

Question 25. Write a program in Python that accepts a list L and a number n.
If the number n exists in the list, it should be removed.
If it does not exist, print a message saying “Element not found”. (2)

Question 26. Predict the output of the Python code given below: (2)

emp = {
“Arv”: (85000, 90000),
“Ria”: (78000, 88000),
“Jay”: (72000, 80000),
“Tia”: (80000, 70000)
}

selected = []

for name in emp:
salary = emp[name] average = (salary[0] + salary[1]) / 2
if average > 80000:
selected.append(name)

print(selected)

Question 27. Observe the following tuple and answer the questions that follow: (2)

t1 = (70, 56, “Hello”, 22, 2, “Hi”, “The”, “World”, 3)

(a) t1[2 : 4] (b) t1[-6]

Question 28. Predict the output of the code given below: (2)

s = “welcome2cs”
n = len(s)
m = “”

for i in range(0, n):
if (s[i] >= ‘a’ and s[i] <= ‘m’): m = m + s[i].upper() elif (s[i] >= ‘n’ and s[i] <= ‘z’):
m = m + s[i – 1] elif (s[i].isupper()):
m = m + s[i].lower()
else:
m = m + ‘&’

print(m)

Section – C

Question 29. Explain the following, with the help of examples: (3)

  1. keyword break
  2. update()
  3. capitalize()

Question 30. Explain the following terms with reference to Cyber Security: (3)

  1. Trojan Horse
  2. Ransomware
  3. Software Piracy

Question 31. Why do we use comments in a PYTHON program? Explain different methods of giving comments in a program. (3)

Section – D

Question 32. Differentiate between the following: (4)

  1. ALU and CPU
  2. Conditional and Unconditional loops

Question 33. How are Lists different from Tuples? Give an example for both.
Also, why do we use nested lists? Give an example of a nested list as well. (4)

Question 34. Which string method is used to implement the following?
Write the statement for string S: (4)

  1. To count the number of characters in the string
  2. To change the first character of the string into a capital letter
  3. To check whether the given character is a letter or a number
  4. To replace all the occurrences of the old string with the new string

Question 35. (3+1)

  1. What are Digital Footprints? Explain the two types of Digital Footprints. (3)
  2. Write any two benefits of e-waste recycling. (1)

Section – E

Question 36. (3+2)

  1. Write a program in PYTHON that inputs a list of numbers and shifts all the zeros
    to the right and all non-zero numbers to the left of the list. (3)
  2. Write a program in Python that takes the dictionary PLACES and
    displays the names (in uppercase) of the places whose names are longer than
    5 characters. (2)For example, consider the dictionary:

PLACES = {
1: “Delhi”,
2: “London”,
3: “Paris”,
4: “New York”,
5: “Doha”
}

The output should be:
LONDON
NEW YORK

Question 37. Explain the following: (5)

  1. OCR
  2. Light Pen
  3. e-waste
  4. Conditional statements
  5. IN operator

Check Also

11th Class CBSE Mathematics Books

Class: XI Mathematics ST. MARGARET SR. SEC. SCHOOL PT-II EXAMINATION 2025-26

ST MARGARET SR SEC. SCHOOL PT-2 EXAMINATION 2025-26 Subject: Mathematics Class: XI Set: SET-B Time: …