Category Archives: Data Types and Structures

2014 – Q18 (a)

An athlete is developing a mobile application (app).

The athletes will allow athletes to track weight in Kg.

Part of the pseudocode for the app is shown below.

2014 - q18 a

(i) Identify the line that contains a condition. (1)

(ii) Identify the line that stores a value in an array. (1)

(iii) Identify the line that accepts input values into the program. (1)

Answer

2014 – Q16 (a)

Jack has been asked to write a program to calculate the potential profit in a soft drinks business. The program will store the costs involved in producing and selling one litre of each drink.

The following calculations will be used to output the profit made for each litre of drink.

Manufacturing Cost = Water Cost + Flavouring Cost + Labour Cost

Profit = Selling Cost – Manufacturing Cost

State the number of variables Jack would require in his program. (1)

Answer