Get premium membership and access revision papers, questions with answers as well as video lessons.
Got a question or eager to learn? Discover limitless learning on WhatsApp now - Start Now!

Bit 3105 Network Programming Question Paper

Bit 3105 Network Programming 

Course:Bachelor Of Science In Information Technology

Institution: Kca University question papers

Exam Year:2014



1
UNIVERSITY EXAMINATIONS: 2013/2014 ORDINARY EXAMINATION FOR THE BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY BIT 3105 NETWORK PROGRAMMING DATE: APRIL, 2014 TIME: 2 HOURS INSTRUCTIONS: Answer Question ONE and any other TWO QUESTION ONE
(a) Distinguish between the following terms as used in client/server systems:
i. Datagram and Byte Stream [2 Marks]
ii. Subnet and Subnet mask [2 Marks]
iii. Port and Socket [2 Marks]
iv. Concurrent and Iterative servers [2 Marks]
v. Wait() and WaitPid() [2 Marks]
(b) What are the purposes of the nothl(), and htonl() functions in a socket program?
Where are they used? [4 Marks]
(c) Most universities have distance learning programmes where the students are
allowed to access course materials online including assessment. Using this system as an example, explain how the characteristics of a two-tier client/server implementation are exhibited. [8 Marks]
(d) i. Briefly explain at least two (2) differences between an Ethernet frame and
IP datagram. [4 Marks] ii. Explain the error control service that is offered by IP. [2 Marks] (e) Why is it a good idea to close() each socket when you are done with it? [2 Marks]
QUESTION TWO
(a) Differentiate between flow control and error control as services of IP. [4 Marks]
(b) Explain the two reasons for TCP TIME_WAIT. [2 Marks]
2
(c) What is the difference between send() and write()? Where are they used?
[4 Marks]
(d) When an e-mail is sent to okongo@kca.ac.ke, how does the e-mail come to
arrive at the mail server mail.kca.ac.ke, when it was not specified at all in the address of the message? [8 Marks] (e) What is sockaddr_ and how is it uniquely identified? [2 Marks]
QUESTION THREE
(a) List and explain the two (2) mechanisms that a middleware uses to facilitate
communication between client/server applications. [4 Marks]
(b) Explain the importance of these fields in an IP Datagram:
i. Version
ii. Type of Service
iii. Identification
iv. Time to Live
[4 Marks]
(c) Using a well labelled diagram, give the UNIX socket address structure and briefly
explain the parts of the structure. [6 Marks] (d) List any three (3) design options for concurrent server design and briefly discuss them. [6 Marks]
QUESTION FOUR
(a) i. What is a zombie state? [2 Marks]
ii. What is the purpose of a zombie state? [2 Marks]
(b) Discuss the roles of the UA and MTA in a mail system. [4 Marks]
(c) List two error messages that one can receive when using the fork() system call?
[2 Marks]
(d) Explain the process of Reverse Address Resolution. Give an example of its
application. [4 Marks]
(e) List and explain the two (2) types of buffers that are used in a TCP connection. [6 Marks]
3
QUESTION FIVE
(a) List three (3) pros and three (3) cons of middleware [6 Marks]
(b) i. List and briefly explain any three (3) reasons for the popularity of RPC.
[6 Marks] ii. What differentiates remote from local IPC? [3 Marks] iii. List the five (5) elements of RPC. [5 Marks]






More Question Papers


Popular Exams



Return to Question Papers