KENDRIYA VIDYALAYA SANGATHAN
Subject: Computer Science(083)
Time: 3:00 Hours Class XI Max. Marks: 70
Instructions :
• Question num 1 to 18 are of 1 mark each.
• Question num 19 to 27 are of 2 marks each.
• Question num28 to 34 are of 3 marks each.
• Question num 35 to 36 are of 4 marks each.
• Question num 37 is of 5 marks .
1. Find the invalid identifier from the following
a. none b. address [Link] d. Roll No
[Link] a Tuple tup1= (10, 20, 30, 40, 50, 60, 70, 80, 90).
What will be the output of print (tup1 [3:7:2])?
a. (40,50,60,70,80)
b. (40,50,60,70)
c. [40,60]
d.(40,60)
3. The return type of the input() function is
a. string b) integer c)list d).tuple
4. Which of the following symbol is used in Python for single line comment?
a) / b)/* c) // d)#
5. How will you convert a string to an integer in python?
6. The physical components of computer system are known as
a) Software b)Humanware c)Hardware d)Operating System
7. 8 bits makes
A. 1 Byte B. 1 KB C. 1 MB D.1 Nibble
[Link] the mutable data types?
List Tuple String All of the above
9. What will be the output of the following code segment?
a,b=8,7b,a=a,b print(a,”+”,b)
a. 8+ 7 b.15 c. 7+8 d)Error
10. Select appropriate operator to calculate reminder (modulus)from the following:
a) / b)// c)% d)Both a) & b)
11Jatin wants to terminates the while loop at the end of program. Suggest him a suitable keyword from the
following:
a) terminate b)continue c)break d)stop
120
12Observe the given code and select an appropriate output:
a=’hello’
b=str(30)
print(a+b)
a) h b)30 c)hello d)hello30
13 Dinesh wants to access a second last list element of list object L. Help him to select an appropriate option
to accomplish his task.
b. L[2] b)L[len(l)-2] c)L[-2] d)L-2
14What will be the output:
fori in range(20,30,2):
print(i)
15Observe the given declarations:
i. d={}
ii. d=dict()
iii. d=Dict()
iv. d=[Link]()
Which of the following are correct ways to create an empty dictionary?
a)i and ii b)i,iii and iv c) i,ii and iv d)i and iii
16Which act protects against cybercrime in India?
a) Indian IT Act
b) India Computer Security Act
c) Indian Cyber Law
d) Indian Data Security Law
17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
(A) Both (A) and (R) are true and (R) is the correct explanation (A)
(B) Both (A) and (R) are true and R is not the correct explanation (A)
(C) (A) is True but (R) is False
(D) (A) is false but (R) is True
17. Assertion(A): Data submitted online intentionally known as active digital foot print.
Reasoning(R): Active digital footprints includes emails, replies, comments or posts made on different
websites or apps.
18. Assertion(A): Python lists allows to modify their elements by indexes easily.
Reasoning(R): Python lists are mutable.
121
19 Which of the following are hardware and software?
(i) Capacitor (ii) Internet Explorer (iii) Hard disk (iv) UNIX
20 Draw logical circuit for the following equation:
a)A.(B+C’ ) b)AB’ + C’
21 Find the output of the following:
word=’green vegetables’
print([Link](‘g’,2))
print([Link](‘tab’,2,15))
22 Differentiate between append() and extend() functions of list.
23. Create a dictionary to assign day number as key and day name as value.
24. List any four benefits of e-waste management.
OR
Mention any four net etiquettes.
25 Rewrite the following code in python after removing all syntax error(s). Underline each correction done
in the code.
num= input(“Enter a number”)
for in range[1,num]:
sum = + i
print(“ Sum of series” sum)
print(“Thank You”)
26. Name the input or output device used to do the following:
i) To make hard copy of a text file ii)To enter audio-based command
27. Convert the following numbers system
(i) (25)10 = ( ?)2 (ii) (110110101 )2 =( ?)8
28. Whatis the difference between List, Tuple and dictionary?
29 Explain Cyber Bullying, Eavesdropping, Malware.
30Deepak has downloaded an image from internet and used it in his presentation. But the image has copyright
does not permit the free useit.
a) What do you mean by IPR?
b) Which type of violation of IPR has been done by Deepak here?
c) Can he use this image without any problem? Explain.
31Write the output of the following:
122
a) num1 = 4
num2 = num1 + 1
num1 = 2
print (num1, num2)
b) num1, num2 = 2, 6
num1, num2 = num2, num1 + 2
print (num1, num2)
c) num1, num2 = 2, 3
num3, num2 = num1, num3 + 1
print (num1, num2, num3)
32Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of:
i. print(mySubject[0:len(mySubject)])
ii. print(mySubject[-7:-1])
iii. print(mySubject[::2])
33. Write a program to accept n number of elements and add them into a list. Find the sum of all values
present in the list.
34Write a program to create a dictionary as follows: d={‘empno’:123,’ename’:’Rohan’,’salary’:45000}
Print the names of employees who earns more than 20000 salary.
35Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statements:
i. print([Link](45))
ii. print([Link](45))
iii. print(tuple1 + tuple2)
iv. print(len(tuple2))
v. print(max(tuple1))
vi. print(min(tuple1))
vii. print(sum(tuple2))
viii. print(sorted(tuple1))
print(tuple1)
123
36. a)Convert the following for loop code in to while loop.
for x in range (1,100,2):
print(x)
b)What will be the value of following code
print(17%3)
print(21//6)
[Link] the type of cyber crime for the following situations:
1. Sabhya quickly downloads a 2-minute clip from the internet explaining the concept of dictionary in
Python. Using video editor, he adds the text “Prepared by Sabhya” in the downloaded video clip. He
then emails the modified video clip to Ahaana. This act of Sabhya is an example of:
(a) Fair use (b) Hacking (c) Copyright infringement (d) Cybercrime
2. Ms. Kavita complains that her debit/credit card is safe with her still somebody has done shopping /ATM
transaction on this card.
3. A person complains that somebody has created a fake profile of Facebook and defaming his/her character
with abusive comments and pictures.
4. Ravi received an email from First Generic Bank (as shown below). On clicking the link, he was taken to a
site designed to imitate an official looking website. He uploaded some important information on it.
5. After a fight with your friend, You created an embarrassing picture of your friend and uploaded
124
KENDRIYA VIDYALAYA SANGATHAN
MARKING SCHEME
Subject: Computer Science (083)
Time: 3:00 Hours Class XI Max. Marks: 70
Instructions :
• Question num 1 to 18 are of 1 mark each.
• Question num 19 to 27 are of 2 marks each.
• Question num 28 to 34 are of 3 marks each.
• Question num 35 to 36 are of 4 marks each.
• Question num 37 is of 5 marks .
[Link] identifier d. Roll No
2.d.(40,60)
[Link]
4. d)#
[Link] int( ) function
8. c)Hardware
9. A. 1 Byte
[Link]
9. c. 7+8
10. c)%
11c)break
12 d)hello30
13c)L[-2]
14the output:
20
22
24
26
28
15 a)i and ii
16 a)Indian IT Act
17 (A)
18 (A)
19
Hardware :(i) Capacitor (iii) Hard disk
Software : (ii) Internet Explorer (iv) UNIX
125
20
21 the output:
8
10
22
Append() Extend()
Append() allows to insert a single element to the Extend() allows to insert multiple elements at a
list at a time. time.
Append() accepts a single value as a parameter. Extend() accepts lists as a parameter.
Example: L=[2,4,6] Example: L=[2,4,6]
[Link](8) [Link]([3,2,5])
23
d={1:’Monday’,2:’Tuesday’,3:’Wednesday’,4:’Thursday’, 5:’Friday’,6:’Saturday’,7:’Sunday’}
24
• Saves the environment and natural resources
• Allows for recovery of precious metals
• Protects public health and water quality
• saves landfill space
OR
• No copyright violation
• Share the expertise with others on the internet
126
• Avoid teasing other/cyber bullying
• Respect other’s privacy and diversity
.
25
num= int (input(“Enter a number”))
for in range(1,num):
sum += i
print(“ Sum of series”, sum)
print(“Thank You”)
26. i) Printer ii) Mic
27.
(i) (25)10 = ( 11001)2 (ii) (110110101 )2 =( 665)8
28.
A list is a collection of ordered data.
A tuple is an ordered collection of data.
A dictionary is an unordered collection of data that stores data in key-value pairs.
30
Any insulting, degrading or intimidating online behaviour like repeated posting of rumours, giving threats
online, posting the victim’s personal information, sexual harassment or comments aimed to publicly ridicule
a victim is termed as cyber bullying.
Eavesdropping is the act of secretly or stealthily listening to the private conversation or communications
of others without their consent.
Malware, or malicious software, is any program or file that is intentionally harmful to a computer,
network or server
30
a) Intellectual property refers to the inventions, literary and artistic expressions, designs and symbols, names
and logos. The ownership of such concepts lies with the creator, or the holder of the intellectual property.
b) Copyright
c) Yes, he can use this image legally with written permission of user.
31 Write the output of the following:
a) 2 5
b) 6 4
c) NameError: name 'num3' is not defined
32:
i. Computer Science
ii. Scienc
iii. Cmue cec
33.
L=[ ]
127
n=int(input (“enter how many numbers?”))
for i in range (0,n):
val=int(input(“enter value”))
[Link](val)
print(“The sum is “, sum(L))
34
d={‘empno’:123,’ename’:’Rohan’,’salary’:45000}
if d[‘salary’]>20000:
print(d[‘ename’])
35
i. 2
ii. 3
iii. (23, 1, 45, 67, 45, 9, 55, 45, 100, 200)
iv. 2
v. 67
vi. 1
vii. 300
viii. [1, 9, 23, 45, 45, 45, 55, 67]
(23, 1, 45, 67, 45, 9, 55, 45)
36. a) x=1
while (x<100):
print(x)
x=x+2
b) 2
3
[Link] the type of cyber crime for the following situations:
1. (c) 2. Hacking 3. Identity Theft 4. Phishing 5. Cyber Bullying
128