12th - CS Preboard - Set A
12th - CS Preboard - Set A
General Instructions:
(i) Please check this question paper contains 35 questions.
(ii) The paper is divided into 5 Sections- A, B, C, D and E.
(iii) Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark.
(iv) Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.
(v) Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks.
(vi) Section D, consists of 3 questions (31 to 33). Each question carries 5 Marks.
(vii) Section E, consists of 2 questions (34 to 35). Each question carries 4 Marks.
(viii) All programming questions are to be answered using Python Language only.
Q17 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 for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
Q17. Assertion (A): If the arguments in a function call statement match the number and order of arguments
as defined in the function definition, such arguments are called positional arguments. [1]
Reason (R): During a function call, the argument list first contains default argument(s) followed by
positional argument(s).
Q18. Assertion (A): CSV is a file format for data storage which looks like a text file. [1]
Reason (R): The information is organized with one record on each line and each field is separated by
comma.
Q19. What possible outputs(s) are expected to be displayed on screen at the time of execution of the
program from the following code? Also specify the maximum values that can be assigned to each of the
variables Lower and Upper. [2]
import random
AR=[20,30,40,50,60,70];
Lower=random.randint(1,3)
Upper=random.randint(2,4)
for K in range(Lower, Upper+1):
print (AR[K],end="#")
(a) 10#40#70# (b) 30#40#50# (c) 50#60#70# (d) 40#50#70#
Q20. (a) Write the full form of the following: i) ARPANET ii) WiMax [1 × 2 = 2]
Table : ACCESSORIES
No Name Price Id
A01 Motherboard 12000 S01
A02 Hard Disk 5000 S01
A03 Keyboard 500 S02
A04 Mouse 300 S01
A05 Motherboard 13000 S02
A06 Keyboard 400 S03
A07 LCD 6000 S04
T08 LCD 5500 S05
T09 Mouse 350 S05
T010 Hard Disk 450 S03
1) SELECT DISTINCT Name FROM ACCESSORIES WHERE Price > = 5000;
2) SELECT Area, COUNT(*) FROM SHOP GROUP BY Area;
3) SELECT COUNT(DISTINCT Area) FROM SHOP;
4) SELECT A.Name , A.Price FROM ACCESSORIES A, SHOP S
WHERE A.Id =S.Id and Price >=12000;
Q31. “Vidya for All” is an educational NGO. It is setting up its new campus at Jaipur for its web-based
activities. The campus has four building as shown in diagram below: [1 × 5 = 5]
Center to Center distance between various building as per architectural drawings (in meters is as follows:
Main Building to Resource Building 120m
Main Building to Training Building 40m
Main Building to Accounts building 135m
Resource Building to Training Building 125m
Resource Building to Account Building 45m
Training building to Account Building 110m