hp2 Rachna3
hp2 Rachna3
20. Differentiate between the terms primary key and alternate key.
2
21. What is the importance of a Primary Key in a table? Explain with a suitable example.
22. Distinguish between MAC address and IP address with the help of example of each.
23. A school with 20 stand -alone computers is considering to network them together and
adding a server. State two advantages of doing this.
24. What is the purpose of Modem in network?
25. Differentiate between packet switching and message switching technique in network
communication.
SECTION – C
26. Write SQL queries for (i) to (iii), which are based on the following tables.
Table: Trainer
Table: Course
(a) Display the Trainer Name, City and Salary in descending order of their hire date.
(b) To display the TNAME and CITY of Trainer of joined the institute in the month of
December 2001.
(c) To display TNAME, HIREDATE,CNAME, STARTDATE from tables TRAINER and
COURSE whose FEES is less than or equal to 10000.
27. What are candidate keys in a table? Give a suitable example of candidate keys in a table.
3
28. Write the python script to display all the records from the table student using for loop.
29. Write function insert() to insert the new row in table emp. The function will take the
values as parameter.
SECTION – D
31. Oberoi Industries has set up its new center at Mangalore for its office and web-based
activities. It has 4 blocks of buildings as shown in the diagram below:
Block A to Block B 50 m
Block C to Block D 25 m
Block A to Block C 90 m
Number of Computer:
Block A 25
Block B 50
Block C 125
Block D 10
(a) Suggest the device which is used to connect all the nodes in particular block.
(i)Repeater (ii)Gateway (iii)Bridge (iv)Switch
(b) Suggest the most suitable wire to connect all the blocks with high-speed data
transfer.
(i)Ethernet Cable (ii)Twisted Pair (iii)Optical Fibre (iv)Co-axial Cable
4
(c)The organization is planning to link its front office situated in the city in a hilly region
where cable connection is not feasible, suggest an economic way to connect way to connect
it with reasonably high speed.
(i)Satellite (ii)Radio Wave (iii)Microwave (iv)Bluetooth
(d) Suggest the appropriate protocol/way to do the audio-video communication between
the different parts of the world.
(i)E-Mail (ii)Blog (iii)Chat (iv)VOIP
(e) What type of network would be formed if the Mangalore office is connected to their
New York office?
(i) LAN (ii) PAN (iii) MAN (iv) WAN
32. Consider the following tables Product and Client. Write SQL commands for the statements
(i) to (iv) and give outputs for SQL query (v)
TABLE: PRODUCT
TABLE: CLIENT
(ii) To display the details of Products whose Price is in the range of 50 to 100 (Both values
included)
5
(iii) To display the ClientName, City from Table Client, and ProductName and Price from
table Product, with their corresponding matching P_ID
Table: CARHUB
Table: CUSTOMER
6
SECTION – E
34. Consider the following DEPT and WORKER tables. Write SQL queries for (a) and find
outputs for SQL queries (b):
Table: DEPT
Table: WORKER
Note: DOJ refers to date of joining and DOB refers to date of Birth of workers.
a.(i) To display Wno, Name, Gender from the table WORKER in descending order of Wno.
(ii) To display the Name of all the FEMALE workers from the table WORKER.
(iii) To display the Wno and Name of those workers from the table WORKER who are born
between ‘1987-01-01’ and ‘1991-12-01’.
7
35. Write SQL queries for a, b and find outputs for SQL queries c and d, which are based on
the following tables.
Table: Trainer
Table: Course
(a) Display the Trainer Name, City and Salary in descending order of their hire date.
(b) To display the TNAME and CITY of Trainer of joined the institute in the month of
December 2001.
(c) select tid, tname,from trainer where city not in(‘delhi’,’mumbai’);
(d) select distinct tid from course; (g) select tid , count (*), min(fees) from course group by
tid having count(*)>1;