You are on page 1of 4

REPUBLIQUE DU CAMEROUN REPUBLIC OF CAMEROON

Paix-Travail-Patrie Peace-Work-Fatherland

MINISTERE MINISTRY
DE l’ENSEIGNMENT SUPERIEUR OF HIGHER EDUCATION

COMMISSION NATIONALE D’ORGANISATION NATIONAL COMMISSION FOR THE ORGANISATION


DE EXAMENS OF THE EXAMS

HIGHER NATIONAL DIPLOMA (HND)

JUNE 2023 SESSION Examination Date: ………………………………….

OPTION SOFTWARE ENGINEERING


SPECIALTY COMPUTER ENGINEERING
COURSE TITLE PRACTICE OF COMPUTER
TYPE OF EXAMINATION WRITTEN
CREDIT VALUE 8

DURATION 5HOURS

SETTING 1
Instructions: Answer all questions. You are authorized to use only non-programmable
calculator.

SECTION A: ALGORITHM AND PROGRAMMING. (50marks)


I. DATA STRUCTURES AND ALGORITHMS AND STRUCTURED
PROGRAMMING (20 MARKS)

1. In implementing a particular system, an algorithm was written which makes use of


arrays and passes. The algorithm flow is represented below.
In Pass 1, A[0] is compared with A[1], A[1] is compared with A[2], A[2] is compared
with A[3] and so on. At the end of pass 1, the largest element of the list is placed at the
highest index of the list.
In Pass 2, A[0] is compared with A[1], A[1] is compared with A[2] and so on. At the end
of Pass 2 the second largest element of the list is placed at the second highest index of the
list.
In pass n-1, A[0] is compared with A[1], A[1] is compared with A[2] and so on. At the
end of this pass. The smallest element of the list is placed at the first index of the list.
a. What algorithm was the software engineer trying to implement base on the above
information.

1|4
b. Write a c program to implement such an algorithm for an array of
arr[10] = { 10, 9, 7, 101, 23, 44, 12, 78, 34, 23}   

II. EVENT PROGRAMMING AND DATABASE (10 MARKS)

In an information system, a form is required to manipulate user’s information. Below is


an example of such form design in visual studio. Using visual studio IDE, design such a
form. (NOTE: it’s just design, no code for button interaction is required but make sure it connects
to access database). When done, call your supervisor to inspect.

III. OBJECT ORIENTED PROGRAMMING (20 MARKS)


In getting trusted values from a series of values, scientist always try to calculate the
average or mean value from a series of data values. This helps in good decision making.
Using java or c++, write a simple program that will calculate the average of any amount
of values inputted by the user. Hint (use arrays)

Section B: Database Development and Administration (20 marks)


We have a database called store with the following contents: using MySql database, CREATE the
database store and Table Store_info as shown below.

2|4
Question 1
List all the items sorted alphabetically. Then list only the first 3. Then the last 3.
Question 2
list only the items that are more than $1 per unit price
Question 3
list all the items with their extended price (quantity * price)
Question 4
list the total cost of all the items in the store
Question 5
how many different items do we have in the store?

SECTION C: WEB DESIGN (15 MARKS)


Write a simple html code to produce the form registration form below

SECTION D:
NETWORKING (15 MARKS)
Consider the network below.
Using cisco packet tracer,
configure all ip interfaces as shown on the diagram below and configure any routing protocol of
your choice to make both networks can connect to each other.

3|4
4|4

You might also like