Get premium membership and access revision papers, questions with answers as well as video lessons.

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



UNIVERSITY EXAMINATIONS: 2013/2014
ORDINARY EXAMINATION FOR THE BACHELOR OF SCIENCE
IN INFORMATION TECHNOLOGY
BIT 3105 NETWORK PROGRAMMING
DATE: AUGUST, 2014
TIME: 2 HOURS
INSTRUCTIONS: Answer Question ONE and any other TWO
QUESTION ONE
(a)
Define the following terms:
(i) [1 Mark]
(ii) IP datagram [1 Mark]
(iii) Byte stream [1 Mark]
(iv) Client/server programming [1 Mark]
(v)
(b)
Transport address Transparency [1 Mark]
“Heavy reliance on bringing user-friendly applications to user on his/her own
system” and “Emphasis on centralizing corporate databases & network and
management functions” are among the characteristics of Client/Server systems.
Briefly explain them.
[4 Marks]
(c) By use of a simple program, explain the concept of tiers.
[6 Marks]
(d) List and briefly discuss the two (2) implementations of a 2-Tier Client/Server
architecture.
(e)
[6 Marks]
In view of the diagram given below, argue out whether or not the middleware and
the distributed operating system are one and the same.
1
[6 Marks]
(f)
Briefly explain the fact that Ethernet is a broadcast protocol.
[3 Marks]
QUESTION TWO – (TOTAL MARKS: 20)
(a)
List and discuss any two (2) desired characteristics of a network API.
[4 Marks]
(b)
Differentiate between “Distributability” and “Portability” as two of the
attributes of middleware.
(c)
[4 Marks]
What is the importance of the “Length” field in an Ethernet frame?
[2 Marks]
(d)
Briefly discuss any four (4) factors that one needs to consider for the best server
design.
(e)
[8 Marks]
What is the importance of subnetting to Client/Server applications?
[2 Marks]
QUESTION THREE – (TOTAL MARKS: 20)
(a)
The network layer facilitates host-to-host transfer of packets while the transport
layer provides end-to-end transfer/communication. What is the difference
between “host-to-host” communication and “End-to-end” communication?
[4 Marks]
(b)
Extensibility is the ease with which a system can be adapted to meet new
requirements. List and briefly explain the three (3) types of extensibility.
[6 Marks]
(c)(i) Briefly discuss the heterogeneous environments that RPCs have to contend with.
[6 Marks]
(ii) What differentiates remote procedure call from local IPC?
[4 Marks]
QUESTION FOUR – (TOTAL MARKS: 20)
(a)
Explain the importance of the following fields in an IP datagram:
(i) Version [2 Marks]
(ii) Type of Service (TOS) [2 Marks]
2
(iii) [2 Marks]
(iv)
(b)
Time-To-Live (TTL) Protocol [2 Marks]
List and explain any two (2) protocols that are found on the Network layer.
[4 Marks]
(c)
One of the applications of Reverse Address Resolution is in diskless workstations
when booting. Explain how this works.
(d)
One of the services provided by IP is fragmentation and reassembly. Briefly
explain why this is necessary.
(e)
[4 Marks]
[2 Marks]
What is the main difference between an Internet family socket address and the
UNIX family socket address?
[2 Marks]
QUESTION FIVE – (TOTAL MARKS: 20)
(a)
Details of lecturers and the departments they belong to in Africa International
University are maintained in two related database tables called „LECTURER? and
„DEPARTMENT?. The fields in the two tables are as shown below:
DEPARTMENT: DeptCode, DeptName (for the Department Code and
Department Name respectively)
LECTURER: LectPF, IdNo, Name, Address, DeptCode (for the Lecturer?s
personal file number, ID number, name, address and the code of
the Department the lecturer belongs to respectively).
Tables Relationships
DeptCode
LECTURE
DEPARTMENT
R
Required: Write appropriate Oracle statements/SQL statements to do the following:
i). Create the „LECTURER? table (assuming that the „DEPARTMENT? table
exists).
[6 Marks]
ii). Add a constraint that makes the „IdNo? to be a unique field in the „LECTURER?
table.
[2 Marks]
3
iii). To produce a listing of the names and personal file numbers of the lecturers who
are in the Faculty of Computing and Informatics.
[2 Marks]
iv). To delete a record in the „LECTURER? table for a lecturer by the name „Samuel
Matende?.
(b)
[2 Marks]
Study the lines of code presented below and answer the questions that follow:
a)
b)
c)
d)
sock=socket(AF_INET, SOCK_DGRAM, 0);
if (sock < 0)
error("Opening socket");
length = sizeof(server);
e) bzero(&server,length);
f) server.sin_family=AF_INET;
g) server.sin_addr.s_addr=INADDR_ANY;
h) server.sin_port=htons(atoi(argv[1]));
i) if (bind(sock,(struct sockaddr *)&server,length)<0)
j) error("binding");
k) fromlen = sizeof(struct sockaddr_in);
a) What is the importance of line 6? b) Explain the function of line 7.
(c)
[3 Marks]
[3 Marks]
Differentiate between a process and a thread.
4
[2 Marks]






More Question Papers


Popular Exams



Return to Question Papers