Class 11
Class 11
Annual Examinations
Class - XI
Computer Science(083)
Maximum Marks: 70 Time Allowed: 3 hours
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 1 mark each.
4. Section B has 07 Very Short Answer type questions carrying 2 marks each.
5. Section C has 05 Short Answer type questions carrying 3 marks each.
6. Section D has 03 Long Answer type questions carrying 5 marks each.
7. Section E has 02 questions carrying 4 marks each.
8. All programming questions are to be answered using Python Language only.
SECTION A
a. None
b. 1
c. False
d. True
#1/5
7 The operator ‘and’ is a ____________operator in Python ? 1
a. Logical
b. Relational
c. Arithmetic
d. Augmented
8 Which of the following outputs is the correct option for the code shown here ? 1
STR='TEXT CONTENT'
print(STR.strip('T'))
a. EX CONEN
b. EX CONTEN
c. EXT CONTEN
d. TEXT CONTEN
#2/5
15 ________________are visitors who leave inflammatory comments in public 1
comment sections.
a. Cyber Trolls
b. Hackers
c. Digital footprints
d. Confidentiality
a. 25
b. 26
c. 27
d. 26.5
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct
choice as
a. A is True and R is the correct explanation for A
b. A is True but R is not the correct explanation for A
c. A is True but R is False
d. A is False but R is True
Reason (R): The split() method returns a list of words separated at the
parameter sent.
SECTION B
19 Rewrite the following logic using a while loop without making any change in the 2
expected output:
L=[3]
for I in range(5):
L.append((I+1)*5)
print(L)
20 Rewrite the following code after removing all the syntax errors with each of the 2
corrections underlined:
n=int(input("Enter number to check :: ")
for i in range (2, n//2):
if n%i=0:
print("Number is not prime \n")
break
else
print("Number is prime \n’)
#3/5
22 Write the output of the Python code given below: 2
L=[123,155,"b",128,160,"A"]
for R in range(1,len(L)):
if not(str(L[R]).isalpha()) and L[R]%10==12:
L[R]= L[R+1]
elif str(L[R]).isalpha():
L[R]=ord(L[R])+2
else:
print(L[R],end=" ")
print()
print(L)
SECTION C
26 What is Data Protection? Give any two ways to protect your data online. 3
OR
Define the following terms :
a) Ransomware
b) Cyber Crime
27 Give any three basic rules of netiquette to avoid damaging your online as well as 3
offline relationships.
29 Write a Python code to accept a number and display its factors. The process 3
should continue till the user wants.
For Example
Enter N: 10
Factors: 1,2,5,10
#4/5
30 Write a python program to create a dictionary STUDENT containing StudentNames 3
as keys and corresponding Marks as values. The program should create a list
STUD, of those StudentNames for which Marks is less than 33.
OR
Write a Python code to accept a string from the user , find and display the counts
of special characters, alphabets and digits present in it.
SECTION D
33 Convert the following from one number system to another ( show the complete 5
working ) :
a. (512)10 = ( )2
b. (10010111)2 = ( )10
c. (451)8 = ( )16
d. (111001101)2 = ( )8
e. (175)10 = ( )8
SECTION E
34 Write single line Python commands to perform each of the following operations: 4
QUOTE="Life is beautiful"
● Display the length of the string QUOTE.
● Display the reverse of the string QUOTE.
● Display the count of 'i' from the string QUOTE
● Display the substring 'beauti' from the string QUOTE.
35 Write a python code to accept values of X as float and N as int, find and display 4
the sum of following series:
(a) 1 + 4 + 7 + ... upto N
(b) 1/X1 + 1/X2+ 1/X3... upto Nth Terms
#5/5