CS Test 1
CS Test 1
Name
Time : 1 hour
Answer all questions.
(iv) An arithmetic operator is an operator that performs a calculation on two numbers. TRUE
(v) Variable is a ‘container’ used to store data. The data stored in a variable is referred to as a
value. TRUE
(vi) Consistency means that it must produce the same result each time it is run. TRUE
(vii) The constructs sequence, selection and iteration are the basic building blocks of
TRUE
algorithms.
FALSE
(viii) A person whose job it is to create new software is called digital creator.
(ix) The remainder after the division of one number by another is called quotient. TRUE
(x) Variables and constants are ‘containers’ for storing data. The value stored in a constant
FALSE
can change, whereas the value of a variable never changes.
2.(a) Match the flow chart symbols and related definitions. [5]
a b c d e
(i) Indicates an input or output c (iv) Shows the logical flow of the algorithm e
(b) Produce a written description of an algorithm for making a cup of Kiwi juice. It should
start with placing some kiwi fruit in container and end with mixing the juice. For example,
the algorithm could start with ‘Place some kiwi fruit in blander’ and end with ‘stir’. [5]
3. Match the following terms with related statements explanatory notes. (Write only alphabet)
(a) iteration (b) condition (c) high-level programming language (d) identifier
(e) developer (f) logic (g) selection (h) Consistency (i) Efficiency [9]
(vi) it must solve the problem in the shortest possible time, using as few computer resources
as possible. i
(ix) something that must happen before something else can happen b
4. A developer make a program for calculating the area of the trapezium. The software could
accept bases of the trapezium (parallel sides a and b) and height (the perpendicular distance
between a and b) from the users and the area of trapezium will display to the users. (Area of
the trapezium = ½ * ( a + b ) * height ) [21]