LS CSC 4th seq
LS CSC 4th seq
COMPETENCE TO BE ATTAINED
….................................................................................................................................................
.....................................................................................................................................................
...............................................................................................................................................
APPRECIATION OF COMPETENCE (KINDLY TICK)
NOT ATTAINED STILL TO BE ATTAINED ATTAINED
EVALUATION MARK
Section A: ….............. Section C: …......... Total Marks: ……………
Section B: ….............. Section D: …........
Parent’s remarks
…………………………………………………………………………………………………
………………………………………………………………………………………………….
....................
1. Which of the following is NOT a 4. Which sorting algorithm divides the array
characteristic of an algorithm? into two halves repeatedly?
a) Input a) Bubble Sort
b) Ambiguity b) Selection Sort
c) Finiteness c) Merge Sort
d) Output d) Insertion Sort
ANSWER GRID
1 6 11 16
2 7 12 17
3 8 13 18
4 9 14 19
5 10 15 20
21 22 23 24
25 26 27 28
29 30 31 32
33 34 35 36
37 38 39 40
f) Simplify the Boolean expression and draw its truth table: (A + B)(A' + C)(B + C). (5 Marks)
g) Design a circuit using logic gates to implement the Boolean expression: A'B'C + AB'C'. (3
Marks)
d) Explain De Morgan's laws and their application in simplifying Boolean expressions. (2 Marks)
P3 R2 P4 R3 P5
P6 R4 R5
R6 P7
(iii) The following is a resource allocation graph for resources R1-R6 and the processes P1 –P7,
From this graph, is there a possibility of deadlock? If yes give the deadlock cycle (3 marks)
If R+ were an instance of R3 is the possibility of deadlock completely eliminated? Explain! (3
marks)