







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Computer Science – Class 12 – Examination Question Paper – 1 2 3 4 & 5 Marks Questions - 13 Pages - Very Helpful for Students and Teachers
Typology: Exams
1 / 13
This page cannot be seen from the preview
Don't miss anything!








CLASS XII: READING TIME: 15 min SUBJECT: COMPUTER SCIENCE(083) DURATION: 3 Hours General Instructions: Please check this question paper contains 35 questions. The paper is divided into 4 Sections- A, B, C, D and E. Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark. Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks. Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks. Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks. Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks. All programming questions are to be answered using Python Language only. Q.No Question Marks SECTION A
Which of the following can be used as valid variable identifier(s) in Python? a) Total c) Number# b) 5 Th^ Sum d) True
Consider a declaration L = ( 23, “Python”,78.9). Which of the following represents the data type of L? a) List c) Dictionary b)String d) Tuple
What will be the output of the following python statements?
b= for a in range(1,10,2): b+=a+ print(b) a) 31 c) 33 b) 36 d) 39
14 Which of the following aggregate functions ignore NULL values? a) COUNT c) MAX b) AVERAGE d) All of these
Directions :In the (17), (18) questions A statement of Assertion (A) is followed by a statement of Reason (R). Mark the correct choice as. a) Both A and R are true and R is the correct explanation of A. b) Both A and R are true and R is not the correct explanation of A. c) A is true but R is false. d) A is false but R is true.
Assertion (A) :String is a sequence which is made up of one or more Unicode character. Reason ( R) : A String can be created by enclosing one or more characters in single, double or triple quote.
2 1. Write a function LShift(Arr,n) in python, which accepts a list Arr of numbers and n is a numeric value by which all elements of the list are shifted to left. Sample input data of the list: Arr=[10,20,30,40,12,15], n= Output: Arr=[30,40,12,15,10,20] OR Write a function INDEX_LIST(L), where L is the list of elements passed as argument to the function. The function returns another list named ‘indexList’ that stores the indices of all Non-Zero Elements of L. For example: If L contains [12,4,0,11,0,56] The indexList will have - [0,1,3,5]
What will be scope of the variables a,b,c,x,y? def show( ): a= b= c= def show1( ): x=” happy morning” y= z=
Write a function in python, Push(Sitem) where, Sitem is a dictionary containing the details of Stationary items-
Quick learn university is setting up its academic blocks at Prayag nagar and is planning to setup a network. The university has 3 academic blocks and one HR Centre as shown in the diagram below:
Business block Technology block Law block HR block
Centre to Centre distances between various blocks/ centre is as follows. Law block to business block 40 m Law block to technology block 80 m Law block to HR block 105 m Business block to technology block 30m Business block to HR centre 35 m Technology block to HR centre 15m Number of computers in each of the blocks/centre is as follow: a) Suggest the most suitable place to install server of this university with a suitable reason b) Suggest an ideal layout for connecting these blocks/centers for a wired connectivity c) Which device will you suggest to be placed/ installed in each of these blocks/centers to efficiently connect all the computers within these blocks/centers. d) The university is planning to connect its admission office in the closest big city, which is more than 250 km from university. Which type of network out of LAN, MAN, OR WAN will be formed? Justify your answer. e) Which block is having less number of computers. Law/block 15 Technology block 40 Hr center 115 Business block 25
i)What happens when we use file open() function in python? ii) create file phonebook.txt that stores the details in the following format: