Output based questions string XII CS
Output based questions string XII CS
1.
7.
2.
8.
3.
9.
4.
10.
5.
11.
12.
16.
17.
18. Note the following to establish connectivity between Python and MYSQL:
Username is root , Password is 123 , Database : Company , Table : Employee
( Eno integer , Ename Varchar ,Department Varchar , Salary Integer ).
Write the following missing statements to complete the code:
import ________ as mysql # Statement 1
def disp_data():
con=mysql.__________ # Statement 2
mycursor=con.___________ # Statement 3
mycursor.execute(„select * from employee‟)
data=mycursor._______ # Statement4
print(“Total Records Selected”,________) # Statement5
con.close()
Statement 1 – Use the suitable package ,
Statement 2 – Establish the connection
Statement 3 – Create the cursor Object ,
Statement 4 – extract all the records from the result set
Statement5 – Display the row count
19. Note the following to establish connectivity between Python and MYSQL:
Username is root , Password is tiger , Database : Company , Table : Employee
( Eno integer , Ename Varchar ,Department Varchar , Salary Integer ) .
The given code is used to insert the details to table which are accepted from the user.
Write the following missing statements to complete the code:
26. Alka Institute is planning to set up its centre in Bikaner with four specialized blocks for Medicine,
Management, Law courses along with an Admission block in separate buildings. The physical distances
between these blocks and the number of computers to be installed in these blocks are given below. You as a
network expert have to answer the queries raised by their board of directors as given in (i) to (iv).
Distances between various locations in meters: Number of Computers installed at various locations:
(i). Suggest the most suitable location to install the main server of this institution to get efficient
connectivity.
(ii). Suggest by drawing the best cable layout for effective network connectivity of blocks having server
with all the other blocks.
(iii). Suggest the devices to be installed in each of these buildings for connecting computers installed within
the building out of the following:
• Modem • Switch • Gateway • Router
(iv). Suggest the most suitable wired medium for efficiently connecting each computer installed in every
building out of the following network cables:
Coaxial Cable Ethernet Cable Single Pair Telephone Cable
27. National Centre for Indigenous Arts has its Headquarter in Dehi and just set up a new Campus in Kolkata.
They want to set up a Local area network in Kolkata campus. The Campus has four buildings:
● Main Building ● Admin ● Finance ● Academic
The distances between various buildings of university are given as:-
28. Consider the following table HOSPITAL. Answer the questions that follows the table: