August
1999 QUESTION 1 (Compulsory) Total Marks: 20 Marks |
Click here to access other
questions
SUGGESTED SOLUTIONS |
(a) | How might an operating system detect that deadlock has occurred? | [1] |
Several processes are
interlocked.
|
||
(b) | Define the term fixed-partition multi-programming. | [2] |
Fixed partition
multi-programming is concerned with the contiguous allocation of memory in regions where
size cannot be varied.
|
||
(c) | (i) Give one similarity between compilers and
interpreters. (ii) Give one difference between compilers and interpreters. |
[1] [1] |
(i) They both
translate source code into equivalent object programs. (ii) A compiler translates the source program as a whole, whereas a translater translates the source program statement by statement.
|
||
(d) | Name two types of loader. | [2] |
|
||
(e) | Name two virtual memory implementation techniques. | [2] |
|
||
(f) | What are the two categories of randomizing algorithms? | [2] |
Direct and indirect
algorithms.
|
||
(g) | Define the term real-time processing. | [1] |
Real-time processing
involves processing data items the moment they are received.
|
||
(h) | Define the term expert system. | [1] |
An expert system is an
application which emulates the reasoning power of a human expert in a particular domain.
|
||
(i) | List two indexing techniques. | [2] |
|
||
(j) | Perform a lexical analysis on the following
piece of code: Start of code
|
[5] |
030IfDisplay-Index='Y'\040Display'CalculateRecurrentCharges'\ 050End-if\070ComputerWs-Total(WS-Array)=\080Charge(001)+\ 100Charge(002)+\120Charge(003)
|