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

MC090410112

QUESTION NO.1:
PART (B)
Convert the following IP addresses from decimal to binary and binary to decimal showing the steps involved.
a) 221.120.152.10 = ?
b) 202.125.147.6 = ?
c) ? = 01111001.01100100.11110110.00001010
d) ? = 11001010.01111101.10001010.10011101

Solution:
 Decimal to binary….
a) 221.120.152.10 = 10111.1111000.10011000.1010
b) 202.125.147.6 = 11001010.1111101.10010011.110
 Binary to decimal….
c) 01111001.01100100.11110110.00001010=158.38.111.80
d) 11001010.01111101.10001010.10011101=83.192.81.185

QUESTION NO.2

 PART (A)
Set the background colour of the browser window to blue, text colour to white and link colour to yellow.
HTML CODE:
<html>
<body bgcolor="blue">
<body>
<h1 style="font-family:Times New Roman">MBA</h1>
<p style="font-family:arial;color:white;font-size:14px;">MC090410112</p>
<a href="http://www.vu.edu.pk" target="_blank"><p style="font-family:arial;color:#E6E600;font-
size:14px;">VIRTUAL UNIVERSITY</p></a>
</body>
</html>

 PART (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.
HTML CODE:
<html>
<FRAMESET COLS="25%,25%,25%,25%">
<FRAME/>
<FRAME/>
<FRAME/>
<FRAME/>
</FRAMESET>
</html>

 PART (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
HTML CODE:
<html>
<form>
First name:<input type="text" name="firstname" /><br/>
Password:<input type="password" name="pwd"/>
<form name="input" action="html_form_action.asp" method="get">
<input type="submit" value="Submit"/>
<form name="input" action="html_form_action.asp" method="reset">
<input type="RESET" value="reset"/>
</form>
</html>

You might also like