Professional Documents
Culture Documents
1. (a) Vidya College has three departments that are to be connected into a network. Which of the following 2
communication medium (out of the given options), should be used by the college for connecting their
departments for very effective High Speed communication?
Coaxial Cable
Optical Fiber
Ethernet Cable
Also name the type of network (out of PAN/LAN/WAN) formed.
Ans Ethernet Cable is suitable for Vidya College network because it higher in speed that Coaxial Cable and cheaper
than Optical Fiber. And LAN network setup for college will be easier to maintain and manage.
(b) State reason why star topology requires more cable than bus topology. 2
Ans Star topology generally requires more cable than bus topology because each network devices are connected to
central hub/switch by using separate network cables whereas in bus topology network devices are connected
by a single cable.
(c) Seema needs a network device that should regenerate the signal over the same network before the signal 2
becomes too weak or corrupted.
Amit need a network device to connect two different networks together that work upon different
networking models so that the two networks can communicate properly.
Name the devices that should be used by Seema and Amit.
Ans Seema needs Repeater network device and Amit require Gateway network device
(d) How domain name related to an IP address? 2
Ans There is a system which assigns name to some computers (web server) working on internet and maintain a
database of these names and corresponding IP address. These names are called Domain Names. Hence in
reality IP address is masked by domain name for person to remember the name of the computer.
(e) How is firewall useful in ensuring network security? 2
Ans A firewall is a hardware device or software that is installed to monitor the data entering the computer or
network or leaving it. A firewall permits only that data to enter or leave a computer or network for which
permissions have been granted by the computer/network administrator.
2. (a) Identify the odd one out of the following Java statements. State reason for your choice. 1
(i) for
(ii) do while
(iii) switch
(iv) while
Ans switch is odd one because it is used for condition whereas others are used for iteration.
(b) Write the purpose of parseInt() method. 1
Ans Purpose of parseInt() is to convert string type number in integer type.
(c) Identify invalid variable names out of the following. State reason if invalid. 1
(i) for
(ii) .salary
(iii) salary12
(iv) product
Ans Following are the Invalid variables
for this is key word
.salary only _ (underscore) and $ (dollar) special symbol is valid for variable name.
(d) What is the difference between statement (i) and (ii) 1
(i) t=2
(ii) if(t= =2)
d=3;
Ans In statement (i) value 2 is assigned to a variable t
In statement (ii) statement id comparing whether the value of variable t is equal to 2 or not
(e) Write HTML tag to do the following: 2
(i) Inserting a horizontal line in a web page.
(ii) Inserting a line break