Computer Paper1
Computer Paper1
*0123456789*
INSTRUCTIONS
● Answer all questions.
● Use a black or dark blue pen. You may use an HB pencil for any diagrams or graphs.
● Write your name, centre number and candidate number in the boxes at the top of the page.
● Write your answer to each question in the space provided.
● Do not use an erasable pen or correction fluid.
● Do not write on any bar codes.
● Calculators must not be used in this paper.
INFORMATION
● The total mark for this paper is 75.
● The number of marks for each question or part question is shown in brackets [ ].
● No marks will be awarded for using brand names of software packages or hardware.
i) "hello"
ii) 25
iii) TRUE
iv) "h"
a) Pseudocode -
b) Validation -
c) Trace Table -
d) Selection -
e) Bubble Sort -
Q.6 Write a code to ask the user to input a number and if the number is less than 10,
print ("Number is too small"). [3]
Q.7 Bittu can't understand the difference between pre-condition and post-condition loop,
explain it to him. [4]
a) MOD
b) RANDOM
c) DIV
Q.9 Define Array. [1]
Q.10 State both two similarities and differences between a variable and constant. [4]
Q.12 What are the two required elements for a totaling program. [4]
Q.13 Define the following terms: [8]
a) ELSEIF
b) CASE
c) Iteration
d) Range check
e) Counting
f) Subroutine
g) Decomposition
h) Concatenation
Q.16 This flowchart represents an algorithm to find the average size of groups of visitors to
an attraction