All Courses VU Solved Past Papers

Tuesday, November 23, 2010

Assignment Solution CS402 Fall 2010 Assignment No 2

Solution:






r
1* (Closure of r1).
New States Old States
A B
Z1-
Z2
Z3
Z4+
Z5+
Z6+
Z7+



Question No.2Solution:









(x1) (x2) Z2 (x3) Z3(x2) (x3) Z3 (x4,x1) Z4(x3) (x3) Z3 (x3) Z3(x4,x1) (x4,x1,x2) Z5 (x4,x1,x3) Z6(x4,x1,x2) (x4,x1,x2) Z5 (x4,x1,x3) Z6(x4,x1,x3) (x4,x1,x2,x3) Z7 (x4,x1,x3) Z6(x4,x1,x2,x3) (x4,x1,x2,x3) Z7 (x4,x1,x3) Z6 

Online Quiz CS402 23-11-2010

Online Quiz




















Solution Of CS601 Assignment No 2

Solution By Adeel Abbas

Q1.
 How do the layers of the Internet model correlate to the layers of the OSI model?


Solution :

The Internet Model is a subset of OSI model.

OSI model consist of 7 layers.
7. Application Layer
6. Presentation Layer
5. Session Layer
4. Transport Layer
3. Network Layer
2. Data Link Layer
1. Physical Layer

But the Internet model consist of only 4 layers , where the 6th (Presentation Layer) and 5th(Session Layer) are combined with the Application Layer and finally the 1st (Physical Layer) and 2nd (Data Link Layer) are merged into a new NETWORK INTERFACE Layer.

4. Application Layer
3. Transport Layer
2. Network Layer
1. Network Interface Layer.


The Internet model is also called TCP/IP model.




Q2.
 Match the following to one or more layers of the OSI model:
a. Format and code conversion services
b. Establishes, manages, and terminates sessions
c. Ensures reliable transmission of data
d. Log-in and log-out procedures
e. Provides independence from differences in data representation





ANS
Match the following to one of the seven OSI layers:
a.      format and code conversion services.- Presentation (6)
b.      establishes, manages, and terminates sessions.- Session (5)
c.      ensures reliable transmission of data – Transport (4)
d.      log-in and log-out procedures – Application (7)
e.      provides independence from differences in data representation – Presentation (6)

Q3.

 What is the difference between a port address, a logical address, and a physical address? How and at which layer they are used



Port address
Port address is used for each process from client to server and it depends on the transport layer.
Physical Address

Transferring data from A,B and C there needs a addressing called physical address. Physical address is added to define the physical address of sender and receiver.


Logical Address

While transferring data from A, B and C then physical addressing is not that enough for this kind of transformation and logical address is needed in the data to help distinguish source and destination systems.

*******************************

Logical address: Network Layer

Physical adress: either Physical Layer or Data Link Layer.

Port address: Transport Layer

*********************************


Logical Address:

Please comment about it
An IP address of the system is called logical address. This address is the combnation of Net ID and Host ID. This address is used by network layer to identify a particular network (source to destination) among the networks. This address can be changed by changing the host position on the network. So it is called logical address.

Physical address: Each system having a NIC(Network Interface Card) through which two systems physically connected with each other with cables. The address of the NIC is called Physical address or mac address. This is specified by the manficture company of the card. This address is used by data link layer.


Port Address: There are many application running on the computer. Each application run with a port no.(logically) on the computer. This port no. for application is decided by the Karnal of the OS. This port no. is called port address.

Saturday, November 20, 2010

MTH202 complete Solution

Second question answerLet A= {0, 1, 2} so we can determined A×A as under
{(0,0), (0,1), (0, 2), (1,0), (1,1), (1, 2), A× A = (2,0), (2,1), (2,2)}
Here R = A×A so R = {(0,0), (0,1), (0,2), (1,0), (1,1), (1, 2), (2,0), (2,1), (2,2)}
For Reflexive:
R is reflexive if and only if, for all aÎ A , (a,a)ÎR
A= {0, 1, 2}
A× A = {(0,0), (0,1), (0, 2), (1,0), (1,1), (1, 2), (2,0), (2,1), (2,2)}
R = {(0,0), (0,1), (0,2), (1,0), (1,1), (1, 2), (2,0), (2,1), (2,2)}
We can see that {(0,0), (1,1), (2, 2)}ÎR so R is Reflexive
For Anti-symmetric:
R is anti-symmetric if and only if, for all bÎ A if
(a,b)ÎR and (b, a)ÎR then a = b
aRb and bRa then a = b
A= {0, 1, 2}
A× A = {(0,0), (0,1), (0, 2), (1,0), (1,1), (1, 2), (2,0), (2,1), (2,2)}
R = {(0,0), (0,1), (0,2), (1,0), (1,1), (1, 2), (2,0), (2,1), (2,2)}
We can see that {(0,0), (0,1), (0,2), (1,0), (1,1), (1, 2), (2,0), (2,1), (2,2)}
As we can see that,
(0,1)ÎR and (1,0)ÎR then 0=0 [As a = b]
(2,1)ÎR and (1, 2)ÎR then 2=2 [As a = b]
all pairs are available such that (a,b)ÎR and (b, a)ÎR so R is Anti-symmetric
For Transitive:
R is transitive if and only if, for all a,b, cÎ A if
(a,b)ÎR and (b, c)ÎR then (a, c)ÎR
That is aRb and bRc then aRc
A= {0, 1, 2}
A× A = {(0,0), (0,1), (0, 2), (1,0), (1,1), (1, 2), (2,0), (2,1), (2,2)}
R = {(0,0), (0,1), (0,2), (1,0), (1,1), (1, 2), (2,0), (2,1), (2,2)}
As we can see
(0, 2)ÎR and (2,1)ÎR then (1,0)ÎR
(0,1)ÎR and (1, 2)ÎR then (0, 2)ÎR and so on…….
all pairs are available such that (a,b)ÎR and (b, c)ÎR then (a, c)ÎR so R is Transitive

First Question:

Assignment Solution Fall 2010 CS402

Will be uploaded Soon

ASSIGNMENT SOLUTION OF FALL2010 cs201

Assignment Solution:

#include<iostream.h>
#include<stdio.h>
#include<conio.h>

int main()
{

clrscr();
int IndexA[10] = {0,0,0,0,0,0,0,0,0,0};
int IndexB[10] = {0,0,0,0,0,0,0,0,0,0};

cout<<"You Are Requested To Enter Values in Arrays "<<endl;
cout<<"you should enter values between 1 & 20 "<<endl;
cout<<"Enter Value In First Array"<<endl;
for(int x=0 ; x<10 ; x++)
{
cout<<"Enter Value at - "<<x+1<<" - location - ";
cin>>IndexA[x];
if(IndexA[x] < 0 )
{
cout<<"please eneter the value between 1 & 20";
cin>>IndexA[x];
}
else if(IndexA[x] >20)
{
cout<<"please eneter the value between 1 & 20";
cin>>IndexA[x];
}
}
clrscr();
cout<<"enter Value In Second Array"<<endl;
for(x=0 ; x<10 ; x++)
{
cout<<"Enter Value at - "<<x<<" - location - ";
cin>>IndexB[x];
if(IndexB[x] < 0 )
{
cout<<"please eneter the value between 1 & 20";
cin>>IndexB[x];
}
else if(IndexB[x] >20)
{
cout<<"please eneter the value between 1 & 20";
cin>>IndexB[x];
}
}
clrscr();
cout<<"You have enter these values in Array"<<endl;
for(x =0 ; x<10 ; x++)
{
cout<<"Ist Array at - "<<x+1<<" - " <<IndexA[x]<<"| 2nd Array - " <<IndexB[x]<<endl;
}

//int IndexC[10] = {0,0,0,0,0,0,0,0,0,0};
for(x =0 ; x <10 ;x++)
{
if(IndexA[x] == IndexB[x])
{
cout<<"Values Are Same At Index - "<<x+1<<"Where Value Is = "<<IndexA[x]<<endl;
}
}

return 0;
}

Friday, November 19, 2010

CS101 Fall 2010 Assignment # 2 Solution

Complete Solution Of CS101 Fall 2010 Assignment No 2

Copy The Given HTML code And Please Make Changes Other wise you will get Zero Marks.

HTML Code.

<HTML>
<HEAD>
<TITLE>Admission Form</TITLE> 
</HEAD>
<table border="0" cellpadding="0" cellspacing="0" width="100%"> 
<tr>
<td width="100%" bgcolor="green" align="center"><font color="white"><b>Admission Form</b></font></td>
</tr></table>
<BODY>
<FORM name="login" method="post" action=loginScriptURL>
<table border="0" cellpadding="0" cellspacing="0" width="100%"> 
<tr>
<td width="100%" bgcolor="green"><font color="white"><b>Personal Information</b></font></td>
</tr></table></FORM>
<FORM name="submit" method="post" action=submitScriptURL>
<table border="1" bordercolor="lightblue"cellpadding="0" cellspacing="0" width="100%">
<tr><td width="30%">Candidate's Name</td><td><input type="password" name="password" size="20" maxlength="25"><b><font color="red">Max Character Limit Is 25</font></b></td></tr>
<tr><td width="30%">Father's Name</td><td><input type="password" name="cpassword" size="20" maxlength="25"><b><font color="red">Max Character Limit Is 25</font></b></td></tr>
<tr><td width="30%">Postal Address</td><td><textarea name="message" cols="20" rows="2"></textarea></td></tr>
<tr><td width="30%">Upload C.V</td><td><input name="fileupload" id="fileupload" type="file"> 
</td></tr>        
</table>


<table border="1" bordercolor="lightblue"cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" bgcolor="green"><font color="white"><b>Education</b></font></td>
</tr></table>
<table border="1" bordercolor="lightblue"cellpadding="0" cellspacing="0" width="100%">
<tr><td width="30%">Highest Qualification</td><td><select name"degree"><option value"select" selected> ---Select---  
<option value"Masters degree">-BBA
<option value"Bachelors Degree">-B.A.
<option value"Intermediate">-BSIT
<option value"Intermediate">-BCS
<option value"Intermediate">-MBA
<option value"Intermediate">-MCS
</select></td></tr>
<table border="1" bordercolor="lightblue"cellpadding="0" cellspacing="0" width="100%">
<tr><td width="30%">Grade</td><td>
<input type="radio" name="continued" value="continued">+A<br>
<input type="radio" name="Continued" value="Continued">A<br>
<input type="radio" name="Continued" value="Continued">B+<br>
<input type="radio" name="Continued" value="Continued">B<br>
<input type="radio" name="Continued" value="Continued">C+<br>
<input type="radio" name="Continued" value="Continued">C<br></table>


<table border="1" bordercolor="lightblue"cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" bgcolor="green"><font color="white"><b>Education</b></font></td>
</tr></table>
<table border="1" bordercolor="lightblue"cellpadding="0" cellspacing="0" width="100%">
<tr><td width="30%">Program Applied For</td><td><select name"degree"><option value"select" selected> ---Select---  
<option value"Masters degree">-MS(CS)
<option value"Bachelors Degree">-MS(BA)
<option value"Intermediate">-MCS
<option value"Intermediate">-MBA
<option value"Intermediate">-BCS
<option value"Intermediate">-BBA
</select></td></tr> 

<tr><td width="30%">Session Applied For</td><td>
<input type="checkbox" value="MPhil">Mornning<br>
<input type="checkbox" value="Masters">Afternoon<br>
<input type="checkbox" value="Bachelors">Evening<br>
</td></tr>
<tr><td width="30%"></td><td><input type="submit"name="reg" value="Submit"><input type="reset" value="Reset"></td></tr>
</table>
<br>
<table border="1" bordercolor="lightblue"cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" bgcolor="green" align="center"><font color="white"><b>Copyrighted 2010</b></font></td>

MIDterm Solved Papers

Please Upload Here the Past Papers of MIDTERM exams Of  M.C.S

google-site-verification

Search Any Assignment Solution And Past Papers