Network Setup for Hyderabad-Bengaluru Link
Network Setup for Hyderabad-Bengaluru Link
1. What are hubs? How are active hubs different from passive hubs? [3]
2. What do you understand by Traceroute in networking. [3]
3. What is Ping network tool? [3]
4. What are the different types of networks? [3]
5. What are the facilities provided by the SERVER in a Network environment? [3]
6. What is the difference between IMAP and POP? [3]
7. What are the components required for networking? [3]
8. What is the difference between Hub, Switch, and Router? [3]
9. Mention one advantage of networking. [3]
10. What is a network? Why is it needed? [3]
11. What are protocols? What is the significance of protocols in networks? [3]
12. What is a tracert or traceroute command? [3]
13. What are bridges? How do they differ from repeaters? [3]
14. Define the following terms: [3]
i. ipconfig
ii. nslookup
iii. speed test
15. What is SSH? [3]
16. Distinguish between private and public cloud? [3]
17. Differentiate between PAN and LAN type of networks, giving two examples of each. [3]
18. What is CSMA/CA? How does it work? [3]
19. What is switching techniques? Explain any two switching technique. [4]
20. Expertia Professional Global (EPG) in an online corporate training provider company for IT related courses. The [4]
company is setting up their new campus in Mumbai. You as a network expert have to study the physical
locations of various buildings and the number of computers to be installed. In the planning phase, provide the
best possible answers for the queries (i) to (v) raised by them.
1 / 36
Physical locations of the buildings of EPG
From To Distance
Buildings Computers
Administrative Building 20
Finance Building 40
i. Suggest the most appropriate building, where EPG should plan to install the server.
ii. Suggest the most appropriate building to building cable layout to connect all three buildings for efficient
communication.
iii. Which type of network out of the following is formed by connection the computers of these three buildings?
a. LAN
b. MAN
c. WAN
iv. Which wireless channel out of the following should be opted by EPG to connect to students of all over the
world?
a. Infrared
b. Microwave
c. Satellite
v. Expand the following
WAN
MAN
21. What are repeaters and routers? [4]
22. What is DNS and also explain its functions? [4]
23. Learn Together is an educational NGO. It is setting up its new campus at Jabalpur for its web-based activities. [4]
The campus has four compounds as shown in the diagram below:
2 / 36
Centre to centre distance between various compounds as per architectural drawing (in m) is as follows
Main Compound 5
Resource Compound 15
Finance Compound 20
3 / 36
Distance between the various blocks is as follows
A to B 40 m
B to C 120 m
C to D 100 m
A to D 170 m
B to D 150 m
A to C 70 m
4 / 36
Building GREEN to Building BLUE 45 m
Number of computers
Building GREEN 32
Building BLUE 45
Head Office 10
i. Suggest the most suitable place (i.e. building) to house the server of this organisation. Also, give a reason to
justify your suggested location.
ii. Suggest a cable layout of connections between the buildings inside the campus.
iii. Suggest the placement of the following devices with justification:
a. Switch
b. Repeater
iv. The organisation is planning to provide a high speed link with its head office situated in the Mumbai using a
wired connection. Which of the following cables will be most suitable for this job?
a. Optical fibre
b. Co-axial cable
c. Ethernet cable
v. What is the use of firewall in network?
26. Tech Up Corporation (TUC) is a professional consultancy company. The company is planning to set up their [4]
new offices in India with its hub at Hyderabad. As a network adviser, you have to understand their requirement
and suggest to them the best available solutions. Their queries are mentioned as (i) to (v) below.
Physical locations of the blocks of TUC
Conference Finance 80
Block Computers
5 / 36
Human Resource 125
Finance 25
Conference 60
i. What will the most appropriate block, where TUC should plan to install their server?
ii. Draw a block to block cable layout to connect all the buildings in the most appropriate manner for efficient
communication.
iii. What will be the best possible connectivity out of the following, you will suggest to connect the new setup of
offices in Bengalore with its London based office?
Infrared
Satellite Link
Ethernet Cable
iv. Which of the following devices will be suggested by you to connect each computer in each of the buildings?
Gateway
Switch
Modem
v. Company is planning to connect its Block in Hyderabad which is more than 20 km. Which type of network
will be formed?
27. Trine Tech Corporation (TTC) is a professional consultancy company. The company is planning to set up their [4]
new offices in India with its hub at Hyderabad. As a network adviser, you have to understand their requirement
and suggest them the best available solutions. Their queries are mentioned as (i) to (v) below.
Conference Finance 80
Block Computers
Human Resource 25
Finance 120
Conference 90
i. Which will be the most appropriate block, where TTC should plan to install their server?
6 / 36
ii. Draw a block to block cable layout to connect all the buildings in the most appropriate manner for efficient
communication.
iii. What will be the best possible connectivity out of the following, you will suggest to connect the new set up
of offices in Bengalore with its London based office.
Satellite Link
Infrared
Ethernet
iv. Which of the following device will be suggested by you to connect each computer in each of the buildings?
Switch Modem
Gateway
v. Company is planning to connect its offices in Hyderabad which is less than 1 km. Which type of network
will be formed?
28. China Middleton Fashion is planning to expand their network in India, starting with two cities in India of [4]
provide infrastructure for distribution of their product. The company has planned to set up their main office units
in Chennai at the different locations and has named their offices as Production Unit, Finance Unit and Media
Unit. The company has its Corporate Unit in Delhi. A rough layout of the same is as follows:
From To Distance
In continuation of the above, the company experts have planned to install the following number of
computers in each of their office units
Finance Unit 35
Media Unit 10
Corporate Unit 30
i. Suggest the kind of network required (out of LAN, MAN, WAN) for connecting each of the following office
units:
Production Unit and Media Unit
Production Unit and Finance Unit.
7 / 36
ii. Which one of the following device will you suggest for connecting all the computers within each of their
office units?
Switch/Hub
Modem
Telephone
iii. Which of the following communication media, will you suggest to be procured by the company for
connecting their local office units in Chennai for very effective (high speed) communication?
Telephone cable
Optical fiber
Ethernet cable
iv. Suggest a cable/wiring layout for connecting the company's local office units located in Chennai. Also,
suggest an effective method/technology for connecting the company's office unit located in Delhi.
v. Suggest the most suitable place to install the server with reason.
29. G.R.K International Inc. is planning to connect its Bengaluru Office Setup with its Head Office in Delhi. The [4]
Bengaluru Office G.R.K. International Inc. is spread across an area of approx. 1 square kilometres consisting of
3 blocks. Human Resources, Academics and Administration. You as a network expert have to suggest answers to
the four queries (i) to (v) raised by them.
Note Keep the distances between blocks and number of computers in each block in mind, while providing them
the solutions.
Administration 20
Academics 100
i. Suggest the most suitable block in the Bengaluru Office Setup to host the server. Give a suitable reason with
your suggestion.
ii. Suggest the cable layout among the various blocks within the Bengaluru Office Setup for connecting the
blocks.
8 / 36
iii. Suggest a suitable networking device to be installed in each of the blocks essentially required for connecting
computers inside the blocks with fast and efficient connectivity.
iv. Suggest the most suitable media to provide secure, fast and reliable data connectivity between Delhi Head
Office and the Bengaluru Office Setup.
v. Expand the following
WAN
LAN
30. Institute of Distance Learning is located in Pune and is planning to go in for networking of four wings for better [4]
interaction. The details are shown below:
Number of computers
Admission Wing 50
Admin Wing 10
Lib Wing 25
i. Suggest the type of networking (LAN, MAN, WAN) for connecting Lib Wing to Admin Wing. Justify your
answer.
ii. Suggest the most suitable place (i.e. wing) to house the server, with a suitable reason.
iii. Suggest and placement of the following devices with reasons.
a. Repeater
b. Switch
iv. The Institute is planning to link its study centre situated in Delhi. Suggest an economic way to connect it
with reasonably high speed. Justify your answer.
v. Expand the following
PAN
WAN
31. Explain the common E-mail protocols. [4]
9 / 36
32. A school library is connecting computers in its units in a LAN. The library has 3 units as shown in the diagram [4]
below:
From To Distance
10 / 36
Research Lab Back Office 110 m
In continuation of the above, the company experts have planned to install the following number of
computers in each of their offices
Back Office 79
Development Unit 90
Corporate Unit 51
i. Suggest the type of network required (out of LAN, MAN, WAN) for connecting each of the following office
units.
Research Lab and Back Office
Research Lab and Development Unit.
ii. Which one of the following device, will you suggest for connecting all the computers with in each of their
office units?
Switch/Hub
Modem
Telephone.
iii. Which of the following communication medium, will you suggest to be procured by the company for
connecting their local office units in Pondicherry for very effective (high speed) communication?
Telephone cable
Optical fibre
Ethernet cable.
iv. Suggest a cable/wiring layout for connecting the company’s local office units located in Pondicherry. Also,
suggest an effective method/technology for connecting the company's office unit located in Mumbai.
v. Which building is suitable to install the server with suitable reason?
35. Freshminds University of India is starting its first campus in Anna Nagar of South India with its centre [4]
admission office in Kolkata. The university has three major blocks comprising of Office block, Science block
and Commerce block is in 5 km area campus.
As a network expert, you need to suggest the network plan as per (i) to (v) to the authorities keeping in mind the
11 / 36
distance and other given parameters.
Expected number of computers to be installed at various locations in the university are as follows:
Office Block 10
Commerce Block 30
i. Suggest the authorities, the cable layout amongst various blocks inside university campus for connecting the
blocks.
ii. Suggest the most suitable place (i.e. block) to house the server for this university with a suitable reason.
iii. Suggest an efficient device form the following to be installed in each of the block to connect all the
computers.
a. Modem
b. Switch
c. Gateway
iv. Suggest the most suitable (very high speed) service to provide data connectivity between admission office
located in Kolkata and the campus located in Anna Nagar form the following options:
Telephone line
Fixedline dial-up connection
Co-axial cable network
GSM
Leased line
Satellite connection.
v. University is planning to connect its campus in Kolkata which is more than 100 km. Which type of network
will be formed?
36. Eduminds University of India is starting its campus in a small town Parampur of Central India with its centre [4]
admission office in Delhi. The university has three major buildings comprising of Admin building, Academic
12 / 36
building and Research building in 5 km area campus.
As a network expert, you need to suggest the network plan as per (i) to (v) to the authorities keeping in mind the
distances and other given parameters.
Expected number of computers to be installed at various locations in the university are as follows
Research Building 20
Admin Building 35
i. Suggest the authorities, the cable layout amongst various buildings inside the university campus for
connecting the buildings.
ii. Suggest the most suitable place (i.e. building) to house the server of this organisations with a suitable reason.
iii. Suggest an efficient device for the following to be installed in each of the building to connect all the
computers
a. Gateway
b. Modem
c. Switch
iv. Suggest the most suitable (very high speed) service to provide data connectivity between admission building
located in Delhi and the campus located in Parampur form the following options:
Telephone line
Fixedline dial-up connection
Co-axial cable network
GSM
Leased line
Satellite connection.
v. University is planning to connect its campus in Delhi which is less than 100 km. Which type of network will
be formed?
37. What is server side script? Which languages are used for server side scripts? Explain them. [4]
38. Quickdev, an IT based firm, located in Delhi is planning to set up a network for its four branches within a city [4]
with its Marketing department in Kanpur. As a network professional, give solutions to the questions (i) to (v),
13 / 36
after going through the branches locations and other details which are given below:
Branch Distance
Branch A to Branch B 40 m
Branch A to Branch C 80 m
Branch A to Branch D 65 m
Branch B to Branch C 30 m
Branch B to Branch D 35 m
Branch C to Branch D 15 m
Branch A 15
Branch B 25
Branch C 40
Branch D 115
i. Suggest the most suitable place to install the server for the Delhi branch with a suitable reason.
ii. Suggest an ideal layout for connecting all these branches within Delhi.
iii. Which device will you suggest, that should be placed in each of these branches to efficiently connect all the
computers within these branches?
iv. Delhi firm is planning to connect to its Marketing department in Kanpur which is approximately 300 km
away. Which type of network out of LAN, WAN or MAN will be formed? Justify your answer.
v. Suggest a protocol that shall be needed to provide help for transferring of files between Delhi and Kanpur
branch.
39. Vidya for All is an educational NGO. It is setting up its new campus at Jaipur for its web-based activities. The [4]
campus has four buildings as shown in the diagram below:
Centre to centre distance between various buildings as per architectural drawing (in m) is as follows
14 / 36
Main Building to Training Building 40 m
Main Building 15
Resource Building 25
Accounts Building 10
Number of computers
Building RAVI 25
15 / 36
Building GANGA 51
Head Office 10
i. Suggest the most suitable place (i.e. block) to house the server of this organisation. Also, give a reason to
justify your suggested location.
ii. Suggest a cable layout of connections between the building inside the campus.
iii. Suggest the placement of the following devices with justification:
a. Switch
b. Repeater
iv. The organisation is planning to provide a high speed link with its head office situated in the Kolkata using a
wired connection. Which of the following cable will be most suitable for this job?
a. Optical fibre
b. Co-axial cable
c. Ethernet cable
v. Consultancy is planning to connect its office in Faridabad which is more than 10 km from Head office.
Which type of network will be formed?
43. Gargi Education Service Ltd. is an educational organisation. It is planning to set up its India campus at Nepal [4]
with its head office at Mumbai. The Nepal campus has 4 main buildings-ADMIN, ENGINEERING, BUSINEES
and MEDIA. You as a network expert have to suggest the best network related solutions for their problems
raised in (i) to (v), keeping in mind the distance between the buildings and other given parameters.
ADMIN To ENGINEERING 50 m
ADMIN To BUSINESS 80 m
ADMIN To MEDIA 45 m
ENGINEERING To BUSINESS 60 m
ENGINEERING To MEDIA 50 m
BUSINESS To MEDIA 45 m
ADMIN 110
ENGINEERING 75
BUSINESS 40
MEDIA 10
16 / 36
Mumbai Head Office 20
i. Suggest the most appropriate location of the server inside the Nepal Campus (out of 4 buildings), to get the
best connectivity for maximum number of computers. Justify your answer.
ii. Suggest and draw the cable layout to efficiently connect various buildings within the Nepal Campus for
connecting the computers.
iii. Which hardware device will you suggest to be procured by the company to be installed to protect and control
the Internet uses within the campus.
iv. Which of the following will you suggest to establish the online face-to-face communication between the
people in the ADMIN office of Nepal Campus and Mumbai Head Office?
a. Cable TV
b. E-mail
c. Video Conferencing
d. Text Chat
v. Expand the following
MAN
PAN
44. Quick Learn University is setting up its academic blocks at Prayag Nagar and planning to set up a network. The [4]
university has three academic blocks and one human resource centre as shown in the diagram below:
Law Block 15
Technology Block 40
HR Centre 115
Business Block 25
17 / 36
i. Suggest the most suitable place (i.e. block/centre) to install the server of this university with a suitable
reason.
ii. Suggest an ideal layout for connecting these block/centre for a wired connectivity.
iii. Which device you will suggest to be placed/installed in each of these blocks/centre to efficiently connect all
the computers within these blocks/centre?
iv. The university is planning to connect its admission office in the closest big city, which is more than 250 km
from university, which type of network out of LAN, MAN or WAN will be formed? Justify your answer.
v. Expand the following
LAN
WAN
45. Learn Together is an educational NGO. It is setting up its new campus at Jabalpur for its web-based activities. [5]
The campus has 4 compounds as shown in the diagram below:
Center to center distances between various Compounds as per architectural drawings (in Metre) is as follows:
Main Compound 5
Resource Compound 15
Accounts Compound 20
i. Suggest the most suitable place (i.e., compound) to house the server for this NGO. Also, provide a suitable
reason for your suggestion.
ii. Suggest the placement of the following devices with justification:
a. Repeater
b. Hub/Switch
iii. The NGO is planning to connect its International office situated in Mumbai, which out of the following
wired communication link, you will suggest for very high-speed connectivity?
a. Telephone Analog Line
b. Optical Fiber
18 / 36
c. Ethernet Cable
46. Granuda Consultants are setting up a secured network for their office campus at Faridabad for their day to day [5]
office and web-based activities. They are planning to have connectivity between 3 buildings and the head office
situated in Kolkata. Answer the questions (i) to (iv) after going through the building positions on the campus and
other details, which are given below:
Number of Computers
Building "RAVI" 25
Building "GANGA" 51
Head Office 10
i. Suggest the most suitable place (i.e.r block) to house the server of this organization. Also, give a reason to
justify your suggested location.
ii. What type of network will be formed if all buildings are connected?
iii. Suggest the placement of the following devices with justification:
a. Switch
b. Repeater
iv. The organization is planning to provide a high-speed link with its head office situated in the KOLKATA
using a wired connection. Which of the following cables will be most suitable for this job?
a. Optical Fibre
b. Co-axial Cable
c. Ethernet Cable
47. Knowledge Supplement Organisation has set up its new center at Mangalore for its office and web-based [5]
activities. It has 4 blocks of buildings as shown in the diagram below:
Block A to Block B 50 m
19 / 36
Block C to Block D 25 m
Number of Computers
Block A 25
Block B 50
Block C 125
Block D 10
VILLAGE 1 to B_TOWN 2 KM
B_TOWN 120
VILLAGE 1 15
VILLAGE 2 10
VILLAGE 3 15
20 / 36
A_CITY Head OFFICE 6
Note:
In Villages, there are community centers, in which one room has been given as a training center for this
organization to install computers.
The organization has got financial support from the government and top IT companies.
i. Suggest the most appropriate location of the SERVER in the B_HUB (out of the 4 locations), to get the best
and effective connectivity. Justify your answer.
ii. Suggest the best-wired medium and draw the cable layout (location to location) to efficiently connect various
locations within the B_HUB.
iii. Which hardware device will you suggest to connect all the computers within each location of B_HUB?
iv. Which service/protocol will be most helpful to conduct live interactions of Experts from Head Office and
people at all locations of B_HUB?
49. Trine Tech Corporation (TTC) is a professional consultancy company. The company is planning to set up its new [5]
offices in India with its hub at Hyderabad. As a network adviser, you have to understand their requirement and
suggest to them the best available solutions. Their queries are mentioned as (i) to (iv) below.
Physical Locations of the blocks of TTC
Conference Finance 80
Block Computers
Human Resource 25
Finance 120
Conference 90
i. What will be the most appropriate block, where TTC should plan to install their server?
ii. Draw a block diagram showing a cable layout to connect all the buildings in the most appropriate manner for
efficient communication.
iii. What will be the best possible connectivity out of the following, you will suggest connecting the new setup
of offices in Bengaluru with its London based office.
Satellite Link
Infrared
Ethernet Cable
iv. Which of the following device will be suggested by you to connect each computer in each of the buildings?
21 / 36
Switch
Modem
Gateway
50. Workalot Consultants are setting up a secured network for their office campus at Gurgaon for their day-to-day [5]
office and web-based activities. They are planning to have connectivity between 3 buildings and the head office
situated in Mumbai. Answer the questions (i) to (iv) after going through the building positions on the campus
and other details, which are given below:
Number of Computers:
Building "GREEN" 32
Building "BLUE" 45
Head Office 10
i. Suggest the most suitable place (i.e.f building) to house the server of this organization. Also give a reason to
justify your suggested location.
ii. Suggest a connection medium to connect Gurgaon office with Headoffice.
iii. Suggest the placement of the following devices with justification:
a. Switch
b. Repeater
iv. The organization is planning to provide a high-speed link with its head office situated in MUMBAI using a
wired connection. Which of the following cables will be most suitable for this job?
a. Optical Fibre
b. Co-axial Cable
c. Ethernet Cable
51. "Hindustan Connecting World Association" is planning to start their offices in four major cities in India to [5]
provide regional IT infrastructure support in the field of Education & Culture. The company has planned to
setup their head office in New Delhi in three locations and have named their New Delhi offices as "Sales
Office", "Head Office" and "Tech Office". The company's regional offices are located in "Coimbatore",
"Kolkata" and "Ahmedabad".
A rough layout of the same is as follows:
22 / 36
Approximate distance between these offices as per network survey team is as follows:
In continuation of the above, the company experts have planned to install the following number of computers in
each of their offices:
Sales Office 20
Tech Office 50
Kolkata Office 50
Ahmedabad Office 50
Coimbatore Office 50
i. Suggest network type (out of LAN, MAN, WAN) for connecting each of the following set of their offices:
Head Office and Tech Office
Head Office and Coimbatore Office
ii. Which device you will suggest to be produced by the company for connecting all the computers with in each
of their offices out of the following devices?
Switch/Hub
Modem
Telephone
iii. Which of the following communication media, you will suggest to be procured by the company for
connecting their local offices in New Delhi for very effective and fast communication?
Telephone Cable
Optical Fibre
Ethernet Cable
iv. Suggest an effective method/technology for connecting the company's regional offices at "Kolkata",
"Coimbatore" and "Ahmedabad".
52. The Freshminds University of India is starting its first campus in Ana Nagar of South India with its center [5]
admission office in Kolkata. The university has 3 major blocks comprising of Office Block, Science Block and
23 / 36
Commerce Block in the 5 km area Campus.
As a network expert, you need to suggest the network plan as per (i) to (iv) to the authorities keeping in mind the
distance and other given parameters.
Expected Wire distances between various locations:
Expected number of Computers to be installed at various locations in the University are as follows:
Office Block 10
Commerce Block 30
24 / 36
Center to center distances between various building is as follows:
Harsh Building 15
Fazz Building 15
Jazz Building 25
i. Suggest the most suitable place (i.e., building) to house the server of this organisation with a suitable reason.
ii. Suggest the placement of the following devices with justification:
a. Internet Connecting Device/Modem
b. Switch
iii. The organisation is planning to link its sale counter situated in various parts of the same city, which type of
network out of LAN, MAN or WAN will be formed? Justify your answer.
54. Great Studies University is setting up its Academic schools at Sunder Nagar and planning to set up a network. [5]
The university has 3 academic schools and one administration centre as shown in the diagram below:
25 / 36
Business School to Admin Center 45 m
Law School 25
Technology School 50
Business School 35
i. Suggest the most suitable place (i.e., Schools/Center) to install the server of this university with a suitable
reason.
ii. Suggest the most efficient connecting medium for connecting these Schools/center for wired connectivity.
iii. Which device you will suggest to be placed/installed in each of these Schools! center to efficiently connect
all the computers within these Schools/center?
iv. The university is planning to connect its admission office in the closest big city, which is more than 350 km
from the university. Which type of network out of LAN, MAN or WAN will be formed? Justify your answer.
55. Quick Learn University is setting up its Academic blocks at Prayag Nagar and planning to set up a network. The [5]
university has 3 academic blocks and one Human Resource Center as shown in the diagram below:
Law Block 15
Technology Block 40
HR Center 115
Business Block 25
i. Suggest the most suitable place (i.e., Block/Center) to install the server of this university with a suitable
reason.
26 / 36
ii. What type of network will be formed if all these blocks are connected?
iii. Which device you will suggest to be placed/installed in each of these blocks/center to efficiently connect all
the computers within these blocks/center?
iv. The university is planning to connect its admission office in the closest big city, which is more than 250 km
from university, which type of network out of LAN, MAN or WAN will be formed? Justify your answer.
56. Ayurveda Training Educational Institute is setting up its Centre in Hyderabad with three specialized departments [5]
for Orthopaedics, Neurology and Paediatrics along with an administrative office in separate buildings. The
physical distances between these department buildings and the member of computers to be installed in these
departments and administrative offices are given as follows. You, as a network expert have the shortest distances
between various locations in meters:
Paediatrics unit 40
Neurology unit 50
Orthopedics unit 80
i. Suggest the most suitable location for the main server of this institution to get efficient connectivity.
ii. Suggest the cable layout for effective network connectivity of the building having a server with all the other
buildings.
iii. Suggest a device to be installed in each of these building for connecting computers installed within the
building out of the following:
Gateway
Modem
Switch
iv. Suggest the topology of the network and network cable for efficiently connecting in each of the building one
of the following: Topologies: Bus Topology, Star Topology, Network Cable: Single Pair Telephone Cable,
Coaxial Cable, Ethernet Cable.
57. Write SQL queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), Which are based on the table. [5]
Table: CUSTOMER
27 / 36
CNO CNAME ADDRESS
Table: TRANSACTION
TABLE: MEMBER
28 / 36
M103 S ARTHAKJ OHN FI 02 2017-02-23
105 SUV 40
104 CAR 20
Note:
PERKM is Freight Charges per kilometre
TTYPE is Transport Vehicle Type
TABLE: TRIP
Note:
• NO is Driver Number
29 / 36
• KM is Kilometre travelled
• NOP is number of travellers travelled in a vehicle
• TDATE is Trip Date
i. To display NO, NAME, TDATE from the table TRIP in descending order of NO.
ii. To display the NAME of the drivers from the table TRIP, who are travelling by transport vehicle with code
101 or 103.
iii. To display the NO and NAME of those drivers from the table TRIP who travelled between 2015-02-10 and
2015-04-01.
iv. To display all the details from table TRIP in which the distance travelled is more than 100 KM in ascending
order of NOP
v. SELECT COUNT (*), TCODE From TRIP
GROUP BY TCODE HAVING COUNT (*) > 1;
vi. SELECT DISTINCT TCODE from TRIP;
vii. SELECT [Link], NAME, TTYPE
FROM TRIP A, TRANSPORT B
WHERE [Link] = B. TCODE AND KM < 90;
viii. SELECT NAME, KM * PERKM
FROM TRIP A, TRANSPORT B
WHERE A. TCODE = B. TCODE AND A. TCODE = '105';
60. Write queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), which are based on the tables [5]
Table: VEHICLE
V05 SUV 30
V04 CAR 18
Table: TRAVEL
30 / 36
Note:
• PERKM is Freight Charges per kilometre.
• Km is kilometres Travelled
• NOP is number of passengers travelled in vehicle.
i. To display CNO, CNAME, TRAVELDATE from the table TRAVEL in descending order of CNO
ii. To display the CNAME of all customers from the table TRAVEL who are travelling by vehicle with code
V01 or V02
iii. To display the CNO and CNAME of those customers from the table TRAVEL who travelled between 2015-
12- 31 and 2015-05-01
iv. To display all the details from table TRAVEL for the customers, who have travel distance more than 120 KM
in ascending order of NOP
v. SELECT COUNT (*), VCODE FROM TRAVEL GROUP BY VCODE HAVING COUNT (*) > 1
vi. SELECT DISTINCT VCODE FROM TRAVEL
vii. SELECT [Link], CNAME, VEHICLETYPE FROM TRAVEL A, VEHICLE B WHERE A. VCODE =
B. VCODE and KM < 90
viii. SELECT CNAME, KM*PERKM FROM TRAVEL A, VEHICLE B WHERE [Link] = [Link] AND
A. VCODE 'V05'
61. Consider the following tables CARDEN and CUSTOMER and answer (b) and (c) parts of this question: [5]
Table: CARDEN
Table: CUSTOMER
a. Give a suitable example of a table with sample data and illustrate Primary and Alternate Keys in it.
b. Write SQL commands for the following statements:
a. To display the names of all the silver-colored cars.
b. To display names of car, make and capacity of cars in descending order of their sitting capacity.
c. To display the highest charges at which a vehicle can be hired from CARDEN.
d. To display the customer name and the corresponding name of the cars hired by them.
c. Give the output of the following SQL queries:
31 / 36
i. SELECT COUNT(DISTINCT Make)FROM CARDEN;
ii. SELECT MAX(Charges), MIN(Charges) FROM CARDEN;
iii. SELECT COUNT(*), Make FROM CARDEN;
iv. SELECT CarName FROM CARDEN WHERE Capacity=4;
62. Write SQL queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), which are based on the tables: [5]
DVD
Cl 02 Dhrupad Classical
MEMBER
i. To display all details from the table MEMBER in descending order of ISSUEDATE.
ii. To display the DCODE and DTITLE of all Folk Type DVDs from the table DVD.
iii. To display the Dtype and number of DVDs in each DTYPE from the table DVD.
iv. To display all NAME and ISSUEDATE of those members from the table MEMBER who have DVDs issued
(i.e., ISSUEDATE) in the year 2017.
v. SELECT MIN (ISSUEDATE) FROM MEMBER;
vi. SELECT DISTINCT DTYPE FROM DVD;
vii. SELECT [Link]. NAME, DTITLE: FROM DVD D, MEMBER M WHERE [Link]=[Link];
viii. SELECT DTITLE FROM DVD WHERE DTYPE NOT IN ("Folk", "Classical");
63. Write SQL commands for the queries (i) to (iv) and output for (v) to (viii) based on the tables 'Watches' and Sale [5]
given below.
Watches
Sale
32 / 36
Watchid Qty_Sold Quarter
W001 10 1
W003 5 1
W002 20 2
W003 10 2
W001 15 3
W002 20 3
W005 10 3
W003 15 4
i. TO DISPLAY ALL THE DETAILS OF THOSE WATCHES WHOSE NAME ENDS WITH TIME.
ii. TO DISPLAY WATCH'S NAME AND PRICE OF THOSE WATCHES WHICH HAVE PRICE RANGE IN
BETWEEN 5000-15000.
iii. TO DISPLAY TOTAL QUANTITY IN-STORE OF UNISEX TYPE WATCHES.
iv. TO DISPLAY WATCH NAME AND THEIR QUANTITY SOLD IN the FIRST QUARTER.
v. SELECT MAX (PRICE), MIN(QTY_STORE) FROM WATCHES;
vi. SELECT QUARTER, SUM(QTY_SOLD) FROM SALE GROUP BY QUARTER;
vii. SELECT WATCHNAME, PRICE, TYPE FROM WATCHES W, SALE S WHERE W. WATCHID!=
[Link];
viii. SELECT WATCHNAME, QTYSTORE, SUM (QTYSOLD), QTY_STORE - SUM (QTY_SOLD)
"STOCK" FROM WATCHES W, SALE S WHERE W. WATCHID = [Link] GROUP BY
[Link];
64. Write SQL queries for (i) to (vii) on the basis of table ITEMS and TRADERS: [5]
Table: ITEMS
Table: TRADERS
i. To display the details of all the items in ascending order of item names (i.e., INAME).
33 / 36
ii. To display item name and price of all those items, whose price is in the range of 10000 and 22000 (both
values inclusive).
iii. To display the number of items, which are traded by each trader. The expected output of this query should be:
T01 2 T02 2 T03 1
iv. To display the price, item name and quantity (i.e., qty) of those items which have quantity more than 150.
v. To display the names of those traders, who are either from DELHI or from MUMBAI.
vi. To display the names of the companies and the names of the items in descending order of company names.
vii. Obtain the outputs of the following SQL queries based on the data given in tables ITEMS and TRADERS
above.
a. SELECT MAX (PRICE), MIN (PRICE) FROM ITEMS;
b. SELECT PRICE*QTY FROM ITEMS WHERE CODE=1004;
c. SELECT DISTINCT TCODE FROM ITEMS;
d. SELECT INAME, TNAME FROM ITEMS I, TRADERS T WHERE [Link]=[Link] AND
QTY<100;
65. Consider the following tables CABHUB and CUSTOMER and answer (b) and (c) parts of this question: [5]
Table: CABHUB
Table: CUSTOMER
a. Give a suitable example of a table with sample data and illustrate Primary and alternate Keys in it.
b. Write SQL commands for the following statements:
i. To display the names of all the white-colored vehicles.
ii. To display the name of vehicle name and the capacity of vehicles in ascending order of their sitting
capacity.
iii. To display the highest charges at which a vehicle can be hired from CABHUB.
iv. To display the customer name and the corresponding name of the vehicle hired by them.
c. Give the output of the following SQL queries:
i. SELECT COUNT (DISTINCT Make) FROM CABHUB;
ii. SELECT MAX(Charges), MIN(Charges) FROM CABHUB;
34 / 36
iii. SELECT COUNT (*) Make FROM CABHUB;
iv. SELECT Vehicle FROM CABHUB WHERE Capacity=4;
66. Write SQL queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), which are based on the tables. [5]
TRAINER
COURSE
i. Display the Trainer Name, City & Salary in descending order of their Hiredate.
ii. To display the TNAME and CITY of Trainer who joined the Institute in the month of December 2001.
iii. To displayTNAME, HIREDATE, CNAME, STARTDATE from tables TRAINER and COURSE of all those
courses whose FEES is less than or equal to 10000. (iv) To display number of Trainers from each Ans. city.
iv. SELECT TID. TNAME, FROM TRAINER WHERE CITY NOT IN ('DELHT', 'MUMBAI');
v. SELECT DISTINCT TID EROM COURSE;
vi. SELECT TID, COUNT(*), MIN (FEES) FROM COURSE. CROUP BY TID HAVING COUNT(*)>1;
vii. SELECT COUNTS), SUM(FEES) FROM COURSE WHERE STARTDATE< '2018-09- 15';
67. Write SQL queries for (i) to (vii) on the basis of tables given below: [5]
Table: PRODUCTS
35 / 36
Table: SUPPLIERS
i. To display the details of all the products in ascending order of product names (i.e., PNAME).
ii. To display product name and price of all those products, whose price is in the range of 10000 and 15000
(both values inclusive).
iii. To display the number of products, which are supplied by each supplier, i.e., the expected output should be;
S01 2
S02 2
S03 1
iv. To display the price, product name, and quantity (i.e., qty) of those products which have a quantity of more
than 100.
v. To display the names of those suppliers, who are either from DELHI or from CHENNAI.
vi. To display the name of the companies and the name of the products in descending order of company names.
vii. Obtain the outputs of the following SQL queries based on the data given in tables PRODUCTS and
SUPPLIERS above.
a. SELECT DISTINCT SUPCODE FROM PRODUCTS;
b. SELECT MAX (PRICE), MIN (PRICE) FROM PRODUCTS;
c. SELECT PRICE*QTY FROM PRODUCTS WHERE PID = 104;
d. SELECT PNAME, SNAME FROM PRODUCTS P, SUPPLIERS S WHERE P. SUPCODE = S.
SUPCODE AND QTY >100;
36 / 36