Case Study 1
Case Study 1
Specialty/Option: SWE
Duration: 6 hours
Paper: Case Study
Coef: 12
Instructions:
This paper contains four (04) sections. All sections are compulsory. Answer all questions neatly
and clearly, label your work.
1. Data structure and algorithms are very important in computer technology and systems.
Define each of the above-mentioned term. (3marks)
2. Draw a simple flow chart to look for the largest number amongst 3 integers. (5mark)
3. Differentiate between divide and conquer and dynamic programming (2marks)
II. EVENT PROGRAMMING (10 MARKS)
1. What is the significance of console.readkey() function in visual basics? (1mark)
2. What is the difference between console.writeline() and console.write() in visual basics? (2
marks)
3. List and define 3 errors that can occur during writing a software? (3marks)
4. List 5 key words used in visual basics (2marks)
5. List two good programming practice to follow when writing codes (2mark)
Write a C++/C program that reads a position from the user. For example, if the user enters a1 then
your program should report that the square is black. If the user enters d5 then your program should
report that the square is white. Your program may assume that a valid position will always be entered.
It does not need to perform any error checking.
1. #include <iostream>
2. using namespace std;
Douala, Ange-Raphael Page 2|5
(+237) 679318844
scolarite@vtib-eportal.net (+237) 650857613
www.vtib-eportal.net (+237) 695593749
3.
4. class Person
5. {
6. public:
7. string profession;
8. int age;
9.
10. Person(): profession("unemployed"), age(16) { }
11. void display()
12. {
13. cout << "My profession is: " << profession << endl;
14. cout << "My age is: " << age << endl;
15. walk();
16. talk();
17. }
18. void walk() { cout << "I can walk." << endl; }
19. void talk() { cout << "I can talk." << endl; }
20. };
21.
22. // MathsTeacher class is derived from base class Person.
23. class MathsTeacher : public Person
24. {
25. public:
26. void teachMaths() { cout << "I can teach Maths." << endl; }
27. };
28.
29. // Footballer class is derived from base class Person.
30. class Footballer : public Person
31. {
32. public:
33. void playFootball() { cout << "I can play Football." << endl; }
34. };
35.
36. int main()
37. {
38. MathsTeacher teacher;
39. teacher.profession = "Teacher";
40. teacher.age = 23;
41. teacher.display();
42. teacher.teachMaths();
43.
44. Footballer footballer;
45. footballer.profession = "Footballer";
46. footballer.age = 19;
47. footballer.display();
48. footballer.playFootball();
49.
50. return 0;
51. }
1. Explain with the help of a block diagram, the functioning of a proxy server 5marks
2. What is a URL? State two components of a URL. 3 marks
1. As an IT technician, you entered a company and tried to understand the IP scheme of the
company. On investigating the scheme, you saw a subnetted network having a network id of
192.168.1.0/26.
a. What name is given to the IP notation above? (1mark)
b. What type of Subnetting was used for such IP scheme? (1marks)
c. What is the default mask of the above IP? (1marks)
d. How many subnets were form using such addressing? (1marks)
e. How many subnet bits were borrowed? (1marks)
f. How many usable host are there per subnet? (1marks)
2. In a communication system, there are two things to take note of, the model in which the system
uses for communication and the information that is being shared from one point to another.
a. Define communication model and data communication. (2marks)
b. What are the components of each of the above mentioned terms? (4marks)
c. What are the different modes in which data can be transmitted from one point to another?
List and define each. (3marks)