Tuesday, 22 May 2012

cn lab exam



Hi,
      CN & WAD Labs scheduled to be on June 4,5,6.

      i am posting some previous  university lab questions on CN.

1.      A list of E-Mail addresses is store in the server. Send one email id from the client to server and verify whether this id is present in the list or not. True or False answer should be returned by the server. Use UDP connection

2. The client program should accept at least one line of text, from keyboard as a message and add an ‘X’ before the message if it contains two consecutive ‘e’s. Send this message to the Server and get a reply indicating that the server has received the message correctly after removing the additional character inserted. Display the corrected message in the Client machine.

3. The Client has to send a given message to the Server. Client has to add a flag character at the beginning and the end of the message. A suitable flag character may be chosen. The Server has to strip off the flag characters and has to send the original message back.

4. A message has to be sent to the Server. A coding has to be used to the message. Instead of one alphabet the next one in the alphabet is used. The server has to decide it and sent the original message back to the Client.

5. Establish UDP connection with the server. Send a string to the Server. Server will append another string to the received string. The new string will be sent back to the Client. The client ahs to calculate the length of the string appended by the server and display it.

6. Establish TCP connection with the server and send an integer number to the Server. Get the factorial of this number calculated by the Server. Get the result and broadcast the answer to all the nodes connected to the network.

7. Establish UDP connection to the server. Send a number to the Server. Calculate the square of the number in the Server and get the result from the Server. Find out the time between the sending of the number and receiving of the answer.

8. A list of Forbidden IP Addresses is stored in the Server. Client has to send an IP Address to that server and check if it is valid. If valid, the client has to send a hello message to the machine with this IP Address.

9. Client has to insert a character ‘X’ before two consecutive 1’s in the message. Send this message to the Server. Get a reply to indicate that the server has received the message correctly after removing the additional character inserted.

10. Establish TCP connection between two machines. Fetch a file using FTP and display it in the given folder.

11. Get two files using FTP from two different machines. Use TCP connection. Both the files should be stored in the specified directory in the client.


No comments:

Post a Comment