vu cs301 Mid Term Subjective Solved Past Paper No.2
vu cs301 Data Structures Solved Past Papers
This subjective solved past paper is related to book/course code vu cs301 Data Structures which belongs to vu organization. We have 3 past papers available related to the book/course Data Structures. This past paper has a total of 10 subjective questions belongs to topic Mid Term to get prepared. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to get prepared for exams by learning subjective questions online on NVAEducatio.
NVAEducation also facilitates users to download these solved past papers with an affordable prices. However, users are not enforced to pay for money, rather they can use credits to buy such stuff on NVAEducation. Users can earn credits for doing some little tasks and then you will be able to use that credits to buy solved past papers on NVAEducation.
Overloading Stream Insertion Operator
class Complex{...
friend ostream & operator << (ostream & os, const Complex & c);
};
Stream Insertion operator
// we want the output as: (real, img)
ostream & operator << (ostream & os, const Complex & c){
os << "(" << c.real << "," << c.img << ")?;
return os;
}
Overloading Stream Extraction Operator
class Complex{
...
friend istream & operator >> (istream & i, Complex & c);
};
In connection-oriented protocol, authentication is needed while this is not case in connectionless protocol.
In connection-oriented protocol, we have to establish connection between sender and receiver while this is not case in connectionless protocol.
Example of connection-oriented protocol is TCP and the example of connectionless protocol is UDP,Internet.
TCP is a connection-oriented protocol, it makes a connection and checks whether the data is received, and resends if it is not. UDP is a connectionless protocol, it does not guarantee delivery by first connecting and checking whether data is received.
ATM can provide customers with virtual circuits that look like traditional leased digital circuits. Such permanent virtual circuits (PVC) last as long as the customer pay the periodic fee for its use. The forwarding tables are automatically restored after power of equipment failure. The forwarding table entries for such permanent VC's are statically configured, the terms used by Telco's for this is provisioning.
Provisioning requires two steps:- To determine a complete path (that is, identify the switches that will be used).
- To choose appropriate VPI/VCI for each step in the path, and configure each adjacent pair of switches (easy, since each switch rewrites the VCI/VPI).
The wiring schemes are compared as follows:
Separate transceiver allows computers to be powered off or disconnected from network without disrupting other communication.
Transceiver may be located in an inconvenient place, so finely malfunction transceiver can be hard.
In other case, thin coax cable takes minimum of cable. Disconnecting one computer (on one loose connection) can disrupt entire network.
Hub wiring centralizes electronics and connections. It makes management easier. Bottom line 10Base-T is most popular because of lowest cost.
(Page 44)The bridges configure themselves automatically to decide which bridge will forward broadcast frames and which bridge will not.
The bridges communicate with each other on the network and use Distributed Spanning Tree (DST) algorithm to decide which bridge will not forward frames if a cycle occurs. (Page 53)