You are on page 1of 4

Assignment # 01

E-Commerce

IT430
(Group is not responsible for any solved content)

To Join VU Experts Google Group


Simply send an empty email to vu_experts+subscribe@googlegroups.com
OR
Simply send an empty email to vu-experts+subscribe@googlegroups.com

To Contact Owner/ Moderator


Simply send email to bilal.zaheem@gmail.com

http://groups.google.com/group/vu_experts
IT430
IT430 – Idea Solution
Please don’t copy. Make your Own.

Question 1:

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.

Answer:

In the above diagram, explains how routers on the internet backbone forward data
packets by determining the shortest possible path for the destination. In this
example a client machine ‘B’ sitting on network no. 100 sends data to a web server
‘C’ hosted at network no. 202.146. ‘R2’ is the router attached to network no. 100.
After consulting its routing table it can find that the shortest possible path for
sending data to machine ‘C’ is to forward data packets to ‘R4’, the router attached
to network no. 202.146. In case there is a blockade then‘R2’ can look for the

For Any Query or Help email at vuexperts@gmail.com


IT430
alternative shortest path. Here, the alternative shortest path for the delivery of data
packets to ‘C’ can be R2-R1-R3-R4.

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.11100.1010
b) 202.125.147.6 = 11001010.1111101.10010011.110
c) 158.38.111.80 = 01111001.01100100.11110110.00001010
d) 202.158.138.157= 11001010.01111101.10001010.10011101

Question 2:
Write down the HTML code for the following tasks.
a) Set the background colour of the browser window to blue, text colour to white
and link colour to yellow.
Answer:
<html>
<body bgcolor="blue"text="white"link="yellow">
<p>Set the background colour of the browser window to blue, text colour to white
and link colour to yellow</p>
<a href=http://www.vu.edu.pk>vu site link</a>
</body>
</html>
b) 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.
Answer:
<html>
<frameset cols="25%,25%,25%,25%">
<frame noresize>
<frame noresize>
<frame noresize>
<frame noresize>
</frameset>
</html>
c) Design a form in HTML that will contain two text boxes (ID, Password) and two
buttons (Submit, Reset).
By clicking the submit button form should be submitted to www.vu.edu.pk using
POST method.
Answer:
<html>
<body>

For Any Query or Help email at vuexperts@gmail.com


IT430
<form action="http://vu.edu.pk"method="post">
<p>LOGIN
<input type="text"name="id">
<p>PASSWORD
<input type="password"name="password" size="10">
<p><input type="submit" value"submit this">
<input type="reset">
</form>
</body>
</html>

For Any Query or Help email at vuexperts@gmail.com

You might also like