Acmp 428 Exam
Acmp 428 Exam
CANDIDATE INSTRUCTIONS
1 Answer all questions in section A and any other two
questions from section B.
2 No Reference Material is allowed in the exam Room.
3 Write legibly on Both sides of question paper.
4 All Mobile phones should be switched off in the exam room.
SECTION A (COMPULSORY)
QUESTION 1(COMPULSORY) [30 MARKS]
a) Using an example, explain the use of the following command
on files.
$ sort record.txt | uniq
(4marks)
ii) another=2+4*10
echo $another
(2marks)
iii) number="foobar"
echo $number
(2marks)
b) Using pipes, display all lines of files list1 and list2 that contains
letter ‘p’, and sort the results
(3marks)
2
iii) Kick-start installation
(6marks)