CS - QP - XI - Set 2
CS - QP - XI - Set 2
SECTION A
1. A worm is 1
a) A slimy pink thing that lives in dirt
b) A piece of malicious code that makes copies of themselves and
spread through without human interaction.
c) An unsolicited email message
d) None of the the above
17. Assertion (A) : To protect one’s intellectual property rights one can get 1
information copyrighted or patented or use trademarks.
Reason (R) : Once information is copyrighted/patented, information must
not be exchanged without the consent of its owner
Section D
31. Read the passage given below and answer the questions. 1+1+1+1+1+
Source: NCERT Class XI Computer Science book
Our digital footprint can be created and used with or without our
knowledge. It includes websites we visit, emails we send, and any
information we submit online, etc., along with the computer’s IP
address, location, and other device specific details. Such data could be
used for targeted advertisement or could also be misused or exploited.
Thus, it is good to be aware of the data trail we might be leaving
behind. This awareness should make us cautious about what we write,
upload or download or even browse online.
b. Consider a string Str. Choose the correct option that will produce
the output given below::
Str=”I am enjoying learning python programming”
i. print(Str.upper()
ii. print(Str.lower())
iii. print(Str.title())
iv. print(Str.capitalize())
c. What will be the output of the following Python code snippet?
SECTION E
34 L1=[2,3,4,5,6] 2+2
or
del(L1[2:4]
print (L1[ ])
35 Answer the following questions on the basis of the code below: 2+2
name_1 = “RAJAT”
for i in range (0, len(name_1)+1):
print(name_1[0:i])
ii. Can this be written using while loop? If yes, rewrite the above code
using while loop.
+