Class XI & XII Computer Science: Python

11th Class CBSE Board Computer Science (083) Periodic Test-II Examination 2025-26

11th Class CBSE Board Computer Science (083) Periodic Test-II Examination (2025-26)

St Margaret Sr Sec. School, Prashant Vihar, Sector-14, Rohini, Delhi-110085

Class: XI
Subject: Computer Science (083)
Set: SET-A
Time Duration: 01 Hour
Maximum Marks: 25

General Instructions: Class XI Computer Science Exam 2025-26

  • This question paper contains four sections: A, B, C and D. All questions are compulsory.
  • Section A has 6 questions of 1 mark each.
  • Section B has 3 very short answer questions of 2 marks each.
  • Section C has 3 short answer questions of 3 marks each.
  • Section D has 1 long answer/application-based question of 5 marks.

SECTION – A (6 × 1 = 6 Marks)

Q1. Identify the invalid Python statement from the following:

  • a) D = dict()
  • b) e = { }
  • c) f = [ ]
  • d) g = dict{ }

Q2. Assume you are given two lists: L1 = [1, 2, 3, 4, 5] and L2 = [6, 7, 8, 9].
Select the correct option to create:

L1 = [1, 2, 3, 4, 5, 6, 7, 8, 9] and L1 = [1, 2, 3, 4, 5, [6, 7, 8, 9]]

  • a) L2.append(L1)     L2.extend(L1)
  • b) L1.extend(L2)     L1.append(L2)
  • c) L1.append(L2)     L1.extend(L2)
  • d) L2.extend(L1)     L2.append(L1)

Q3. Identify the correct form of declaration of dictionary:

  • a) Day = (1: ‘Monday’, 2: ‘Tuesday’, 3: ‘Wednesday’)
  • b) Day = {1: ‘Monday’, 2: ‘Tuesday’, 3: ‘Wednesday’}
  • c) Day = [1: ‘Monday’, 2: ‘Tuesday’, 3: ‘Wednesday’]
  • d) Day = {1: ‘Monday’, 2: ‘Tuesday’, 3: ‘Wednesday’}

Q4. If L1 = [20, 50, 100, 200], then it print(50 in L1) will print:

  • a) 50
  • b) False
  • c) True
  • d) None of the above

Q5. Identify the output of the following code:

D1 = {1: "One", 2: "Two", 3: "C"}
D2 = {2: "Four", 5: "Five"}
D1.update(D2)
print(D1)
  • a) {4: “Four”, 5: “Five”}
  • b) {1: “One”, 2: “Two”, 2: “Four”, 3: “C”, 5: “Five”}
  • c) {1: “One”, 2: “Two”, 3: “C”}
  • d) {1: “One”, 2: “Four”, 3: “C”, 5: “Five”}

Q6. If List = [10, 20, 30], then >>> List * 2 the result is:

  • a) [10, 20, 30]
  • b) List
  • c) [20, 40, 60]
  • d) [10, 20, 30, 10, 20, 30]

SECTION – B (3 × 2 = 6 Marks)

Q7. Identify and underline the errors in the following code segment:

a = ["Umang", "Usman", "Utkarsh", "Umedh"]
for x in range(len(a)):
    print(a(x))

Q8. Consider the list A = [3, 6, 2, 8, 10, 12, 23, 33, 16, 6, 2, 1].
Write the output of the following:

  • a) print(len(A))
  • b) print(A[3::-2])
  • c) print(A[:3])
  • d) print(len(A[::-3]))

Q9. Differentiate between the following:

  • a) clear() and del
  • b) Key and Index
  • c) sort() and sorted()

SECTION – C (3 × 3 = 9 Marks)

Q10. Write a program to accept a number. If it is positive, print its factorial value.

Q11. Write Python statements using built-in functions only:

  • a) Insert element 200 at the third position in list L1.
  • b) Arrange data in descending order of list L without creating a new list.
  • c) Delete the last element of the list subj.
  • d) Count the number of times element 60 exists in the list marks.
  • e) Find the highest element of the list LST.

SECTION – D (Case-based Question – 5 Marks)

Q12. Write a menu-driven program to accept a list containing integers and, according to the user’s choice (in both cases, also print the original list):

a) Reposition all elements of the list by shifting each of them one position to the left and moving the first element to the last position.
Example: 22 25 70 32 12 → 25 70 32 12 22

b) Print only the two-digit numbers from the list.

Check Also

11th Class Physics NCERT Textbooks

Class: XI Physics PT–II EXAMINATION 2025–26 ST. MARGARET SR. SEC. SCHOOL

ST MARGARET SR SEC. SCHOOL PT–II EXAMINATION 2025–26 Subject: Physics Class: XI Set: SET – …