Professional Documents
Culture Documents
4. The term used to describe a memory location whose value changes during program execution
is
(A) Constant
(B) volatile
(C) variable
(D) Dynamic
5. The MOST appropriate data type for storing the amount of interest earned on a sum of
money is
(A) real
(B) char
(C) string
(D) integer
2. The pseudocode/algorithm below contains errors, correct the errors by rewrite the code.
value1, value2: integer;
Minimum: real;
value1 = 30;
value2 = 25.9;
IF (value1 > value2)
THEN read(‘MinA is’, value2)
ELSE writeln(‘MinB is’, value2);
3. Write a pseudocode algorithm to read two numbers and find their sum and product.
4. Write a pseudocode algorithm to read values into A and B and subtract the larger number
from the smaller.
5. Write a pseudocode algorithm to read an integer value for MARK and print the appropriate
grade based on the following:
Mark Grade
80 or more A
Less than 80 but 55 or more B
Less than 55 but 45 or more C
Less than 45 F1