Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

University of Laghouat

Faculty of Sciences / Computer science department

1 st year computer license – ADS 1


Evaluation control (2)

Duration : One Hour

FullName :

1 Exercise
1. (2 1/2 points) . Write an algorithm which sums S such that :

S= 1 + 14 + 91 + 16
1 1
+ 25 + .....

1
2. (2 1/2 points) . Write an algorithm to find the greatest common
divisor of two positive integers A and B.

Page 2 of 4
3. (3 points) .
An oral examination starts at time T (h:m:s), the candidates are
examined one after the other by an examiner who takes 3 minutes
to give the mark and start with the next candidate. The number
of candidates and the duration of each candidate’s exam are given
by the user;
1. Write an algorithm that displays the start and the
end times for each candidate.

Page 3 of 4
l

Page 4 of 4

You might also like