preboardpaperclass12 (1)
preboardpaperclass12 (1)
General Instructions:
● This question paper contains 37 questions.
● All questions are compulsory. However, internal choices have been provided in some questions.
Attempt only one of the choices in such questions
● The paper is divided into 5 Sections- A, B, C, D and E.
● Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
● Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
● Section C consists of 3 questions (29 to 31). Each question carries 3 Marks.
● Section D consists of 4 questions (32 to 35). Each question carries 4 Marks.
● Section E consists of 2 questions (36 to 37). Each question carries 5 Marks.
● All programming questions are to be answered using Python Language only.
● In case of MCQ, text of the correct answer should also be written.
SECTION-A
total = 0;
def sum(arg1, arg2):
total = arg1 + arg2;
print("Total :", total)
return total;
sum(10, 20);
print("Total :", total)
Section-D
32 Hi Standard Tech Training Ltd. is a Mumbai based organization which is expanding its 4
office set-up to Chennai. At Chennai office compound, they are planning to have 3
different blocks for Admin, Training and Accounts related activities. Each block has a
number of computers, which are required to be connected in a network for
communication, data and resource sharing.
i.) As a network consultant, you have to suggest the best network related solutions for
them for issues/problems raised by them in (i) to (v), as per the distances between
various blocks/locations and other given Parameters
Accounts Block to Training Block 150 Metres Admin Block to Training Block 200 Metres
MUMBAI Head Office to CHENNAI Office 1300 Km
Print(Rstu)
if Rstu[“Marks”] >= 85:
print(“Eligible for merit certificate”)
else:
print(“Not Eligible for merit certificate”)
34 Rohan just started to work for a sports academy having several branches across 4
India. The sports academy appoints various trainers to train various sports. She has
been given the task to maintain the data of the trainers. She has made a table called
TRAINERS in the database which has following records:
Table: TRAINER
TNo TName City HireDate Salary
101 SUNAINA MUMBAI 1998-10-15 90000
102 ANAMIKA DELHI 1994-12-24 80000
103 DEEPTI CHANDIGARH 2001-12-21 82000
104 MEENAKSHI DELHI 2002-12-25 78000
105 RICHA MUMBAI 1996-01-12 95000
106 MANIPRABHA CHENNAI 2001-12-12 69000
Based on the data given above answer the following questions:
i)Which column will be the primary key in this table justify your answer?
ii) What is the degree and cardinality of the table TRAINER? If we add three rows
and after that remove two rows from table TRAINER. Also if
Write statements for:
iii) Insert a new record in table TRAINER with values, TN = 107, TName = „Pramod‟,
City=‟ DELHI‟ HireDate =”1999-01-22”, Salary = 90000.
iv) Increase the salary of those Trainer having city as DELHI by 5000.
35 Write a program in Python that defines and calls the following user defined 4
functions:
ADD ( ) -To accept and add data of a SHOP to a CSV file “shop.csv”. Each record
consists of a list with field elements as shopno, name and address to store shop
number, shop name and shop address respectively.
COUNTS( )- To count the number of records present in the CSV File named
“shop.csv”
SECTION E
36 Consider the following tables Employee and Salary. Write SQL 5
commands for the statements (i) to (iv) and give outputs for SQL queries (v) to (vii)
Table : Employee
Table : Salary
Eid Basic D.A HRA Bonus
1 6000 2000 2300 200
2 2000 300 300 30
3 1000 300 300 40
4 1500 390 490 30
5 8000 900 900 80
6 10000 300 490 89
37 I) Write code to connect to a MySQL database namely School and then fetch all those 3+2
records from table Student where grade is ' A' .