Advertisements
Advertisements
Consider the table CLUB given below and write the output of the SQL queries that follow.
| CID | CNAME | AGE | GENDER | SPORTS | PAY | DOAPP |
| 5246 | AMRITA | 35 | FEMALE | CHESS | 900 | 2006- 03-27 |
| 4687 | SHYAM | 37 | MALE | CRICKET | 1300 | 2004- 04-15 |
| 1245 | MEENA | 23 | FEMALE | VOLLEYBALL | 1000 | 2007- 06-18 |
| 1622 | AMRIT | 28 | MALE | KARATE | 1000 | 2007- 09-05 |
| 1256 | AMINA | 36 | FEMALE | CHESS | 1100 | 2003- 08-15 |
| 1720 | MANJU | 33 | FEMALE | KARATE | 1250 | 2004- 04-10 |
| 2321 | VIRAT | 35 | MALE | CRICKET | 1050 | 2005- 04-30 |
- SELECT COUNT(DISTINCT SPORTS) FROM CLUB;
- SELECT CNAME, SPORTS FROM CLUB
WHERE DOAPP<"2006-04-30" AND CNAME LIKE "%NA"; - SELECT CNAME, AGE, PAY FROM CLUB WHERE GENDER = "MALE" AND PAY BETWEEN 1000 AND 1200;
Concept: SQL for Data Query
Consider the table Personal given below:
| Table: Personal | ||||
| P_ID | Name | Desig | Salary | Allowance |
| P01 | Rohit | Manager | 89000 | 4800 |
| P02 | Kashish | Clerk | NULL | 1600 |
| P03 | Mahesh | Superviser | 48000 | NULL |
| P04 | Salil | Clerk | 31000 | 1900 |
| P05 | Ravina | Superviser | NULL | 2100 |
Based on the given table, write SQL queries for the following:
- Increase the salary by 5% of personals whose allowance is known.
- Display Name and Total Salary (sum of Salary and Allowance) of all personals. The column heading ‘Total Salary’ should also be displayed.
- Delete the record of Supervisors who have salary greater than 25000.
Concept: SQL for Data Definition
Kabir wants to write a program in Python to insert the following record in the table named Student in MYSQL database,
SCHOOL:
- rno(Roll number) - integer
- name(Name) - string
- DOB (Date of birth) - Date
- Fee - float
Note the following to establish connectivity between Python and MySQL:
- Username - root
- Password - tiger
- Host - localhost
The values of fields rno, name, DOB and fee has to be accepted from the user. Help Kabir to write the program in Python.
Concept: Data Types and Constraints in MySQL
Consider the tables PRODUCT and BRAND given below:
| Table: PRODUCT | ||||
| PCode | PName | UPrice | Rating | BID |
| P01 | Shampoo | 120 | 6 | M03 |
| P02 | Toothpaste | 54 | 8 | M02 |
| P03 | Soap | 25 | 7 | M03 |
| P04 | Toothpaste | 65 | 4 | M04 |
| P05 | Soap | 38 | 5 | M05 |
| P06 | Shampoo | 245 | 6 | M05 |
| Table: BRAND | |
| BID | BName |
| M02 | Dant Kanti |
| M03 | Medimix |
| M04 | Pepsodent |
| M05 | Dove |
Write SQL queries for the following:
- Display product name and brand name from the tables PRODUCT and BRAND.
- Display the structure of the table PRODUCT.
- Display the average rating of Medimix and Dove brands.
- Display the name, price, and rating of products in descending order of rating.
Concept: SQL for Data Query
Zack is working in a database named SPORT, in which he has created a table named “Sports” containing columns SportId, SportName, no_of_players, and category.
After creating the table, he realized that the attribute, category has to be deleted from the table and a new attribute TypeSport of data type string has to be added. This attribute TypeSport cannot be left blank. Help Zack write the commands to complete both the tasks.
Concept: Data Types and Constraints in MySQL
Sartaj has created a table named Student in MYSQL database, SCHOOL:
- rno(Roll number )- integer
- name(Name) - string
- DOB (Date of birth) – Date
- Fee – float
Note the following to establish connectivity between Python and MySQL:
- Username - root
- Password - tiger
- Host - localhost
Sartaj, now wants to display the records of students whose fee is more than 5000. Help Sartaj to write the program in Python.
Concept: Data Types and Constraints in MySQL
Hi-Standard Tech Traj.ning Ltd. is a Mumbai based organization which is expanding its 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.
As a network consultant, you have to suggest the best network related solutions for them for issues/problems raised by them in (i) to (iv), as per the distances between various blocks/locations and other given parameters.

Shortest differences between various blocks/locations:
| Admin Block to Accounts Block | 300 Metres |
| Accounts Block to Training Block | 150 Metres |
| Admin Block to Training Block | 200 Metres |
| MUMBAI Head Office to CHENNAI Office | 1300 Km |
The number of computers installed at various blocks is as follows:
| Training Block | 150 |
| Accounts Block | 30 |
| Admin Block | 40 |
1) Suggest the most appropriate block/location to house the SERVER in the CHENNAI office (out of the 3 blocks) to get the best and effective connectivity. Justify your answer.
2) Suggest the best-wired medium and draw the cable layout (Block to Block) to efficiently connect various blocks within the CHENNAI office compound.
3) Suggest a device/software and its placement that would provide data security for the entire network of the CHENNAI office.
4) Suggest a device and the protocol that shall be needed to provide wireless Internet access to all smartphone/laptop users in the CHENNAI office
Concept: Network Devices
Differentiate between packet switching over message switching
Concept: Network Devices
Expand the following:
ARPANET
Concept: Evolution of Networking
Explain the following device:
Repeater
Concept: Network Devices
Explain the following device:
Router
Concept: Network Devices
Quickdev, an IT based firm, located in Delhi is planning to set up network for its four branches within a city with its Marketing department in Kanpur. As a network professional, give solution to the questions, after going through the branches locations and other details which are given below:
| DELHI BRANCH | |
| BRANCH A | BRANCH B |
| BRANCH C | BRANCH D |
| KANPUR BRANCH |
| MARKETING DEPT. |
Distance between various branches is a follows:
| 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 |
| Delhi Branch to Kanpur | 300 km |
Number of computers in each of the branches:
| Branch | Number of Computers |
| Branch A | 15 |
| Branch B | 25 |
| Branch C | 40 |
| Branch D | 115 |
- Suggest the most suitable place to install the server for the Delhi branch with a suitable reason.
- Suggest an ideal layout for connecting all these branches within Delhi.
- Which device will you suggest, that should be placed in each of these branches to efficiently connect all the computers within these branches?
- 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.
- Suggest a protocol that shall be needed to provide help for transferring of files between Delhi and Kanpur branch.
Concept: Network Devices
The modem at the sender’s computer end acts as a ______.
Concept: Network Devices
______ is a communication methodology designed to deliver both voice and multimedia communications over Internet protocol.
Concept: Types of Data Communication
Write the full form of the following:
SMTP
Concept: Introduction to Protocols
Write the full form of the following:
PPP
Concept: Introduction to Protocols
What is the use of TELNET?
Concept: Introduction to Protocols
What is the need for Protocols?
Concept: Introduction to Protocols
In case of ______ switching, before a communication starts, a dedicated path is identified between the sender and the receiver.
Concept: Switching Techniques
Define the term bandwidth with respect to networks.
Concept: Measuring Capacity of Communication Media
