SPC 2306 Systems Programming Year III Semester II
SPC 2306 Systems Programming Year III Semester II
Page 1 of 3
f) Explain the following terms as used in system software development and translation.
(5 marks)
(i) Grammar
(ii) Lexical analysis
(iii) Synaptic analysis
(iv) Token
(v) Interpreter
QUESTION TWO (20 MARKS
a) Briefly explain the uses of the components of the of the Control Unit of a typical
microprocessor. (6 marks)
(i) The Program Counter (PC)
(ii) Instruction Register (IR)
(iii) Processor Status Word (PSW)
b) Discuss the functions of the I/O interface in a computer system (4 marks)
c) Write a program segment to explain how system programs make direct use of the
operating system services through the following types of system calls (10 marks)
(i) File management
(ii) Device management
(iii) Process management
(iv) Communication
QUESTION THREE (20 MARKS)
a) Explain, giving a valid example the term system utility? Give an example. (4 marks)
b) Discuss the term zombie process and outline how can you create a zombie process in
linux (3 marks)
c) Elaborate what is a shell and outline its functions in Linux Operating system.
(4 marks)
d) Discuss the typical sequence of events associated when a child process reads the
message buffer of the parent using unnamed pipes. (5 marks)
e) Distinguish between system and application software (4 marks)
Page 2 of 3
QUESTION FOUR (20 MARKS)
a) Write a C program asks the user to enter a character and writes that character at the
end of the file. If the file doesn’t exist then this program will create a file with the
specified name and writes the input character into the file. (8 marks)
b) Describe the process control block and the various pieces of information that it
contains in regard to process management. (6 Marks)
c) Describe three (3) commands available for checking disk usage in UNIX environment.
(6marks)
QUESTION FIVE (20 MARKS)
a) Explain how Bits in the memory may represent data or instruction and how does the
processor categorize these as data and instruction? (4marks)
b) Distinguish between low level and high level programming languages, giving a
disadvantage of each. (4marks)
c) Discuss what happens during system shutdown in UNIX Environment (4marks)
d) Inter-process communication (IPC) supports various ways by which different
processes running on same OS communicate between each other. Explain the schemes
that facilitate IPC in the computer system (8 marks)
Page 3 of 3