Category Archives: Computational Constructs

2014 – Q19 (b) – (i)

In the game section of the website, players are shown a board with pairs of picture tiles placed randomly.

These are then flipped over to hide the images. Players have to flip two tiles trying to find two matching images until all pairs have been found.

2014 - q19 b

Identify a situation in the game where Ally will need to implement the following programming constructs. (2)

Selection:

Repetition:

Answer

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 (b)

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

Using pseudocode or a programming language of your choice, write a program to enter the required data, then calculate and display the profit for the soft drink business. (5)

2014 - Q16 b

 

Answer