Page 1
2026
SAMPLE / MODEL
PAPERS
NCERT BASED
PRACTICE PAPERS
DOWNLOAD PDF
FOR
CBSE BOARD
AND
STATE BOARDS
Page 2
Class: XI Session: 2025-26
Computer Science (083)
Annual Exam Practice Paper
Time Allowed: 3 hours Maximum Marks:70
General Instructions:
• Please check this question paper contains 37 questions
• This paper is dived into 5 sections, A, B, C, D and E.
• All questions are compulsory.
• Section A consists of 21 questions (1 to 21). Each question carries 1 mark.
• Section B consists of 7 questions (22 to 28). Each question carries 2 marks.
• Section C consists of 3 questions (29 to 31). Each question carries 3 marks.
• Section D consists of 4 questions (32 to 35). Each question carries 4 marks.
• Section E consists of 2 questions (36 to 37). Each question carries 5 marks.
• All programming questions are to be answered using Python Language only.
Q. No. Question Marks
SECTION A
1. State True or False. 1
“Python identifiers must begin with an alphabet or an underscore”
2. Which of the following is an immutable data type in Python? 1
a) List b) Dictionary
c) Tuple d) None of these
3. What will be the output of the following code: 1
print('hELLo'.capitalize())
a) Hello b) HeLlO
c) hELLO d) hElLo
4. What is the output of the following code: 1
x,y = 5,2
print(x // y)
a) 2.5 b) 2
c) 3 d) Error
Page 1 of 9
Page 3
5. Fill in the blank: 1
To use the ceil() function, __________ module needs to be imported.
6. Which function is used to remove an element from a list based on its 1
value?
a) pop() b) remove()
c) del d) clear()
7. What will be the output of the given python code? 1
T = (10, 20, 30, (40, 50))
print(len(T))
a) 5 b) 4
c) 3 d) Error
8. Which of the following is an example of primary memory? 1
a) Hard Disk b) RAM
c) Pen Drive d) CD-ROM
9. What will be the output of “ab” * 2? 1
a) ab2 b) abab
c) ab2 d) aabb
10. Which of the following is a good social media etiquette? 1
a) Sharing fake news
b) Respecting others’ privacy
c) Posting without thinking
d) Trolling others
11. Google Chrome is an example of: 1
a) Operating System b) Utility Software
c) Programming Tool d) Application Software
12. Copyright protects: 1
a) Inventions and discoveries
b) Brand names and logos
c) Original creative works like music, art, or writing
d) Industrial designs only
Page 2 of 9
Page 4
13. The operator is checks for __________. 1
a) Equality of value b) Identity (same object in memory)
c) Membership in a list d) Assignment
14. Logical errors are detected __________. 1
a) At compile time b) At runtime
c) Before execution d) During testing (give wrong output)
15. What will be the output of "Hello" + "World"? 1
a) HelloWorld b) Hello World
c) "Hello" + "World" d) Error
16. not((True or False)and(False)) evaluates to: 1
a) False b) True
c) Error d) not
17. Which of the following can increase your digital footprint? 1
a) Posting photos on social media
b) Browsing privately
c) Clearing cookies regularly
d) Using incognito mode
18. What will be the output of the following python code: 1
a=10
while True:
a=a+1
break
print(a-1)
a) 10 b) 11
c) 9 d) ValueError
Page 3 of 9
Page 5
19. Fill in the blanks with the appropriate operator to obtain the output. 1
20 ___ 7 = 2
a) // b) **
c) / d) %
Assertion and Reason:
In the following questions, A statement of Assertion (A) is
followed by a statement of Reason (R). Mark the correct choice
as:
A) Both A and R are true and R is correct explanation of A
B) Both A and R are true but R is not correct explanation of A
C) A is true but R is false
D) A is false but R is true
20. Assertion (A): Plagiarism is the act of copying someone else's work 1
or ideas and presenting them as your own.
Reason (R): It is a form of academic dishonesty and can lead to
serious consequences.
21. Assertion (A): ROM is a volatile memory. 1
Reason (R): The contents of ROM are lost when the power supply
is switched off.
SECTION B
22. a) Consider two lists – L1 = [1, 2, 3] and L2 = [4, 5, 6]. 2
What will be the content of L1 and L2 after executing the
following command?
L1.extend(L2).
b) Consider the following code and predict the output:
T = (10, 20, 30)
print(T * 2)
Page 4 of 9
Page 6
23. Write a Python program to take two numbers as input. If both 2
numbers are greater than 10, print their average. Otherwise, print the
maximum of the two numbers.
24. What will be the output of following statement: 2
7-3//8+9**1-6
OR
What does the following code print?
if not False:
print(“Earth”)
else:
print(“Mars”)
25. Fill in the blanks: 1x2=2
(a) (73)10 = ( __ )2
(b) ( __ )8 = (ABC)16
26. Differentiate between Trademark and Patent. 2
27. Write a program in python that takes a number as an input from the 2
user and check whether the number is positive, negative or zero.
OR
Write a program in python that takes a string as an input from the
user and check whether it’s a palindrome or not.
28. You receive an email that looks like it’s from your bank, asking for 2
your password and ATM PIN. Which type of cybercrime is this?
OR
A hacker secretly listens to private video calls between two people.
Which cybercrime is this?
Page 5 of 9
Page 7
SECTION C
29. Write a program in python to print the following pattern using a loop: 3
A
BC
CDE
DEFG
EFGHI
OR
Write a program in python to print the following pattern using a loop:
54321
4321
321
21
1
30. a) Your computer becomes slow, and many unwanted pop-up ads 1+2=3
start appearing. Which type of malware could be causing this?
b) Ravi copies paragraphs from a website and pastes them into his
school project without mentioning the source. Which law or
principle is being violated?
OR
Meena downloads a song from a website and uses it as background
music in her YouTube video without permission from the original
artist.
a) What kind of IPR violation has Meena committed?
b) How could she have used the song legally?
Page 6 of 9
Page 8
31. What will be the output of following python code: 1x3=3
N=50
for i in range(10,N+1):
a=str(i)
if a==a[::-1]:
print(i, end=",")
OR
How many time the loop will iterate?
(i) for i in range(30,20):
(ii) for i in range(-6,5,-2):
(iii) while 10:
SECTION D
32. (i) Differentiate between continue and break keyword. 1+3=4
(ii) Write a Python program to count the frequency of each word
in a given sentence using a dictionary.
Ex: Input = “Python is fun and Python is easy”
Output = {Python: 2, is: 2, fun: 1, and: 1, easy: 1}
OR
Fill in the blanks:
(i) The slicing s[2:5] returns characters from index __________
to __________.
(ii) The function used to add an element at the end of a list is
__________.
(iii) To remove the last item from a list, we use __________.
(iv) The function __________ is used to convert all characters in
a string to uppercase.
Page 7 of 9
Page 9
33. a) Write a Python program to remove duplicates from a list given 2+2=4
as an input by the user.
b) Write a Python program that accepts a year as an input from the
user and checks whether it is a leap year or not.
Note: If a year is divisible by 400 then it’s a leap year. If it’s not,
then it must be divisible by 4 but not by 100 to be a leap year.
34. Write a program in python that takes a tuple T of integers as an input 1x4=4
from the user and perform the following tasks:
(i) Display the tuple in descending order.
(ii) Display the sum and average.
(iii) Update the last element of tuple to 78.
(iv) Display the total number of elements in the tuple.
35. Answer the following questions in one word/line. 1x4=4
(i) Rohan uses public Wi-Fi to do online shopping and banking
transactions. Which cyber safety rule is he ignoring and what
could happen?
(ii) Creating fake accounts to insult someone is an example of
cyber trolling. (True/False)
(iii) A local business uses the Nike logo for its shoes. Which IPR
has been violated?
(iv) Deleting a post from social media completely removes it from
the internet forever. (True/False)
Page 8 of 9
Page 10
SECTION E
36. Write a program in Python that takes a sentence as an input from the 1+1+1+2
=5
user and performs the following analyses:
a) Calculate and print the total number of words in the sentence.
b) Calculate and print the number of uppercase letters (A-Z) in
the sentence.
c) Calculate and print the number of digits (0-9) in the sentence.
d) Print all the lines that starts with a vowel and ends with a
consonant.
37. John, a student of class 11 is designing a circuit diagram. Help him 1 x 5 =5
to get the output out of it at different stages.
(i) What will be the output at 1?
(ii) What will be the output at 2?
(iii) What will be the output at 3?
(iv) What will be the output at 4?
(v) What will be the final output of the circuit if input at X, Y and
Z is 0.
Page 9 of 9