TERM - 2 - XII - Computer SC
TERM - 2 - XII - Computer SC
com
/
(SECTION A)
Each question carries 2 marks
Q1. Give any two characteristics of stack. (2)
Q2. (i) Expand the following: (1)
PPP , POP3
(ii) Out of the following, which is the fastest wired and wireless medium of transmission? (1)
Twisted Pair Cable, Coaxial cable, opticalfibre, Radio wave, Ethernet cable.
Q3. Name 4 Data types used to store Numeric data in Databases? (1)
Q4. A resultset is extracted from the Customer table using the cursor object (that has been already
created) by giving the following statement. (2)
Rec_Data=cursor.fetchall()
(a) How many records of the table will be returned by fetchall() method?
(b) What will be the datatype of Rec_Data object after the given command is executed?
Q5. Write the output of the queries (a) to (d) based on the table Sportstars, given below: (2)
Table: Sportstars
Admn No Name DOB Sport Medals Class
V1237 Vanshika 2005-02-19 Tennis 3 11
S1432 Ruhaani 2005-09-11 Football 5 12
SM1781 Aalam 2005-07-01 Cricket 4 11
V1935 Manan 2005-04-07 Football 6 11
S1276 Aarav 2005-10-06 Tennis 4 12
SM1872 Rehaan 2004-12-11 Football 3 12
SECTION - B
Each question carries 3 marks
Q8. Write a function in Python POP(Arr), where Arr is a stack implemented by a list of numbers. The
function returns the value deleted from the stack. (3)
Q9. (i) A table, SPORTSTARS has been created in a database with the following fields: (3)
Admn_No, Name, DOB, Sport, Medals, Class
Give the SQL command to rename the field Class to Grade in this table.
(ii) Which of the following is a DDL command?
DELETE FROM, DROP TABLE, CREATE TABLE, INSERT INTO
Q10. Golden Tulips is using MySQL to create a database called STUDENTDETAILS with a table Student
which the following structure. Write the SQL commands for doing the same. (3)
TABLE: TRAVEL
CNO CNAME TRAVELDATE KM TAXI_CODE NOP
101 Randeep Singh 2018-11-07 200 T01 12
102 Sharad Bali 2018-12-21 120 T04 4
105 Sangeeta M 2019-04-25 450 T01 15
103 Manish Nagpal 2019-01-29 280 T02 5
107 Veronica Masih 2019-03-12 365 T04 2
104 Dinesh Hoon 2019-10-28 290 T05 4
106 Ramita Malik 2019-04-06 100 T01 20
a) To display CNO, CNAME, TRAVELDATE from the table TRAVEL in descending order of CNO.
b) To display the CNAME of all customers from the table TRAVEL who are travelling by vehicle with
code T01 or T02
c) To display the CNO and CNAME of those customers from the table TRAVEL who travelled between
'2019-01-06' and '2019-05-01'.
d) To display all the details from table TRAVEL for the customers, who have travel distance more than
250 KM in ascending order of NOP (Number of Passengers)
Q12. (i) Give two advantages and two disadvantages of bus topology (4)
OR
Define the following terms:
Bandwidth, IP address
(ii) How are Radio Waves and Microwaves different?
Q13. Ishana Electronics Company headquaters has four blocks of buildings as shown: (4)
B B
1 4
B2 B3
B3 TO B1 -50 M B1 TO B2 – 60 M B2 TO B4 – 25 M
B4 TO B3 -170 M B3 TO B2- 125 M B1 TO B4 – 90 M
Center to center distsnce between various blocks
Number of computers in each block :
B1-150 B2-15
B3-15 B4-25
The computers in each block are already networked; however the company now wants to connect the
blocks.
i. Suggest the most appropriate topology for the connections between the blocks.
ii. The company wants internet accessibility in all the blocks. The suitable and cost-effective
technology for that would be:
iii. The company is planning to link its head office situated in New Delhi with the offices in hilly areas.
Suggest a way to connect it economically:
iv. Suggest the most appropriate location of the server and why?