State the data type of the variable “password” in the code below. (1)
Category Archives: Data Types and Structures
2015 – Q2
A computer program is created to store data about the total number of pupils who pass an exam.
State the most suitable data type for the total. (1)
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.
(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)
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)