Xpert
04-12-2011, 11:24 PM
Question# 1 (3+7)
a) Consider an office environment in which we have 10 stand alone computers, one printer and one scanner.
Which topology is suitable for the given scenario? Support your answer with at least two reasons.
b) Write an HTML program that creates a table containing a list of Universities in Islamabad using ordered and
unordered lists. Set the background color to green. Each University name should be liked with its particular
website. By clicking on the University name it must lead the user to the respective University website e.g.
Home-Air University
Question:2 (10)
Write an HTML program that divides the webpage in two frames with ratio of 25% and 75%. Assign the first
frame to “Table of Contents” and the second frame to “Display area”. Attach another HTML document to the
table of contents frame which will contain four hyperlinks named “About VU”, “How VU works”,
“Organizational Structure” and “Board of Governors”. Attach four “.doc” files to these links in such a way that
when user clicks the link, the target files should open in “Display area”.
Answer :
Copy it to notepad and save it with .html extention
<HTML>
<HEAD>
<TITLE> List of Universities in Pakistan</TITLE>
</HEAD>
<BODY BGCOLOR="LIME" TEXT="BLUE">
<H1>List of Universities in Islamabad</H1>
<BR>
<P>
<table border=1>
<tr>
<td>
<ol>
<li> Public Sector University </li>
</ol>
</td>
<td>
<ol start="2"><li> Private Sector University </li>Composed BY
</ol>
</td>
</tr
<tr>
<td>
<ul>
<li><a href=www.au.edu.pk>Air University</a>
</li>
</ul>
</td>
<td>
<ul>
<li><a href=www.riphah.edu.pk>Riphah International University , Islamabad </a>
</li>
</ul>
</td>
</tr>Composed BY
<tr>
<td>
<ul>
<li><a href=www.aiou.edu.pk>Allama Iqbal Open University</a>
</li>
</ul>
</td>
<td>
<ul>
<li><a href=www.fui.edu.pk> FOUNDATION UNIVERSITY , ISLAMABAD</a>
</li>
</ul>
</td>
</tr>
<tr>
<td>
<ul>Composed BY
<li><a href=www.bahria.edu.pk>Bharia University , Islambad</a>
</li>
</ul>
</td>
<td>
<ul>
<li><a href=www.nu.edu.pk>National University of Computer and Emerging Sciences</a>
</li>
</ul>
</td>
</tr>
<tr cols="2">
<td>
<ul>
<li><a href=www.qau.edu.pkk>Quaid-i-Azam University, Islamabad </a>
</li>
</ul>Composed BY
</td>
</tr>
<tr cols="2">
<td>
<ul>
<li><a href=www.iiu.edu.pk>International Islamic University, Islamabad </a>
</li>
</ul>
</td>
</tr>
</table>
</BODY>
</HTML>
a) Consider an office environment in which we have 10 stand alone computers, one printer and one scanner.
Which topology is suitable for the given scenario? Support your answer with at least two reasons.
b) Write an HTML program that creates a table containing a list of Universities in Islamabad using ordered and
unordered lists. Set the background color to green. Each University name should be liked with its particular
website. By clicking on the University name it must lead the user to the respective University website e.g.
Home-Air University
Question:2 (10)
Write an HTML program that divides the webpage in two frames with ratio of 25% and 75%. Assign the first
frame to “Table of Contents” and the second frame to “Display area”. Attach another HTML document to the
table of contents frame which will contain four hyperlinks named “About VU”, “How VU works”,
“Organizational Structure” and “Board of Governors”. Attach four “.doc” files to these links in such a way that
when user clicks the link, the target files should open in “Display area”.
Answer :
Copy it to notepad and save it with .html extention
<HTML>
<HEAD>
<TITLE> List of Universities in Pakistan</TITLE>
</HEAD>
<BODY BGCOLOR="LIME" TEXT="BLUE">
<H1>List of Universities in Islamabad</H1>
<BR>
<P>
<table border=1>
<tr>
<td>
<ol>
<li> Public Sector University </li>
</ol>
</td>
<td>
<ol start="2"><li> Private Sector University </li>Composed BY
</ol>
</td>
</tr
<tr>
<td>
<ul>
<li><a href=www.au.edu.pk>Air University</a>
</li>
</ul>
</td>
<td>
<ul>
<li><a href=www.riphah.edu.pk>Riphah International University , Islamabad </a>
</li>
</ul>
</td>
</tr>Composed BY
<tr>
<td>
<ul>
<li><a href=www.aiou.edu.pk>Allama Iqbal Open University</a>
</li>
</ul>
</td>
<td>
<ul>
<li><a href=www.fui.edu.pk> FOUNDATION UNIVERSITY , ISLAMABAD</a>
</li>
</ul>
</td>
</tr>
<tr>
<td>
<ul>Composed BY
<li><a href=www.bahria.edu.pk>Bharia University , Islambad</a>
</li>
</ul>
</td>
<td>
<ul>
<li><a href=www.nu.edu.pk>National University of Computer and Emerging Sciences</a>
</li>
</ul>
</td>
</tr>
<tr cols="2">
<td>
<ul>
<li><a href=www.qau.edu.pkk>Quaid-i-Azam University, Islamabad </a>
</li>
</ul>Composed BY
</td>
</tr>
<tr cols="2">
<td>
<ul>
<li><a href=www.iiu.edu.pk>International Islamic University, Islamabad </a>
</li>
</ul>
</td>
</tr>
</table>
</BODY>
</HTML>