Documente Academic
Documente Profesional
Documente Cultură
EXERCISES
3. What are the differences between sequence, selection and loop (repetition)?
A. 8 mod 4 = 0.
B. -11 mod 4 = 1.
C. 250 div 10 = 25.
D. -100 mod -3 = -1.
5. Which logical operation should be used when both statements should be true? Give
one example involving this operation.
AND
= Today is 20 September 2019, today is Friday.
START
FINAL EXAM
SUSPENDED
CHEAT
YES
NO
END
7. You need to obtain the temperature expressed in Fahrenheit degree and convert it to
degree Celsius. Express your answer in IPO Table, flow chart and pseudo code.
8. As a programmer, you are asked to code a program that requires and input as follows.
9. There are 10 software engineering (SE) majors and 5 creative industry (CI) majors in
computer science course. Draw ad IPO Table to represent the selection of five student
representatives to be selected, where three are SE majors while the rest are CI
majors?
10. A student can be approved for distinction if the mark is greater than or equal to 80 and
the grade achieved is 'A'. Find the algorithm to solve this question.
12. Read numbers and add them up until their total value reaches (or exceeds) a set value
represented by R.
13. Based on Table 1, decide on a student grade based on their coursework marks.
14. As a teacher of Class 3 Intrinsic, you are required to calculate the BMI for all 30
students. The readings for weight and height are in gram and cm, respectively. Then,
you need to find the average for all.
15. A container in a laboratory consists of 100 bacteria initially. A scientist found that 8% of the
colony of bacteria will reproduce after each hour. Represent this situation in an algorithm.