0% found this document useful (0 votes)
28 views

Bit4205 Network Programming Eve Supp

This document outlines an examination for a Bachelor of Business Information Technology/Information Technology degree. The exam covers topics related to network programming. It contains 5 questions in Section A that must be answered, and students can choose any other 2 questions from Section B. Question 1 is compulsory and covers differences between application and systems programming, system calls, operating system goals, UNIX code syntax, and message passing operations. The other questions address UNIX shell sessions, library vs system calls, process states, file system services, interrupts, sockets, threads, and remote procedure calls.

Uploaded by

ashleykiki.ke
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Bit4205 Network Programming Eve Supp

This document outlines an examination for a Bachelor of Business Information Technology/Information Technology degree. The exam covers topics related to network programming. It contains 5 questions in Section A that must be answered, and students can choose any other 2 questions from Section B. Question 1 is compulsory and covers differences between application and systems programming, system calls, operating system goals, UNIX code syntax, and message passing operations. The other questions address UNIX shell sessions, library vs system calls, process states, file system services, interrupts, sockets, threads, and remote procedure calls.

Uploaded by

ashleykiki.ke
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

UNIVERSITY EXAMINATION 2017/2018

SCHOOL OF COMPUTING AND INFORMATICS


DEPARTMENT OF INFORMATION TECHNOLOGY

BACHELOR OF BUSINESS INFORMATION TECHNOLOGY/INFORMATION


TECHNOLOGY
EVENING

UNIT CODE BIT4205 UNIT TITLE: NETWORK PROGRAMMING

DATE: AUGUST 2018 SPECIAL/SUPP TIME: 2 HOURS

INSTRUCTIONS: ANSWER ALL QUESTIONS IN SECTION A AND ANY OTHER


TWO FROM SECTION B.

SECTION A (30 MARKS)

Question One (30 Marks) compulsory


(a) Outline differences between application programming and systems
programming. Give one programming language in each category. (4 Marks)

(b) Explain the concept: System call. (2 Marks)

(c) Explain two primary goals of operating systems. (4 Marks)

(d) Using examples, write the UNIX code syntax for:


i. socket( ) (3 Marks)
ii. pthread_create( ) (3 Marks)
iii. bind( ) (3 Marks)

(e) Write the UNIX command for: (4 Marks)


i. Listing hidden files
ii. Edit file content
iii. Rename file

Library copy Page 1


iv. View directory path

(f) With the help syntax code, explain two basic operations of message passing.
(4 Marks)
Question 2 (20 Marks)
(a) Using example describe the components of typical UNIX shell session.
(6 Marks)
(b) Using examples differentiate between library and system calls. (4 Marks)

(c) (i) Define the term process state. (2 Marks)


(ii) Explain the role of pthread_join() routine in threads. Using an example,
show how is implemented. (6 Marks)

(d) Explain one disadvantage of message passing system in comparison with


shared memory segment. (2 Marks)

Question 3 (20 Marks)


(a) Outline any five services provided by the file manager. (5 Marks)

(b) Write the syntax for the following file system calls, explaining its elements.
i. write( ) (3 Marks)
ii. seek( ) (3 Marks)
iii. read( ) (3 Marks)

(c) Explain how Interrupt Driven I/O device management works.


(4 Marks)

(d) What is the system call used to detach a process from the shared memory
segment once it no longer

Question 4 (20 Marks)


(a) Define socket. (2 Marks)

(b) Using diagram, explain the structure of remote based IPC system.
(6 Marks)
(c) Discuss three types of socket interfaces offered by message passing systems:
(6 Marks)

(d) Define a process control block. (2 Marks)

Library copy Page 2


(e) Differentiate between interrupt and trap. (4 Marks)

Question 5 (20 Marks)


(a) Define a thread. (2 Marks)

(b) Write the system call syntax for creating a new thread. Explain its arguments.
(6 Marks)
(c) Using examples, discuss three categories of interrupts. (6 Marks)

(d) What is the role of init process in operating systems? (2 Marks)

(e) Explain the steps of executing remote procedure calls. (4 Marks)

Library copy Page 3

You might also like