Class Xi CS - Answer Key

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

CLASS XI CS

ANSWER KEY
SECTION A

1. Ram and rom


2. 10
3. American Standard Code For Information Interchange,
4. Key
5. Cookie is a packet of data that a computer receives, then sends back without changing or
altering it. 
6. Intellectual property right
7. Random
8. item
SECTION B
9. i) 00100110 ii) ( 681)10
10. Circuit drawing
11. Logic gate – Boolean concept
AND – all one will give one output
Otherwise zero
12. Explain the concept of tuple. Immutable concept – not changeable
13. No, lists are mutable
14. # list of numbers
list1 = [10, 20, 4, 45, 99]
 
# sorting the list
list1.sort()
 
# printing the first element
print("Smallest element is:", *list1[:1])

15. No. error will come for different datatypes.


16. For I in range ( 10,21,2):
print I
17. Use Passwords and Change Them Regularly
18. Spam. Spam is one of the most common security threats. ...
Pharming. ...
Phishing. 
19. E-waste is a popular, informal name for electronic products nearing the end of their "useful
life." Computers, televisions, VCRs, stereos, copiers, and fax machines are common
electronic products. Many of these products can be reused, refurbished, or recycled.
20. String and singleton tuple
SECTION C
21. (x+y)’=x’+y’
Draw truth table
22. Printer, monitor, speaker – explain purpose also
23. False, false,false,false, true, [1,2,3,4,5,6,7,8]
24. Simple interest equation based program.

25.Never use the same passwords that you use at work on a social networking site.


Limit usage of social networking sites to personal use only. Do not write about work issues.
Always assume everyone in the world will be able to see what you're writing even if
the site limits your post to your friends exclusively.

26. a) (10,20,40) b) teateateateatea c) ('i', 't', 'e', 'm')

SECTION D

27.

28.        
def linear_search(alist, key):
"""Return index of key in alist. Return -1 if key not present."""
for i in range(len(alist)):
if alist[i] == key:
return i
return -1
 
 
alist = input('Enter the list of numbers: ')
alist = alist.split()
alist = [int(x) for x in alist]
key = int(input('The number to search for: '))
 
index = linear_search(alist, key)
if index < 0:
print('{} was not found.'.format(key))
else:
print('{} was found at index {}.'.format(key, index))

29.

dic = {}

while True :
nam = input("Enter name :-")
per = float(input("Enter percentage :-"))
dic[nam] = per
a = input("Do you want to enter more records enter (Yes/ No)")
if a == "No" or a == "no":
break

clas = input("Enter name which you want to delete :-")


del dic[clas]
print("Dictionary",dic)

30.
print ("The original list is : " + str(test_list))
 
# printing remove list
print ("The original list is : " + str(remove_list))
 
# using remove() to perform task
# handled exceptions.
for i in remove_list:
    try:
        test_list.remove(i)
    except ValueError:
        pass
 
# printing result
print ("The list after performing remove operation is : " + str(test_list))

31.
Cybercrime is criminal activity that either targets or uses a computer, a computer network or a
networked device.
Types of cybercrime
1. Email and internet fraud.
2. Identity fraud (where personal information is stolen and used).
3. Theft of financial or card payment data.
4. Theft and sale of corporate data.
5. Cyberextortion (demanding money to prevent a threatened attack).
6. Ransomware attacks (a type of cyberextortion).

You might also like