KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD

KING'S IT WORLD


 
HomeHome  CalendarCalendar  GalleryGallery  FAQFAQ  SearchSearch  UsergroupsUsergroups  RegisterRegister  Log inLog in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
kings it world text ad
KINGSITWORLD CALENDAR
Follow me on G+
KINGSITWORLD WEATHER
Latest topics
» QURAN MAJEED KE TAFSEER
Mon Aug 20, 2012 4:59 am by YOUSUFHALI

» PHY301 CIRCUIT THEORY REFERENCE BOOK
Wed Jul 25, 2012 1:36 pm by shabbir1915

» MTH202 ASSIGNMENT NO 3 SOLUVED
Mon Jun 11, 2012 11:51 am by jaffarhussain

» Retrieve the DTC In the Jewel Module of 1995 Ford
Thu May 31, 2012 1:51 pm by obd2tool

» How you can Obvious the Check Engine Light on the
Thu May 31, 2012 1:43 pm by obd2tool

» send free sms and send free sms update on facebook
Tue May 15, 2012 10:33 pm by rizwan269

» United Bank Limited (UBL) - Fee Deposit
Thu May 10, 2012 5:33 pm by irumnaz

» PHOTO MIXER SOFTWARE
Fri Apr 20, 2012 12:02 pm by sacredwkb

» Entrepreneurship Survey
Thu Mar 08, 2012 5:20 pm by Admin

» Fall 2011 Semester Result Announced
Thu Mar 08, 2012 5:19 pm by Admin

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
kings it world text ad
Social bookmarking
Social bookmarking Digg  Social bookmarking Delicious  Social bookmarking Reddit  Social bookmarking Stumbleupon  Social bookmarking Slashdot  Social bookmarking Furl  Social bookmarking Yahoo  Social bookmarking Google  Social bookmarking Blinklist  Social bookmarking Blogmarks  Social bookmarking Technorati  

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website
visitors counter
Powered by website analytics technology.
Keywords
papers STA301 CS302 cs101 final midterm quiz MKT621 SPRING MTH202 mth302 assignment cs401 term FALL 2010 quran solved paper cs403 mgt502 HRM611 2011 cs605 MTH101 mth301
kings it world text ad
FLAG COUNTER
free counters
LIVE TRAFFIC
Share | 
 

 IT430 ASSIGNMENT NO 1 SOLUTION

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Scorpio
Posts: 638
Points: 2155
Reputation: 19
Join date: 2010-05-15
Age: 26
Location: islamabad

PostSubject: IT430 ASSIGNMENT NO 1 SOLUTION   Tue Nov 02, 2010 11:00 pm

Solution Q.1: (a)

As we router have capability to choose shortest path, and in the diagram we see that the shortest path to send request from computer C (sender) to Computer B (Receiver) is R4=>R2.
But if there is any blockages between them then the router 4 use the alternative path R4=>R3=>R1=>R2.


Solution Q.1: (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

Quote :

221 to Binary 120 to Binary 152 to Binary 10 to Binary
2 221 2 120 2 152 2 10
2 110 1 2 60 0 2 76 0 2 5 0
2 55 0 2 30 0 2 38 0 2 2 1
2 27 1 2 15 0 2 19 0 1 0
2 13 1 2 7 1 2 9 1
2 6 1 2 3 1 2 4 1
2 3 0 1 1 2 2 0
1 1 1 0
b) 202.125.147.6 = 10001010.1111101.10010011.110

Working

202 to Binary 125 to Binary 147 to Binary 6 to Binary
2 202 2 125 2 147 2 6
2 101 0 2 62 1 2 73 1 2 3 0
2 50 1 2 31 0 2 36 1 1 1
2 25 0 2 15 1 2 18 0
2 12 1 2 7 1 2 9 0
2 6 0 2 3 1 2 4 1
2 3 0 1 1 2 2 0
1 1 1 0


c) 121.100.246.10 = 01111001.01100100.11110110.00001010

Working
01111001 = (2 x 0)^7 + (2 x 1)^6 + (2 x 1)^5 + (2 x 1)^4 + (2 x 1)^3 + (2 x 0)^2 + (2 x 0)^1 + (2 x 1)^0
= 0+64+32+16+8+0+0+1
= 121

01100100 = (2 x 0)^7 + (2 x 1)^6 + (2 x 1)^5 + (2 x 0)^4 + (2 x 0)^3 + (2 x 1)^2 + (2 x 0)^1 + (2 x 0)^0
= 0+64+32+0+0+4+0+0
= 100

11110110 = (2 x 1)^7 + (2 x 1)^6 + (2 x 1)^5 + (2 x 1)^4 + (2 x 0)^3 + (2 x 1)^2 + (2 x 1)^1 + (2 x 0)^0
= 128+64+32+16+0+4+2+0
= 246

00001010 = (2 x 0)^7 + (2 x 0)^6 + (2 x 0)^5 + (2 x 0)^4 + (2 x 1)^3 + (2 x 0)^2 + (2 x 1)^1 + (2 x 0)^0
= 0+0+0+0+8+0+2+0
= 10


d) 202.125.138.157 = 11001010.01111101.10001010.10011101

Working
11001010 = (2 x 1)^7 + (2 x 1)^6 + (2 x 0)^5 + (2 x 0)^4 + (2 x 1)^3 + (2 x 0)^2 + (2 x 1)^1 + (2 x 0)^0
= 128+64+0+0+8+0+2+0
= 202

01111101 = (2 x 0)^7 + (2 x 1)^6 + (2 x 1)^5 + (2 x 1)^4 + (2 x 1)^3 + (2 x 1)^2 + (2 x 0)^1 + (2 x 1)^0
= 0+64+32+16+8+4+0+1
= 125

10001010 = (2 x 1)^7 + (2 x 0)^6 + (2 x 0)^5 + (2 x 0)^4 + (2 x 1)^3 + (2 x 0)^2 + (2 x 1)^1 + (2 x 0)^0
= 128+0+0+0+8+0+2+0
= 138

10011101 = (2 x 1)^7 + (2 x 0)^6 + (2 x 0)^5 + (2 x 1)^4 + (2 x 1)^3 + (2 x 1)^2 + (2 x 0)^1 + (2 x 1)^0
= 128+0+0+16+8+4+0+1
= 157

Code:

Solution Q.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.

<HTML>
<HEAD>
<TITLE> Assignment #1 </TITLE>
</HEAD>
<BODY BGCOLOR=”BLUE” TEXT=”WHITE” LINK=”YELLOW”>
</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.

<HTML>
<HEAD>
<TITLE> Assignment #1 </TITLE>
</HEAD>
<FRAMESET COLS="25%,25%,25%,25%" BORDER="0">
<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 [You must be registered and logged in to see this link.] using POST method.

<HTML>
<HEAD>
<TITLE> Assignment #1 </TITLE>
<BODY>
<FORM ACTION=”http://www.vu.edu.pk” METHOD=”POST”>
I.D : <INPUT TYPE=”TEXT”>
<P>
PASSWORD : <INPUT TYPE=”TEXT”>
<P>
<INPUT TYPE=”SUBMIT” VALUE=”SUBMIT”>
<INPUT TYPE=”RESET” VALUE=”RESET”>
</FORM>
</BODY>
</HTML>


Back to top Go down
View user profile
 

IT430 ASSIGNMENT NO 1 SOLUTION

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
KING'S IT WORLD ::  :: -