Page 1 :
TERM-II EXAMINATION SAMPLE PAPER, Class: XI COMPUTER SCIENCE (Subject Code: 083), Max. Marks: 35, , Time: 2 Hours, , General Instructions:, , ♦ Attempt all questions. The question paper is divided into 3 sections – A, B and C., ♦ Section A, consists of 7 questions (1‐7). Each question carries 2 marks., ♦ Section B, consists of 3 questions (8‐10). Each question carries 3 marks., ♦ Section C, consists of 3 questions (11‐13). Each question carries 4 marks., SECTION-A (2 marks each), 1. Consider the following string :, str= “Welcome to Python@2022”, What will be the output of following string operations:, (i) print(str.split(‘@’)), (ii) print(str.index(‘come)), 2. Consider the lists L1=[2,4,6] and L2=[1,3,5]. What will be output of the following‐, i) L1*2, ii) L1+L2, OR, Consider a list L=[20,22,4,10,12,14,40,22,24], find the output of the following‐, i) L[ 0: 8 : 2], , ii) L[ : : 2], , 3. How strings are different from Lists when both are sequences?, 4. Consider the following dictionary:, D={“abc”:123,”def”:456, ”ghi”:789}, Find the output of following statements:, (i) print(D.get(“def”)), (ii) print(123 in D), 5. Name the Python Library modules which need to be imported to invoke the following, functions:, , (i) random(), , (ii) mean(), , 6. What do you mean by Net Etiquettes? Discuss any two such etiquettes., 7. What are Malware? What type of damage can they cause to your computer?, [P.T.O], 1
Page 2 :
SECTION- B (3 marks each), 8. Discuss the following functions of Dictionary with suitable example:, i) fromkeys(), ii) popitem(), iii) update(), 9. Consider the following program., import random, AR= [10,20,30,40,50,60,70];, START = random.randint(1,3), END= random.randint(2,4), for k in range(START, END+1):, print(AR[k], end = “#”), a) What possible output(s) are expected to be displayed on screen when above program is, executed?, i) 10#20#30#, ii) 30#40#50#, iii) 50#60#70#, iv) 20#30#40#, b) Specify the maximum values that can be assigned to START and END variable., c) What is difference between randrange() and randint() function., 10. Write the differences between the following :, a) Active and passive foot prints, b) Identity Theft and Hacking, c) Free ware and Shareware, OR, What is Plagiarism? Discuss two suggestions that should be followed to avoid, plagiarism while using contents from the Internet., SECTION -C (4 marks each), 11. (i) If a is (x,y,z), (a) What is the difference (if any) between a*3 and [a,a,a]?, (b) Is a*3 equivalent to a+a+a?, (ii) What is the difference between append() and insert() functions?, 12. Consider the following tuple:, T=(30,25,10,37,8,20,15,40,81), Find the output of following statements:, (i) (a) print(T1.index(100)), (b) print(T1.count(10)), (ii) print(T[T[4]]), (b) print(T[-3]+T[3]), OR, Write a program to input a tuple of integers and count how many numbers are divisible, with 3.For example, is tuple stores 12,17,15,35,45,54,65,, then output should be : Total Number divisible by 3 are : 4, 13. a) What do you mean by e‐waste? Why should e‐Waste be handled properly?, b) What is Cyber‐Bullying? Discuss two precautions to prevent Cyber‐Bullying., ********, 2