You are on page 1of 2

http://vujannat.ning.

com/
Best Website TO Help Students
Itz jst an idea not a 100% idea.jst take an idea…
Don’t copy it..

QUESTION#1:-
Part a)
In the following diagram find the shortest path and the alternate shortest
path if a client computer ’C’ on network 202.146 sends a request to the web
server ‘B’ on network 100.

In this example a client machine’C sitting on network no 202.146. sends data to a web
server ‘B’ hosted at network no.100.’R4’ is the router attached to network no
202.146.After consulting its routing tab;e it can find that the shorter possible path for
sending data to machine’B’ is to forward data pakckets to ‘R2’ the router attached to the
network no.100.

Part b)
Convert the following IP addresses from decimal to binary and binary to
decimal showing the steps involved.
a) 221.120.152.10 = 11011101.1111000.10011000.1010
b) 202.125.147.6 = 11001010.1111101.10010011.110
c) 121.100.246.10 = 01111001.01100100.11110110.00001010
d) 202.125.138.157 = 11001010.01111101.10001010.10011101

Question 2:-
Write down the HTML code for the following tasks.

 Set the background color of the browser window to blue, text colour to
white and link color to yellow.

<HTML>
<HEAD>
<TITLE>computer science</TITLE>
</HEAD>
<BODY bgcolor=blue text=white link=yellow>
<H1>COMPUTER SCIENCE</H1>
Welcome to<A HREF=http://www.vu.edu.pk>Virtual University</A>in
Pakistan
</BODY></HTML>

http://vujannat.ning.com/
Best Website TO Help Students
http://vujannat.ning.com/
Best Website TO Help Students
 Divide the browser window in 4 equal sized vertical frames. Also
note that border of the frame should be invisible and user should not
be able to change the size of frame.
http://www.vustudents.net
<HTML>
<HEAD>
<TITLE>Vertical Frames</TITLE>
</HEAD>
<FRAMESET COLS="25%,25%,25%,25%">
<FRAME>
<FRAME>
<FRAME>
<FRAME>
</FRAMESET>
</HTML>

 Design a form in HTML that will contain two text boxes (ID,
Password) and two buttons (Submit, Reset).
<HTML>

<BODY>

<Form method="POST" >


<P>
Username<input type="text" name="username" size="20"><br>
Password:<input type="password" name="password" size="20">
<input type="submit" value="Submit" name="Submit"><input type="reset" value="Reset"
name="Reset"></P>
</Form>

</BODY>

</HTML>

http://vujannat.ning.com/
Best Website TO Help Students

You might also like