Kendriya Vidyalaya Sangathan, Chennai Region Practice Test 2020 - 21 Class Xii
Kendriya Vidyalaya Sangathan, Chennai Region Practice Test 2020 - 21 Class Xii
Kendriya Vidyalaya Sangathan, Chennai Region Practice Test 2020 - 21 Class Xii
1. This question paper contains two parts A and B. Each part is compulsory.
2. Both Part A and Part B have choices.
3. Part-A has 2 sections:
a. Section – I is short answer questions, to be answered in one word or one line.
b. Section – II has two case studies questions. Each case study has 4
case-based sub-parts. An examinee is to attempt any 4 out of the 5 subparts.
4. Part - B is Descriptive Paper and has 3 sections:
a. Section-I is short answer questions of 2 marks each in which two question
have internal options.
b. Section-II is long answer questions of 3 marks each in which two questions
have internal options.
c. Section-III is very long answer questions of 5 marks each in which one
question has internal option.
5. All programming questions are to be answered using Python Language only.
Part – A
Section-I
Select the most appropriate option out of the options given for
each question. Attempt any 15 questions from question no 1 to
21.
1 Find the invalid identifier from the following 1
a) Subtotal b) assert c) temp_calc d) Name2
2 Given the list Lst = [ 12, 34, 4, 56, 78, 22, 78, 89], find the output of 1
print(Lst[1:6:2])
1|Page
6 What is the value of the expression 1
4+4.00, 2**4.0
for i in range(-3,4,2):
print(i, end = '$')
2|Page
Section-II
Both the Case study based questions are compulsory. Attempt any
4 sub parts from each question. Each question carries 1 mark
d) Give the command to remove all the records from the table. 1
Primary Key.
3|Page
import ___________ # Line 1
f = open(“Sports.csv”,”a”)
wobj = csv.______________ (f, delimiter = ‘\t’) # Line 2
wobj.writerow( [‘Sport’, ‘Competitions’, ‘Prizes Won’] )
ans = ‘y’
i=1
Part – B
Section – I
24 Evaluate the following expressions: 2
a) 2 ** 3 ** 2
b) 7 // 5 + 8 * 2 / 4 – 3
27 What do you understand by local and global scope of variables? How can 2
you access a global variable inside the function, if function has a variable
with same name.
OR
Explain with a code about Keyword arguments and Default arguments.
4|Page
28 Rewrite the following code after removing the error(s). Underline each 2
correction.
29 Consider the following code and find out the possible output(s) from the 2
options given below. Also write the least and highest value that can be
generated.
import random as r
print(10 + r.randint(10,15) , end = ‘ ‘)
print(10 + r.randint(10,15) , end = ‘ ‘)
print(10 + r.randint(10,15) , end = ‘ ‘)
print(10 + r.randint(10,15))
i) 25 25 25 21 iii) 23 22 25 20
ii) 23 27 22 20 iv) 21 25 20 24
30 What do understand by an Alternate key? Give a suitable example to 2
support your answer.
def change(s):
d = {"UPPER" : 0, "LOWER" : 0 }
for c in s:
if c.isupper():
d["UPPER"] += 1
elif c.islower():
d["LOWER"] += 1
else:
pass
print("Upper case count :", d["UPPER"])
print("Lower case count :", d["LOWER"])
change("School Days are Happy")
5|Page
Section – II
34 Write a program to input a date as an integer in the format MMDDYYYY. 3
The program should call a user-defined function to print out the date in the
format <Monthname> <day>, <year>
35 Write a function that counts and display the number of 5 letter words in a 3
text file “Sample.txt”
OR
Write a function to display those lines which start with the letter “S” from
the text file “MyNotes.txt”
36 Write the outputs of the SQL queries i) to iii) based on the tables given 3
below:
Table: ITEM
ID Item_Name Manufacturer Price
PC01 Personal ABC 35000
Computer
LC05 Laptop ABC 55000
PC03 Personal XYZ 32000
Computer
PC06 Personal COMP 37000
Computer
LC03 Laptop PQR 57000
Table: CUSTOMER
C_ID CName City ID
01 N Roy Delhi LC03
06 R Singh Mumbai PC03
12 R Pandey Delhi PC06
15 C Sharma Delhi LC03
16 K Agarwal Bangalore PC01
6|Page
Write RemoveCustomer(Customer) method in Python to remove a
Customer, considering it to act as a POP operation of the stack
datastructure. Also return the value deleted from stack.
Section – III
From To Distance
Production Finance Unit 70 Mtr
Production Media Unit 15 KM
Unit
Production Corporate Unit 2112 KM
Unit
Finance Media Unit 15 KM
Unit
In continuation of the above, the company experts have planned to install
Unit
the following number of computers in each of their office units:
Production Unit 150
Finance Unit 35
Media Unit 10
Corporate Unit 30
7|Page
i) Suggest the kind of network required (out of LAN, MAN, WAN) for
connecting each of the following office units:
a. Production Unit and Media Unit
b. Production Unit and Finance Unit
ii) Which of the following communication media, will you suggest to be
procured by the company for connecting their local offices in
Chennai for very effective communication? Ethernet Cable, Optical
Fiber, Telephone Cable.
iii) Which of the following devices will you suggest for connecting all
the computers within each of their office units?
*Switch/Hub *Modem *Telephone
iv) Suggest a cable layout for connecting the company’s local office
units in Chennai.
v) Suggest the most suitable place to house the server for the
organization with suitable reason.
39 Write SQL commands for i) to v) based on the relations given below. 5
Table: Store
ItemNo Item Scode Qty Rate LastBuy
Table: Suppliers
Scode Sname
21 Premium Stationary
23 Soft Plastics
22 Tetra Supply
8|Page
i) To display details of all the items in the Store table in
descending order of LastBuy.
ii) To display Itemno and item name of those items from store table
whose rate is more than 15 rupees.
v) To display ItemNo, Item Name and Sname from the tables with
their corresponding matching Scode.
9|Page