New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



Download Model question papers & previous years question papers

Posted Date: 25 Dec 2008      Posted By: sridevi      Member Level: Diamond

2006 Birla Institute of Technology-Mesra NETWORK PROGRAMMING University Question paper



Course:   University/board: Birla Institute of Technology-Mesra




Birla Institute of Technology & Science, Pilani

Distance Learning Programmes Division

Second Semester 2006-2007

Mid-Semester Test (EC-1 Regular)



Course No. : IS ZC462

Course Title : NETWORK PROGRAMMING

No. of Pages = 1

No. of Questions = 5
Nature of Exam : Closed Book

Weightage : 40%

Duration : 2 Hours

Date of Exam : 03/02/2007 (FN)

Note:

1. Please follow all the Instructions to Candidates given on the cover page of the answer book.

2. All parts of a question should be answered consecutively. Each answer should start from a fresh page.

3. Mobile phones and computers of any kind should not be brought inside the examination hall.

4. Use of any unfair means will result in severe disciplinary action.

5. No Pseudo-code is to be written in place of programs wherever asked.



Q.1 (a) Write the responsibility of Application, Transport and Network layer in the TCP/IP protocol suite along with common protocols used?

Q.1 (b) In the TCP state diagram, state the basic reasons for the presence of the TIME_WAIT state. Describe the scenario that occurs during the TCP connection termination.

Q.1 (c) Write uses of FIFOs ? Why doesn’t fork return the process ID of the parent to the child and return zero to the parent? Justify? [2.5 + 3 + 2.5 = 8]



Q.2 (a) Why do sockets provide the interface from the upper three layers of OSI model into the transport layer?

Q.2 (b) How do getsockname and getpeername functions differ from each other? Give all possible reasons for requiring these two functions while writing network application programs.

Q.2 (c) Which transport layer protocol is used by the DNS protocol? TCP or UDP? Justify?

[2 + 3 + 3 = 8]



Q.3 (a) Which conditions causes select to return “writeable” for sockets when you use select I/O multiplexing technique in the network programs?

Q.3 (b) Why must value-result arguments such as the length of a socket address structure be passed by reference?

Q.3 (c) Write the pseudo code to implement ls -l | wc –w using fork, exec, dup and pipe. Make all the necessary error checks in your code. Display the output on the screen. [2 + 2 + 5 = 9]



Q.4. Write only a server program using I/O multiplexing concept, where it can service both TCP and UDP clients. UDP clients are sent with a greeting message “Hello” and TCP clients are sent with current day and time whenever they are connected to the server. After sending these messages the server closes down the connection. You should use select for this purpose. [8]



Q.5. Write an unrelated client-server program using FIFOs such that Client reads a pathname of a file from user and sends on the IPC channel. Server reads file pathname from IPC channel and open the file for reading .The server responds by reading the file and writing it to IPC channel, otherwise server write an error message on IPC channel. Client than reads it from IPC channel and write in a file whatever it receives. If file can’t be read by server, client reads an error message from server and display error message on standard output. Your Client and Server must be an unrelated process. [7]



********





Return to question paper search

Next Question Paper: SOFTWARE FOR EMBEDDED SYSTEMS

Previous Question Paper: PRINCIPLES OF MANAGEMENT

Related Question Papers:


  • Closed Book (STRUCTURES OF PROGRAMMING LANGUAGES )


  • Software Project management


  • Object Oriented Programming(open book)


  • Object Oriented Programming(closed book)


  • Data Structure & Algorithms


  • Categories


    Submit Previous Years University Question Papers and make money from adsense revenue sharing program

    Are you preparing for a university examination? Download model question papers and practise before you write the exam.






    Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

    AdSense Revenue Sharing sites

    ISC Technologies.
    2006 - 2009 All Rights Reserved.