0% found this document useful (0 votes)
7 views2 pages

CA Algorithms ISM 2023 2

Uploaded by

pnf5sgkwy4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

CA Algorithms ISM 2023 2

Uploaded by

pnf5sgkwy4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

First Semester Continuous Assessment

2023/2024 Academic year

Option : Information System Management (ISM)


Level 100

Course code/ Title Basics of programming and Applied Algorithms I Credit value ___02___
Duration: 2hours Date:________________________ Venue: Hall________
Course Instructor Mr. PEUPIE GUY BERTRAND

Instructions
All questions carry equal marks
Answer any two exercises
For question 2 and 3 make sure you write down the complete algorithmic folder (principle
of resolution, working environment, algorithm)
For question 1, make sure you show on your paper, the execution of algorithm.
General Presentation of your work is important as well as the proper indentation of your
algorithms.

Question 1 : 10marks

Consider the algorithm below :

a) Define the term: Algorithm 1mark


b) Give four (4) characteristics of a good algorithm 1mark
c) List all the variables used by this algorithm and precise their data type. 1,5mark
d) Give an example of initialisation instruction. 0.5mark
e) Give the value of each variable at the end of execution of the algorithm above. 4marks
f) Draw the corresponding flowchart diagram 2marks

NB : use the table to present all the steps of your calculation.

1
Question 2:( 3+2+5 i.e. 3 marks for working principle, 2 for working environment, 5 for the
algorithm)

A triangle can be classified based on the lengths of its sides as equilateral, isosceles or
scalene. All 3 sides of an equilateral triangle have the same length. An isosceles triangle has
two sides that are the same length, and a third side that is a different length. If all of the sides
have different lengths then the triangle is scalene. Write an algorithm that reads the lengths of
3 sides of a triangle from the user. Display a message indicating the type of the triangle.

Question 3 : Odd or Even ( 3+2+5 marks)

Write an algorithm that reads an integer from the user. Then your algorithm should display a
message indicating whether the integer is even or odd.

You might also like