Review Questions S5mce
Review Questions S5mce
S5MCE
TERM 2
REVIEW QUESTIONS S5MCE
Q1. In a company there are 5 computers distributed into different offices and all
offices share one printer .The managements wants to build a computer network
that connects all the computers and printer
a. Identify a topology to use in this situation (2 marks)
b. Draw arrangement of computers using identified topology (4 marks)
c. Draw a full mesh network topology structure (4 marks)
Q2. Swapping means exchanging the values of one variable with another variable.
Write a program a C++ function that swaps two numbers and display the values of
those numbers before and after swapping.
Don’t use the temporary variable. (10 marks)
Q3. a. Define the term Database (2 marks)
b. Explain different areas where database applied (8 marks)
Q4. a.What is a Database administrator? (2marks)
b. Differentiate file-based system and DBMS (4marks)
c. Give four popular softwares designed to manage a Database (4marks)
Q5. Write a c++ program that will prompt a user to insert 2 numbers and
generate a simple calculator using switch case (10marks)
Q6. Explain the following network topologies:
Bus topology (3 marks)
Ring topology (3 marks)
Star topology (3 marks)
Mesh topology (3 marks)
Extended topology (3 marks)
Q7. Using for loop write a c++ program to print the sum of 10 first odd numbers
(15 marks)
Q8. Give 3 examples of an audio port that connects audio devices to the computer
(3marks)
Q9. List four main components of computer system (4 marks)
Q10. Write an algorithm that will prompt a user to calculate your age (5 marks)
Q11. What is a loop? (2 marks)
Q12. Using illustrations, explain at least four standard symbols used in flowchart
design. (4 marks)
Q13. To exchange files, a track of music from one device to another. What do you
use? (4 marks)
Q14. Is Laptop hardware maintenance difficult comparing to desktop computer
maintenance? Explain your answer. (4marks)
Q15. (a) What is protocol? (2 marks)
(b) Give any five main functions of the protocols (5 marks)
Q16. What is the difference between CUI and GUI? (4marks)
Q17.a. what is meant by Operating system (2marks)
b. Give at least 2 examples of operating system (2marks)
c. Explain the functions of operating system (6marks)
Q18. a. Define the term “debugging “ (2marks)
b. Examine 3 types of errors in computer programming (6marks)
Q19. Define computer network. (2marks)
Q20. a) which of the following cables can be used to have the connection?
(2marks)
i. VGA (Video Graphic Array) cable;
ii. Network cable;
iii. AC Power cable.
b) Describe the role of the remaining cables. (4marks)
Q21. Discuss common uses of laptop computer in schools and society in general.
(5marks)
Q22. Draw a flowchart that allow the user to input a password. This password is
composed with one existing word(ab55tr). If the two words match, then print”
PASS “on the screen. If the words do not match “NO ACCESS “is shown.
(6marks)
Q23. Categorize following devices according to their transmission mode. (5marks)
a) TV
b) Radio
c) Walkie-Talkie
d) Phone
e) Computer
Q24. Compare Database Management System and traditional File processing
system (8 marks)
̅̅̅̅̅̅
Q25. Design a logic circuit and truth table for the following expression 𝑨𝑩𝑪 + 𝑨𝑩𝑪
(8mrks)
Q26. What are the four functions of operating system? (4marks)
Q27. Discuss the steps involved in building a visual basic application. (6marks)
Q28. Four secondary schools in RUHANGO District are displaying the number of
students per year that they registered in 2015, 2016, 2017 and 2018.(6marks)
a. How many rows and columns will be in the table that contains the
displayed data?
b. Declare an array called population to contain the needed data.
Initialize the array population with numbers of your choice.
Q29. Consider a database used to record information about the marks that
students get in the different exams of different subject studying in Math-Computer
Science-Economics combination. STUDENT entity is described by StudentId,
StudentName and School; SUBJECT_STUDYING is identified by SSId, SSName,
SSClass and SSRoom and EXAM entity is described by EId, EName, ETime and
ERoom. Construct an E-R diagram that models STUDENT, SUBJECT_STUDYING
and EXAM as entities that uses ternary relationship. (3 marks)
a. PAN
b. LAN
c. MAN
d. WAN
Q33.With example, make a clear difference between simplex, half-duplex and full-
duplex(3 marks)
Q34. find the truth table for the following gates (3 marks)
a. AND gate
b. XOR gate
c. NOR gate
Q39. A. The following table describes information about employees, study it and
answer the following questions.
a) Define a table and identify all the components of employee table. (2 marks)
b) What is the possible domain for field EmpId? (1mark)
c) How many records are shown? (1 mark)
d) How many attributes are shown? (1 mark)
e) Explain the datatype for each field. (1 mark)
B. (4 mrks)
A School needs to store information about Teacher (identified by TeacherId,
FirstName, Surname, Salary, Qualification, Address, Contact); Combination
(identified by CombinationId, CombinationName), Student (identified by
StudentId, FirstName, Surname, Address, Schoolfees, ContactNumber) and
Subject (identified by subjectId, SubjectTitle).
Discribe the logical relationships between objects
i. Teacher-Student,
ii. Teacher-Combination,
iii. Student-Combination
iv. and Teacher-Subject.
Q40. list and explain the main concepts of object-oriented programming. (10
marks)
Q42. Consider a database used to record information about the marks that
students get in the different exams of different subject studying in Math-Computer
Science-Economics combination.
STUDENTentity is described by StudentId, StudentName and School;
SUBJECT_STUDYINGis identified by SSId, SSName, SSClass and SSRoom
and
EXAM entity is described by EId, EName, ETime and ERoom.
Construct an E-R diagram that models STUDENT, SUBJECT_STUDYING
and EXAM as entities that uses ternary relationship. (10 MARKS)
Q46. Write the java program to swap two numbers entered from keyboard.
(10marks)
Q47. What is the difference between class and structure in C++? Give a syntax for
each (4marks)
Q48. List and explain 5 basic concepts of Object Oriented Programming in
C++(5marks)
Q49. Consider a=77 and b=23 of type unsigned int. Complete the following table
by considering 8 bits. (5marks)
EXPRESSION BINARY DECIMAL VALUE
a 01001101 77
b 00010111 23
a&b
A|b
a^b
a<<2
b>>1
N.B: For the test revision, you will consider questions of S5 Only.
For the Exam revision, consider all questions!!
GOOD LUCK!!