Class12 UnitTest2 2

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 5

1.

State the difference between LAN and MAN


or
The following code is used to read from the binary file myfile.info
and display the string until the letter ’o’ is encountered i.e. it
displays all the text in the file before the letter ‘o’. However, some
portions of the code are blanked out. Fill in the blanks to
complete the code so as to read from the file and do the correct
operations.
import ________
st=””
with open(“myfile.info”,_____) as fh:
st=pickle.load(fh)
lst=_______
print(____) [2]
Questions 2 to 11 are multiple choice questions with one correct
answer [1X10]
2. What is the full form of URL?
a. Universal Resource Locator
b. Uniform Resource Locator
c. Universal Reform Latest
d. None of the above
3. What mode should be used for opening a file for appending data
as well as creating a file if it does not exist in binary format?
a. ab
b. rb+
c. wb
d. wb+
4. What is the use of SMTP?
a. It is used to send and receive emails
b. It is used to translate system mails
c. It is used to conduct simple mail transactions
d. It is used to conduct solid mail transactions
5. In which network topology every node is connected to every
other node?
a. Bus
b. Star
c. Mesh
d. ring
6. In which network topology every node is connected to two other
nodes?
a. Ring
b. Mesh
c. Star
d. bus
7. Which of the following is a collection of independent computers
and other hardware interconnected by communication channels?
a. Computer
b. Network
c. Bluetooth
d. None of the above
8. Two devices are said to be in a network if
a. A process in one device is able to exchange information with a
process in another device
b. Process is running on both devices
c. Processes are running on different devices of the same type
d. None of the above
9. _______ topology uses hubs or switches as a central point of
connection:-
a. Bus
b. Star
c. Mesh
d. Ring
10. In which of the following situations below would you pick
LAN over WLAN?
a. Devices to be linked are mobile devices like laptops and
smartphone over a large geographic regions
b. Connecting devices keep moving from cities to countries
c. Devices to be linked are stationed within a small secluded place
inside a city like a single floor office
d. Expenses to set up a network are limited
11. Which of the following is not a guided medium?
a. Twisted pair cable
b. Coaxial cable
c. Fibre-optic cable
d. Radio waves

12. The government of Delhi has computer networks inside each


of its buildings. It has now interconnected the networks of the
Administration building and of the student center building. The
networks formed are marked with numbers. Mention which types
of networks are these?
PS: the distance between the Student center and Administration
building is 30 km
Or
You are participating in a competition and the past winning
projects and entries are available online. These are available in a
package containing five segmented files where each file size is
about 36MB. You were able to download the whole package in
about 3 minutes. Find the download rate of your network. [3]
13. Write two points of difference between circuit switching and
packet switching
Or
Write a program to open a file stu.dat and search for records with
roll numbers 12 or 14. If found, display the records if not display
the appropriate error message. [3]
14. Give an example each of PAN and LAN type of networks
Or
Riya wants to transfer pictures from her mobile phone to her laptop.
She uses Bluetooth technology to connect the two devices. Mention
which type of network (PAN/LAN/MAN/WAN) will be formed in this
case. [2]

You might also like