0% found this document useful (0 votes)
50 views27 pages

Class 12 Preatical File

Uploaded by

A FF ROHITH 8A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views27 pages

Class 12 Preatical File

Uploaded by

A FF ROHITH 8A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 27

CLASS 12 PREATICAL FILE

Write a function that takes amount-in-dollars and dollar-to-rupee


conversion price; it then returns the amount converted to rupees.
Create the function in both void and non-void forms.

Solution

def convert_dollars_to_rupees(amount_in_dollars, conversion_rate):

amount_in_rupees = amount_in_dollars * conversion_rate

return amount_in_rupees

def convert_dollars_to_rupees_void(amount_in_dollars, conversion_rate):

amount_in_rupees = amount_in_dollars * conversion_rate

print("Amount in rupees:", amount_in_rupees)

amount = float(input("Enter amount in dollars "))conversion_rate =


float(input("Enter conversion rate "))

# Non-void function callconverted_amount = convert_dollars_to_rupees(amount,


conversion_rate)print("Converted amount (non-void function):",
converted_amount)

# Void function callconvert_dollars_to_rupees_void(amount, conversion_rate)


Write a recursive python program to test if a string is
palindrome or not.
def isStringPalindrome(str):
if len(str)<=1:
return True
else:
if str[0]==str[-1]:
return isStringPalindrome(str[1:-1])
else:
return False

#__main__

s=input("Enter the string : ")


y=isStringPalindrome(s)

if y==True:
print("String is Palindrome")
else:
print("String is Not Palindrome")

STACKS

1 A dictionary, d_city contains the records in the 3


following format :
{state:city}
Define the following functions with the given specifications :
(i) push_city(d_city): It takes the dictionary as an argument and
pushes all the cities in the stack CITY whose states are of more than
4 characters.
(ii)pop_city(): This function pops the cities and displays "Stack empty"
when there are no more cities in the stack.
An (i) CITY=[]
s def
push_city(d_city):
for c in d_city:
if len(c) > 4:
CITY.append(d_city[c])
(ii) def pop_city():
while CITY:
print(CITY.pop())
else:
print("Stack empty")

Consider a list named Nums which contains random integers.


2 3

Write the following user defined functions in Python and perform the
specified
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
operations on a stack named BigNums.
(i) PushBig(): It checks every number from the list Nums and pushes all
such
numbers which have 5 or more digits into the stack, BigNums.
(ii) PopBig(): It pops the numbers from the stack, BigNums and
displays
them. The function should also display "Stack Empty" when there
are
no more numbers left in the stack.

For example: If the list Nums contains the following data:


Nums = [213, 10025, 167, 254923 14, 1297653, 31498, 386, 92765]
,
Then on execution of PushBig(), the stack BigNums should store:
[10025, 254923, 1297653, 31498, 92765]
And on execution of PopBig(), the following output should be displayed:
92765
31498
1297653
254923
10025
Stack Empty

Ans def
PushBig(Nums,BigNums):
for N in Nums:
if len(str(N)) >=
5:
BigNums.append(N)
def
PopBig(BigNums):
while BigNums:
print(BigNums.pop())
else:
print("Stack Empty")
3 (a) A list contains following record of customer : 3
[Customer_name, Room Type]
Write the following user defined functions to perform given
operations on the stack named 'Hotel' :
Push_Cust() – To Push customers’ names of those customers who
are
staying in ‘Delux’ Room Type.
Pop_Cust() – To Pop the names of customers from the stack and
display them. Also, display “Underflow” when there are no
customers in the stack.

For example :
If the lists with customer details are as follows :
["Siddarth", "Delux"]
["Rahul", "Standard"]
["Jerry", "Delux"]
The stack should
contain Jerry
Siddharth
The output should be:
Jerry
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
Siddharth
Underflow
Ans. Hotel=[] Customer=[["Siddarth","Delux"],
["Rahul","Standard"],["Jer ry","Delux"]]
def Push_Cust():
for rec in Customer:
if rec[1]=="Delux":
Hotel.append(rec[0])

def Pop_Cust():
while len(Hotel)>0:
print(Hotel.pop())
else:
print("Underflow")

OR
top=0
def Push_Cust(Hotel,Customer):
global top
for cust_rec in Customer:
if cust_rec[1]=="Delux":
Hotel.insert(top, cust_rec[0])
top=top+1

def Pop_Cust(Hotel):
global top
while len(Hotel)>0:
print(Hotel.pop())
top=top-1
else:
print("Underflow")
(b) Write a function in Python, Push (Vehicle) where, Vehicle 3
is a dictionary containing details of vehicles – {Car_Name:
Maker}. The function should push the name of car
manufactured by ‘TATA’ (including all the possible cases
like Tata, TaTa, etc.) to the stack. For example:
If the dictionary contains the following data :
Vehicle={"Santro":"Hyundai","Nexon":"TATA","Safari":"Tata"}
The stack should contain
Safari
Nexon
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
(c) Write a function in Python, Push (Vehicle) where, Vehicle 3
is a dictionary containing details of vehicles – {Car_Name:
Maker}. The function should push the name of car
manufactured by ‘TATA’ (including all the possible cases
like Tata, TaTa, etc.) to the stack. For example:
If the dictionary contains the following data :
Vehicle={"Santro":"Hyundai","Nexon":"TATA","Safari":"Tata"}
The stack should contain
Safari
Nexon

Ans stack=[]
def Push(Vehicle) :
for v_name in Vehicle :
if Vehicle[v_name].upper()=="TATA" :
stack.append(v_name)
OR
stack=[]
def Push(Vehicle) :
for v_name in Vehicle :
if Vehicle[v_name] in ("TATA", "TaTa","tata","Tata"):
stack.append(v_name)
OR
Any other valid Python code to serve the purpose.

TEXT FILE HANDLING

Write a method/function COUNTWORDS() in Python to read contents from


5 a text file DECODE.TXT, to count and return the occurrence of those
3

words, which are having 5 or more characters.

An def COUNTWORDS():
s NW=0
with open("DECODE.TXT",'r') as
F: S=F.read().split()
for W in S:
if len(W)>=5:
NW+=1
return NW
6 Write a method/function COUNTLINES() in Python to read lines
from a text file
3

CONTENT.TXT, and display those lines, which have @ anywhere in


the line. For example :
If the content of the file is :
Had an amazing time at the concert last night with
@MusicLoversCrew.
Excited to announce the launch of our new website! G20 @ India
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
The method/function should display
Had an amazing time at the concert last night with
@MusicLoversCrew
G20 @ India
Ans def COUNTLINES():
f=open("CONTENT.TXT","r")
LS=f.readlines()
for L in LS:
if "@" in L:
print(L)
f.close()
) 3
7 Write a function count_Dwords() in Python to count the words ending
with a digit in a text file "Details.txt".

Example:
If the file content is as
follows: On seat2 VIP1 will
sit and
On seat1 VVIP2 will be
sitting Output will be:
Number of words ending with a digit are 4
Ans def count_Dwords():
. with open ("Details.txt", 'r') as F: # ignore
'r' S=F.read()
Wlist =
S.split() count
= 0
for W in Wlist:
if W[-1].isdigit():
count+=1
print("Number of words ending with a digit are",count)

BINARY FILE HANDLING

9 (a) (i) What is the main purpose of seek() and tell() method ? 5

An seek() - it is a Python method, which moves the file pointer to the


s location specified in the parameter.

tell() - it is a Python method, which returns the present location of a file


pointer.
(ii) Consider a binary file, Cinema.dat containing information in the
following structure :
[Mno, Mname, Mtype]
Write a function, search_copy(), that reads the content from the file
Cinema.dat and copies all the details of the "Comedy" movie type to file
named movie.dat.
Computer Science Class 12
Ans import pickle
def
search_copy():
try:
F1 = open("Cinema.dat","rb")
F2 = open("movie.dat",
"wb") try:
while True:
Data1=pickle.load(F1)
if
Data1[2]=="Comedy":
pickle.dump(Data1,F2)
except:
print("Done!")
F1.close()
F2.close()
except:
print("File not found!")
10 (i) Give one difference between write() and writeline() function in 5
text file.

Ans write function - writes the content of a string onto a text file object .
writelines function - writes the content of a list of strings onto a text
file object .
Example:
file.write("Hello World")
file.writelines(["Hello","World"])

Note:
As there is no function writeline, give full 2 Marks for correctly
explaining the write function only.

(ii) A Binary file, "Items.dat" has the following structure :


[Icode, Description, Price]

Where
Icode – Item code
Description – Detail of
item Price – Price of item

Write a function Add_data(), that takes Icode, Description and


Price
from the user and writes the information in the binary file "Items.dat".
import pickle
def Add_data():
F=open("Items.dat","wb")
Icode=input("Icode:")
Description=input("Detail of item:")
Price=float(input("Price:")
pickle.dump([Icode,Description,Price], F)
F.close()

2+
1 (A) (i) Differentiate between 'w' and 'a' file modes in Python.
3
=5
1
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
Ans 'w':
Open the file in write mode.
If the file doesn’t exist, then a new file will be
created. The file pointer is in the beginning of the
file.
If the file exists, the contents of the file, if any, are lost/truncated and the
new data is added as fresh data into the file.

'a':
Open the file in append mode.
If the file doesn’t exist, then a new file will be
created. The file pointer is at the end of the file.
If the file exists, the new data is added at the end of the file without deleting
the previous contents of the file.
12 (ii)
Consider a binary file, items.dat, containing records stored in the given
format :
{item_id: [item_name,amount]}

Write a function, Copy_new(), that copies all records whose amount is


greater than 1000 from items.dat to new_items.dat.

Ans import pickle


def Copy_new():
F2=open("new_items.dat","wb")
try:
F1=open("items.dat","rb")
Data1=pickle.load(F1)
Data2={}
for K,V in
Data1.items(): if
V[1]>1000:
Data2[K]=V
pickle.dump(Data2,F2)
F2.close()
except:
print("File not
found!") F1.close()
13 (i) What is the advantage of using with clause while opening a data file in
Python ? Also give syntax of with clause.

The advantage of using with clause is that any file that is opened using this
clause is closed automatically, once the control comes outside the with
clause.
Example:
with open("myfile.txt","r+") as file_object:
content = file_object.read()

In Python, we can open a file using with clause/statement.

The syntax of with clause is:


with open (file_name, access_mode) as file_object:
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
(ii)
A binary file, EMP.DAT has the following structure :
[Emp_Id, Name, Salary]

where
Emp_Id : Employee id
Name : Employee
Name Salary :
Employee Salary

Write a user defined function, disp_Detail(), that would read the contents
of the file EMP.DAT and display the details of those employees whose salary
is below 25000.
def disp_Detail():
try:
with open("EMP.DAT","rb") as F:

Data=pickle.load(F)
for D in Data:
if D[2]<25000:
print(D)
except:
print("File Not Found!!!")

CSV FILE HANDLING

1 Sangeeta is a Python programmer working in a computer hardware


company. She has to maintain the records of the peripheral devices. She
4

4 created a csv file named Peripheral.csv, to store the details.


The structure of Peripheral.csv is:
[P_id,P_name,Price]
where
P_id is Peripheral device ID (integer)
P_name is Peripheral device name
(String) Price is Peripheral device
price (integer)
Sangeeta wants to write the following user defined functions :
Add_Device() : to accept a record from the user and add it to a csv
file, Peripheral.csv
Count_Device() : To count and display number of peripheral devices whose
price
is less than 1000.
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
Ans import csv
def Add_Device():
F=open("Peripheral.csv","a",newline='')
W=csv.writer(F)
P_id=int(input("Enter the Peripheral ID"))
P_name=input("Enter Peripheral Name")
Price=int(input("Enter Price"))
L=[P_id,P_name,Price]
W.writerow(L)
F.close()
def Count_Device():
F=open("Peripheral.csv","r")
L=list(csv.reader(F))
Count=0
for D in
L:
if int(D[2])<1000:
Count+=1
print(Count)
F.close()

1 Mr. Mahesh is a Python Programmer working in a school. He has to


maintain the records of the sports students. He has created a csv file
4

5 named sports.csv, to store the details.The structure of sports.csv is :


[sport_id, competition, prize_won]
where
sport_id, is Sport id (integer)
competition is competition name (string)
prize_won is ("Gold", "Silver",
"Bronze")

Mr. Mahesh wants to write the following user-defined functions :


Add_detail(): to accept the detail of a student and add to a csv file,
"sports.csv".
Count_Medal(): to display the name of competitions in which students
have won "Gold" medal.

Help him in writing the code of both the functions.


An import csv
s def Add_detail():
F=open("sports.csv","a")
W=csv.writer(F)
sport_id=int(input("Sport id:"))
competition=input("Competition:")
prize_won=input("Prize won:")
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
L=[sport_id,competition,prize_won]
W.writerow(L)
F.close()

def Count_Medal():
F=open("sports.csv","r")
L=list(csv.reader(F))
for D in L:
if D[2]=="Gold":
print("Competition:",D[1])
F.close()
String functions and methods:
Sno Method name Description
1. isalnum() Returns true if string has at least 1 character and all characters are
alphanumeric and false otherwise.
2. isalpha() Returns true if string has at least 1 character and all characters
are alphabetic and false otherwise.
3. isdigit() Returns true if string contains only digits and false otherwise.
4. islower() Returns true if string has at least 1 cased character and all cased
characters are in lowercase and false otherwise.
5. isnumeric() Returns true if a string contains only numeric characters and false
otherwise.
6. isspace() Returns true if string contains only whitespace characters and
false otherwise.
7. istitle() Returns true if string is properly “titlecased” and false otherwise.
8. isupper() Returns true if string has at least one cased character and all
cased characters are in uppercase and false otherwise.
9. replace(old,new[ Replaces all occurrences of old in string with new or at most max
, max]) occurrences if max given.
10. split() Splits string according to delimiter str (space if not provided) and
returns list of substrings;
11. count() Occurrence of a string in another string
12. find() Finding the index of the first occurrence of a string in another string
13. swapcase() Converts lowercase letters in a string to uppercase and viceversa
14. startswith(str, Determines if string or a substring of string (if starting index beg
beg=0, end= and ending index end are given) starts with substring str;
len(string)) returns true if so and false otherwise.

List:Lists are ordered mutable data types enclosed in square brackets. E.g., [ 'A', 87, 23.5 ]
Python has a set of built-in methods that you can use on lists
Method Description

append() Adds an element at the end of the list


Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
clear() Removes all the elements from the list

copy() Returns a copy of the list

count() Returns the number of elements with the specified value

extend() Add the elements of a list (or any iterable), to the end of the current list

index() Returns the index of the first element with the specified value

insert() Adds an element at the specified position

pop() Removes the element at the specified position

remove() Removes the first item with the specified value

reverse() Reverses the order of the list

sort() Sorts the list

Dictionary functions and methods:

Method Descripti
on
clear() Remove all items form the dictionary.
Return a new dictionary with keys from seq and value
fromkeys(seq[, equal to v (defaults to None).
v])
Return the value of key. If key does not exit, return
get(key[,d]) d (defaults to None).
items() Return a new view of the dictionary's items (key,
value).
keys() Return a new view of the dictionary's keys.
Remove the item with key and return its value or d if
pop(key[,d])
key is not found. If d is not provided and key is not
found, raises
KeyError.
Remove and return an arbitary item (key, value).
popitem() Raises KeyError if the dictionary is empty.

update([other]) Update the dictionary with the key/value pairs


from other, overwriting existing keys.
values() Return a new view of the dictionary's values
remove() It removes or pop the specific item of dictionary
del( ) Deletes a particular item
len( ) we use len() method to get the length of dictionary
SQL, GROUPING QUERIES
Feature DDL (Data Definition Language) DML (Data Manipulation Language)
Defines and modifies the structure Manages and manipulates data within those
Purpose
of database objects structures
Commands CREATE, ALTER, DROP, TRUNCATE SELECT, INSERT, UPDATE, DELETE
Used to create, modify, or Used to query and modify the data stored in the
Functionality
remove database schemas and database
objects
Defining the structure of Performing operations on data such as
Usage
database objects retrieving, adding, updating, or deleting records

Feature CHAR VARCHAR


Fixed length; pads with spaces if data Variable length; stores only the actual
Storage
is shorter than the defined length length of data
Always uses the defined length, which
Memory Uses only the space needed for the actual
can lead to wasted space if the data is
Consumption data plus a small overhead for length
shorter
storage
CHAR(10) will store "ABC" as "ABC VARCHAR(10) will store "ABC" as
Example
" (with 7 trailing spaces) "ABC" (no trailing spaces)
Flexibility Less flexible due to fixed length More flexible due to variable length

Feature NATURAL JOIN EQUI JOIN (INNER JOIN)


A type of join that automatically joins A type of join that explicitly specifies the
Definition tables based on columns with the same condition for joining tables based on equality
name and data type between specified columns
Joins tables based on all columns with
Column Joins tables based on specified columns that
the same name and compatible data
Matching are compared for equality
types
sql SELECT * FROM table1 sql SELECT * FROM table1 INNER JOIN
Syntax NATURAL JOIN table2; table2 ON table1.column =
table2.column;
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
Feature NATURAL JOIN EQUI JOIN (INNER JOIN)
sql SELECT * FROM Employees INNER
sql SELECT * FROM Employees
Example NATURAL JOIN Departments;
JOIN Departments ON Employees.DeptID
= Departments.DeptID;
Automatically eliminates duplicate All specified columns are included, and
Duplicates
columns with the same name in duplicates are not automatically removed unless
Handling
the result set specified in the SELECT clause

1 Consider the tables Admin and Transport given below: 1x


Table: Admin 4
6 =
S_id S_name Address S_type 4
S001 Sandhya Rohini Day Boarder
S002 Vedanshi Rohtak Day Scholar
S003 Vibhu Raj Nagar NULL
S004 Atharva Rampur Day Boarder

Table: Transport

S_id Bus_no Stop_name


S002 TSS10 Sarai Kale Khan
S004 TSS12 Sainik Vihar
S005 TSSl0 Kamla Nagar

Write SQL queries for the following:

(i) Display the student and their stop name the tables Admin
name from and
Transport.
An SELECT S_name, Stop_name FROM Admin, Transport
s WHERE Admin.S_id = Transport.S_id;

(ii) Display the number of students whose S_type is not known.

An SELECT COUNT(*) FROM


s Admin WHERE S_type IS
NULL;

(iii) Display all details of the students whose name starts with 'V' .

An SELECT * FROM Admin


s WHERE S_name LIKE 'V
%';

OR
Any other correct query using/without using join
(iv) Display student id and address in alphabetical order of student name, from
the table
Admin.
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
Ans SELECT S_id, Address FROM
Admin ORDER BY S_name;

1 Consider the tables GAMES and PLAYERS given below : 4

7 Table : GAMES
GCode GameName Type Number PrizeMoney
101 Carrom Board Indoor 2 5000
102 Badminton Outdoor 2 12000
103 Table Tennis Indoor 4 NULL
104 Chess Indoor 2 9000
105 Lawn Tennis Outdoor 4 25000

Table : PLAYERS
PCode Name GCode
1 Nabi Ahmad 101
2 Ravi Sahai 108
3 Jatin 101
4 Nazneen 103
Write SQL queries for the following :

(i) Display the game type and average number of games played in each type.

Ans SELECT Type, AVG(Number) FROM


GAMES GROUP BY Type;
(ii) Display prize money, name of the game,
and name of the players from the
tables Games and Players.
Ans SELECT PrizeMoney, GameName, Name FROM
GAMES, PLAYERS WHERE
GAMES.GCode=PLAYERS.GCode;
(iii) Display the types of games without
repetition.
Ans SELECT DISTINCT TYPE FROM GAMES;
OR
Any other correct equivalent query
with/without using join
(iv) Display the name of the game and prize
money of those games whose prize money
is known.
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
Ans SELECT GameName, PrizeMoney FROM GAMES
WHERE PrizeMoney IS NOT NULL;
OR
Any other correct equivalent query
with/without using join

PYTHON INTERFACE WITH MYSQL

1+
18 (A) (i) Define Cartesian Product with respect to RDBMS.
4
=5
Ans Cartesian Product operation combines rows/tuples from two
tables/relations. It results in all the pairs of rows from both the
tables. It is denoted by 'X'.
Sunil wants to write a program in Python to update the quantity to 20 of the
records whose item code is 111 in the table named shop in MySQL
database named Keeper. The table shop in MySQL contains the following
attributes :
● Item_code: Item code (Integer)
● Item_narne: Name of item (String)
● Qty: Quantity of item (Integer)
● Price: Price of item (Integer)
Consider the following to establish connectivity between Python and
MySQL: Username: admin
Password : Shopping
Host: localhost

Ans import pymysql as pm


DB=pm.connect(host="localhost",user="admin",\
passwd="Shopping", database="Keeper")
MyCursor=DB.cursor()
SQL=f"UPDATE SHOP SET QTY=%S WHERE ITEM_CODE=%S"%(20,111)
# OR
SQL="UPDATE SHOP SET QTY=20 WHERE ITEM_CODE=111"
MyCursor.execute(SQL)
DB.commit()

(B) (i) Give any two features of SQL.

Any two of the following


● Full form is Structured Query Language.
● Is used to retrieve and view specific data from a table in a
database.
● Is case insensitive
● Each query in SQL ends with a semicolon (;)
● It contains DDL and DML
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
19 (ii) Sumit wants to write a code in Python to display all the details of the
passengers from the table flight in MySQL database, Travel. The table
contains the following attributes:
F_ code : Flight code (String)

F_name: Name of flight (String)


Source: Departure city of flight (String)
Destination: Destination city of flight (String)
Consider the following to establish connectivity between Python and MySQL:
● Username : root
● Password : airplane
● Host : localhost

Ans import pymysql as pm

DB=pm.connect(host="localhost",user="root",\
password="airplane",database="Travel")
MyCursor=DB.cursor()
MyCursor.execute("SELECT * FROM Flight ")
Rec=MyCursor.fetchall()
for R in
Rec: print
(R)

OR
Any other correct variation of the code
2 Logistic Technologies Ltd. is a Delhi based organization which is
expanding its office set-up to Ambala. At Ambala office campus, they are
5

0 planning to have 3 different blocks for HR, Accounts and Logistics related
work. Each block has a number of computers, which are required to be
connected to a network for communication, data and resource sharing.

As a network consultant, you have to suggest the best network


related solutions for them for issues/problems raised in (i) to (v),
keeping in mind the distances between various block/locations and
other given parameters.

Distances between various blocks/locations :

HR Block to Accounts Blocks 400 meters

Accounts Block to Logistics Block 200 meters

Logistics Block to HR Block 150 meters

Delhi Head Office to Ambala Office 220

Km Number of computers installed at various blocks are

as follows :

HR Block 70

Accounts Block 40

Logistics Block 30
(i) Suggest the most appropriate block/location to house the SERVER in

the Ambala office. Justify your answer.


Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
Ans HR Block as it has maximum number of
computers OR
Any other block/location with valid justification

(ii) Suggest the best wired medium to efficiently connect various blocks within
the Ambala office compound.

Ans Optical Fiber

(iii) Draw an ideal cable layout (Block to Block) for connecting these blocks
for wired connectivity.

Ans

(iv) The company wants to schedule an online conference between the


managers of Delhi and Ambala offices. Which protocol will be used for
effective voice communication over the Internet ?

Ans VoIP

OR
Any valid protocol used for voice communication

(v) Which kind of network will it be between Delhi office and Ambala office ?

Ans WAN

OR
Any other cable layout with valid justification

(iv) The company wants to schedule an online conference between the


managers of Delhi and Ambala offices. Which protocol will be used for
effective voice communication over the Internet ?

Ans VoIP

OR
Any valid protocol used for voice communication

(v) Which kind of network will it be between Delhi office and Ambala office ?

Ans WAN
Learning Enhancement Programme (LEP) and Remedial teaching material
Computer Science Class 12
Q Quickdev, an IT based firm, located in Delhi is planning to set up a
21 network for its four branches within a city with its Marketing
department in Kanpur. As a network professional, give solutions to
the questions (i) to (v), after going through the branches locations
and other details which are given below:

Distance between various branches is as follows :

Number of computers in each of the branches :

(i) Suggest the most suitable place to install the server for the Delhi 1
branch with a suitable reason.
Branch D, as it has maximum number of
Ans computers OR any other location with valid
justification
(ii) Suggest an ideal layout for connecting all these branches within 1
Delhi.
Ans

(Based on Server Location) (Based on minimum distance


between
branches)
Learning Enhancement Programme (LEP) and Remedial
teaching material Computer Science Class 12
(iii) Which device will you suggest, that should be placed in each of 1
these branches to efficiently connect all the computers within these
branches ?
Ans. Switch/Hub/Router
(iv) Delhi firm is planning to connect to its Marketing department in 1
Kanpur which
is approximately 300 km away. Which type of network out of LAN,
WAN or MAN will be formed ? Justify your answer.
Ans. WAN – as the network is spread across different geographical
locations of the country.
(v) Suggest a protocol that shall be needed to provide help for 1
transferring of files between Delhi and Kanpur branch.
Ans. FTP

You might also like