FIRST PERIODIC ASSESSMENT, 2022-23 CLASS-XII SUBJECT- COMPUTER SCIENCE (083) Time-1hour 30mins. Maximum marks-30 General instructions: 1. Please read the instructions carefully 2. This Question Paper is divided into 03 sections, viz., Section A, Section B and Section C. 3. Section A is of 06 marks and has 08 questions from qn.1 to qn.8. i. All questions are carry two marks. ii. Answer any six out of eight 4. Section B is of 12 marks and has 06 question from qn9 to qn.14. i. All questions are carry two marks. ii. Answer any four out of six 5. Section C is of 08 marks and has 03 question from qn15 to qn17. i. All questions are carry four marks ii. Answer any two out of three 6. Do as per the sequence and instructions given in the respective sections. 7. Marks allotted are mentioned against each section/question SECTION :: A 2X6=12 ANSWER ANY 6 QUESTIONS OUT OF THE GIVEN 8 QUESTIONS. EACH QUESTION IS OF 1 MARK. Q1. What do you understand by the term “mutable” and “immutable” data 2 types? Give example of each. Q2. What is nested if statement? Give a proper example. 2 Q3. What are the two ways to add something to a list and how they are 2 different? Give example. Q4. What are the two ways to remove something from a list and how they are 2 different? Give example. Q5. i) What is function? 1 ii) What all information does a function header give you about the 1 function? Q6. List minimum two difference between global and local variable with an 2 example. Q7. List any four commonly used python library with their functionality. 2 Q8. List any four commonly used module of python standard library with their 2 functionality. SECTION – B 3X4=12 ANSWER ANY FOUR OUT OF SIX QUESTIONS. ALL QUESTIONS ARE CARRIED THREE MARKS. Q9. i) What are pythons’ built-in data type? 1 ii) write the output of the following : for name in [ ‘JAYES’ , ’RAM’ , ‘TARUN’ , ’SURAJ’ ] : 2 print(name) if name[0]==’T’ : break else : print(“finished”) print(“got it”)
Q10. Write the output of the following python program: 1
i) L=[‘im’ , ‘ur’] for i in L: i.upper() print(L) ii) x=10 y=0 2 while x>y : print(x, y) x=x-1 y=y+1 Q11. Explain different types of function with proper example and output. 3 Q12. Explain different types parameter support by python with proper example 3 and output. Q13. i) What is library? 1 ii) Define module and create a user defined module and show the output. 2 Q14. Mention any three ways to import module in python with proper example 3 and output. SECTION – C 4X2=8 ANSWER ANY TWO OUT OF THREE QUESTIONS. ALL QUESTIONS ARE CARRIED FOUR MARKS. i) The __________ method remove all the key from the dictionary. 1 ii) Write a program to create a dictionary about 3 students. Roll no as key Q15. 2 and name as value. And print all the pair. Write the output also. 1 iii) what will happen if you give statement del D[<key>]? i) Explain what are the way python return a value with proper example 2 and output. Q16. ii) write a program to pass a mutable type value to a function and write 2 output. i) define package. How it is different from module? 1 Q17. ii) list two function present in math module with example. 1 iii) write the steps to create own library/package in python. 2
CSS (With HTML5) Learn CSS in One Day and Learn It Well. CSS for Beginners With Hands-On Project. Includes HTML5. (Learn Coding Fast With Hands-On Project Book 2) by LCF Publishing Jamie Chan (Z-lib.or