Computer Science S5 Deistric Exam
Computer Science S5 Deistric Exam
DURATION: 3 HOURS
INSTRUCTIONS:
1
a) Hub and switch in LAN?
2
ii. If a member or variables defined in a class is public, then they are accessible
by members of the same class only and cannot be accessed from outside the
class.
iii. Infrared waves can be used outside of a building because sun's rays contain
infrared waves that cannot interfere with communication.
iv. Destructor functions are always defined in the private type access specifier.
v. A default constructor is a constructor which doesn’t have any argument.
SECTION B: Choose only three question /30 Marks
Q12). Draw a binary search tree by inserting the below numbers Start from left
to right /4marks
30, 50,12,40,86,90,100 when you finish to draw
the BST do the following traversal
A. In order traversal /2marks
B. Pre-order traversal /2marks
C. Post-order traversal /2marks
ii. Identify approaches of database which are replacing manual database system
(2 marks)
3
iii. After that replacement of system where Mugabo will put some useless hard
copy files (2 marks)
b. Explain any four disadvantages of Traditional File Processing System (TFPS)
(2 marks)