Professional Documents
Culture Documents
Merican Ontessori Ublic Chool: Set-A
Merican Ontessori Ublic Chool: Set-A
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.
Siya want to connect her office with the another office of the same building. Suggest her a
16 suitable way to connect (in terms of transmission media) 1
17 The device that can operate in place of a hub is a _____ 1
SECTION-II
Both the case study based questions are compulsory. Attempt any 4
sub parts from each question. Each question carry 1 mark.
A company, Sunrise Ltd. Is considering to manage the records of their employees using SQL
to store the data. As a database administrator, Harish has decided that:
Name of the database: Employee
Name of the table : Empl
The attributes of Empl are as follows:
EmpId - Numeric
Empname - character of size 20
22 Salary - Numeric
Date_of_Joining - Date
Radhika is writing a program to create a CSV file “books.csv” which will contain the book
name and author name. She wants to display the details of all the books.
Section-I
24 Evaluate the following expressions: 2
(a) 47 // 5 + 10 **2 – 25+12
(b) 34 > 56 or 90 > 60 and not 21 > 10
28 Rewrite the following code in Python after removing all syntax error(s). underline each 2
correction done in the code.
Num=50
while Num >= 10:
if NUM =30:
BREAK
Elif Num >30:
print(Num)
else:
print(Num //10)
29 What are the possible output(s) of the following code? Also specify the maximum and 2
minimum values that can be assigned to variable PICKER.
import random
PICK = random.randint(0,3)
CITY= [“DELHI”, “MUMBAI”, “CHENNAI”,”KOLKATA”]
for x in CITY:
for y in range(1, PICK):
print (x, end = “ “)
print()
(i) DELHIDELHI (ii) DELHI
MUMBAIMUMBAI MUMBAI
CHENNAICHENNAI CHENNAI
KOLKATA KOLKATA KOLKATA
31 What is the use of dump() and load() functions with suitable example? 2
fun('Charles@Babbage')
SECTION-II
34 Write a function Swap(num, n) in Python, which accepts a list num of numbers and n is the 3
number of elements. The function will interchange every alternate value. E.g
If the list num contain: [11, 21, 31, 41, 51, 61]
Output, [21, 11, 41, 31, 61, 51]
35 Write a function word4() in Python that displays 4 letter words present in a text file 3
‘myfile.txt’.
If the ‘myfile.txt’ contents are as:
We are here to learn python. Python has so many features which make it more comfortable
interface.
Output:
here
many
make
more
OR
Write a function count() in Python, which should count number of ‘This’ in a given text file
‘Sample.txt’.
36 Write the outputs of the SQL queries (i) to (iii) based on the following table ‘CABHUB’: 3
VCODE VNAME MAKE COLOR CAPACITY CHARGES
100 INNOVA TOYOTA WHITE 7 15
102 SX4 SUZUKI BLUE 4 14
104 C CLASS MERCEDES RED 4 35
105 A-STAR SUZUKI WHITE 3 14
108 INDIGO TATA SILVER 3 12
(a) To display the names of all the white colored vehicles.
(b) To display name of vehicle, make and capacity of vehicles in ascending order
of their seating capacity.
(c) To display the highest charges at which a vehicle can be hired from CABHUB.
37 Write a function in Python PUSH() to insert an element in the stack. After inserting the 3
element display the stack.
OR
Write a function in Python POP() to remove the element from the stack and also display the
deleted value.
SECTION-III
38 Sanskar University of Himachal Pradesh is setting up a secured network for its campus at 5
Himachal Pradesh for operating their day-to-day office & web based activities. They are
planning to have network connectivity between four buildings. Answer the question (i) to
(v) after going through the building positions in the campus & other details which are given
below:
Number of computers:-
Building No. of Computers
Main 150
Admin 75
Finance 50
Academic 60
As a network expert, you are required to give best possible solutions for the given queries
of the university administration: -
(a) Suggest cable layout for the connections between the various buildings,
(b) Suggest the most suitable building to house the server of the network of the university,
(c) Suggest the placement of following devices with justification:
1. Switch/Hub 2. Repeater
(d) Suggest the technology out of the following for setting-up very fast Internet connectivity
among buildings of the university
1. Optical Fiber 2. Coaxial cable 3. Ethernet Cable
(e) The University is planning to connect its admission office in Haryana, which is more than
1000 KM from University. Which type of Network out of LAN, MAN or WAN will be formed?
Justify your answer.
39 Consider the following tables STORE and SUPPLIERS and answer the following 5
parts of the questions:
Table: Store
SCODE SNAME
21 Premium Stationers
23 Soft Plastics
22 Tetra Supply
a. To display details of all the items in the Store table in ascending order of
LastBuy.
b. To display itemno ItemName of those items from Store Table whose rate is
more than 15 rupees.
c. To display the details of those items whose Suppliers code(Scode) is 22 or
Quantity in Store(Qty) is more than 110 from the table Store.
d. To display minimum rate of Items for each Supplier individually as per Scode
from the table Store.
e. To increase the Rate of all the items by Rs. 10
40 (a) Create a binary file “employee” that stores the records of employees and 5
display them one by one.
(b) Display the records of all those employees who are getting salaries between
30000 and 50000.
OR