You are on page 1of 2

UNIVERSITY EXAMINATION 2017/2018

SCHOOL OF COMPUTING AND INFORMATICS


DEPARTMENT OF INFORMATION TECHNOLOGY

BIT/ BBIT

UNIT CODE: BIT4205 UNIT TITLE: NETWORK PROGRAMMING

DATE: APRIL 2018 6 TIME: 2 HOURS

INSTRUCTIONS: ANSWER QUESTION ONE AND ANY OTHER TWO QUESTIONS

Question one

a) Draw the architecture of Unix OS. (2 Marks)

b) What is a shell? (2 Marks)

c) What are the way for a process to terminate. (2 Marks)

d) What is the purpose of fork() (2 Marks)

e) What are the limitations of pipes? (2 Marks)

f) What is semaphore? (2 Marks)

g) Define socket. (2 Marks)

h) What is the purpose of ping command? (2 Marks)

i) Write note on shut down() in socket. (2 Marks)

Library copy Page 1


j) Mention any four protocols used in computer network. (2 Marks)

k) What is the concept of reusability? Explain how a class is derived from a given
class in C++, with the help of an example. (5 Marks)

l) What is an exception? How is it handled in? C++? Write a program


demonstrating exception handling in C++. (5 Marks)

Question two

a) Explain in detail thread synchronization with suitable examples. (12 Marks)

b) Explain the following with suitable examples


(i) Mutex and condition variables. (4 Marks)
(ii) Shared memory (4 Marks)

Question 3

a) Explain various functions available for UDP sockets. (8 Marks)

b) Briefly explain naming and address conversions. (4 Marks)

c) Explain;
(i) Unix process environment (4 Marks)
(ii) Signal function (4 Marks)

Question 4

a) Write echo client and echo server programs using TCP sockets. (14 Marks)

b) What is object oriented programming? Explain its advantages over structured


programming. (6 Marks)

Question 5

Create a Unix application to implement charting process between client and server
(20 Marks)

Library copy Page 2

You might also like