Professional Documents
Culture Documents
Delhi Public School, GBN PRE BOARD-III (2020-21)
Delhi Public School, GBN PRE BOARD-III (2020-21)
General Instructions:
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:
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.
5. Part- B has three sections
Marks
Q.No PART -A Allocated
SECTION-I
Select the most appropriate option out of the options for each question. Attempt
any 15 questions from question no 1 to 21.
Page 1 of 11
2 Write the output of the following python expression: 1
3 Write the importance of passing file mode while declaring a file object in data file handling. 1
4 Find the operator which cannot be used with a string in Python from the following: 1
(a) + (b) in (c) * (d) //
a) S=DAYS[1]
b) print(DAYS[2])
c) DAYS[0]=”WED”
d) LIST=list(DAYS)
8 _________ is a collection of similar modules or packages that are used to fulfill some 1
functional requirement for a specific type of application.
11 In SQL, write the name of the aggregate function which is used to calculate & display the 1
average of numeric values in an attribute of a relation.
12 Write an SQL query to display all the attributes of a relation named “TEST” along with their 1
description.
b) DELETE
c) UPDATE
d) DROP
Page 2 of 11
15 Give the full form of the following: 1
a) URL
b) TDMA
16 Identify the output of the following python statements if there is no error. Otherwise, identify 1
the error(s):
b) Distinct
c) Primary key
d) check
20 Identify the error in the following SQL query which is expected to delete all rows of a table 1
TEMP without deleting its structure and write the correct one:
21 Identify the Guided and Un-Guided Transmission Media out of the following: 1
Satellite, Twisted Pair Cable, Optical Fiber, Infra-Red waves
Section-II
Both the case study-based questions are compulsory. Attempt any 4 out of the 5
subparts from each question. Each question carries 1 mark.
22 A CD/DVD Shop named “NEW DIGITAL SHOP” stores various CDs & DVDs of
songs/albums/movies and use SQL to maintain its records. As a Database Administrator, you
have decided the following:
Attributes are:-
Page 3 of 11
QTY - Numeric values
23 Ashok Kumar of class 12 is writing a program to create a CSV file “empdata.csv” with
empid, name and mobile no and search empid and display the record. He has written the
following code. As a programmer, help him to successfully execute the given task.
fields=['empid','name','mobile_no'] rows=[['101','Rohit','8982345659'],
['102','Shaurya','8974564589'],
['103','Deep','8753695421'],
['104','Prerna','9889984567'],
['105','Lakshya','7698459876']]
filename="empdata.csv"
with open(filename,'w',newline='') as f:
csv_w=csv.writer(f,delimiter=',')
csv_w.___________ #Line2
csv_w.___________ #Line3
with open(filename,'r') as f:
Page 4 of 11
csv_r=______________(f,delimiter=',') #Line4
ans='y'
while ans=='y':
found=False
if len(row)!=0:
if _____==emplid: #Line5
print("Name : ",row[1])
print("Mobile No : ",row[2])
found=True
break
if not found:
b) Write a code to write the fields (column heading) once from fields list in Line2. 1
c) Write a code to write the rows all at once from rows list in Line3. 1
d) Fill in the blank in Line4 to read the data from a csv file.
e) Fill in the blank to match the employee id entered by the user with the empid of
record from a file in Line5.
PART – B
Section – I
Short answer questions of 2 marks each in which two question have internal options.
b) print(10%3 – 10//3)
26 Rohit has purchased a new Smart TV and wants to cast a video from his mobile to his new 2
Smart TV. Identify the type of network he is using and explain it.
Page 5 of 11
27 What is the meaning of return value of a function? Give an example to illustrate its meaning. 2
OR
Differentiate between a positional and default arguments with the help of an example.
28 Rewrite the following code in Python after removing all syntax error(s). Underline each 2
correction done in the code.
Y=integer(input(“Enter 1 or 10”))
if Y==10
for Y in range(1,11):
print(Y)
else:
for m in range(5,0,-1):
print(thank you)
29 What possible outputs(s) are expected to be displayed on screen at the time of execution of 2
the program from the following code? Also specify the maximum values that can be assigned
to each of the variables BEG and END.
a) 30@
b) 10@20@30@40@50@
c) 20@30
d) 40@30@
32 What is the difference between CHAR & VARCHAR data types in SQL? Give an example 2
for each.
Page 6 of 11
PART-B
Section-II
Short answer questions of 3 marks each in which two question have internal options
34 Write a function in python named SwapHalfList (Array), which accepts a list Array of 3
numbers and swaps the elements of 1st Half of the list with the 2nd Half of the list ONLY if
the sum of 1st Half is greater than 2nd Half of the list.
Page 7 of 11
No. of Lines with T: 1
OR
For example: If the content of the file is “THIS IS IMPORTANT TO NOTE THAT
SUCCESS IS THE RESULT OF HARD WORK. WE ALL ARE EXPECTED TO DO
HARD WORK. AFTER ALL EXPERIENCE COMES FROM HARDWORK.”
36 Write the Outputs of the SQL queries (i) to (iii) based on the given below tables: 3
37 Write a function in python named PUSH (STACK, SET) where STACK is list of some 3
numbers forming a stack and SET is a list of some numbers. The function will push all the
EVEN elements from the SET into a STACK implemented by using a list. Display the stack
after push operation.
OR
Page 8 of 11
Write a function in python named POP (STACK) where STACK is a stack implemented by a
list of numbers. The function will display the popped element after function call.
PART-B
Section-III
Short answer questions of 5 marks each in which ONE question have internal options.
38 “VidyaDaan” an NGO is planning to setup its new campus at Nagpur for its web-based 5
activities. The campus has four(04) UNITS as shown below:
b) Suggest the most suitable place i.e. UNIT to install the server for the above NGO.
e) NGO is planning to connect its Regional Office at Kota, Rajasthan. Which out of the
following wired communication, will you suggest for a very high-speed
connectivity?
Page 9 of 11
i. Twisted Pair cable
39 Write SQL commands for the following queries (i) to (v) based on the relations TRAINER & 5
COURSE given below:
b) Display the Trainer Name, City & Salary in descending order of their Hiredate.
d) Display the Course details which have Fees more than 12000 and name ends with
‘A’.
e) Display the Trainer Name & Course Name from both tables where Course Fees is
less than 10000.
OR
Page 10 of 11
Write a function in Python named DisplayAvgMarks(Sub) that will accept a subject as
an argument and read the contents of TEST.dat. The function will calculate & display
the Average of the ScoredMarks of the passed Subject on screen.
Page 11 of 11