State the data type of the variable “password” in the code below. (1)
Category Archives: Software Design and Development
2015 – Q9
Describe two methods of improving the readability of code. (2)
2015 – Q7
2015 – Q5
This pseudocode allows the user to guess the age of a teddy bear to win it in a competition.
Complete the table below to show normal and exceptional test data for guess. (2)
2015 – Q3
The pseudocode shown below uses a simple condition.
IF age < 5 THEN SEND nursery TO DISPLAY
Create a complex condition that will display “school” if a person is between the ages of 5 and 18 inclusive. (2)
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)
2015 – Q1
Convert the decimal number 164 into the equivalent 8-bit binary number. (1)
2014 – Q20 (f)
Every time a new function is added to the programming language it is designed using pseudocode.
State another design notation that could be used to design the new functions. (1)
2014 – Q20 (d)
The following program uses the Square(n) function to draw a pattern.
Two values have been missed out from the code.
Complete the code by filling in the values in the two boxes. (2)
2014 – Q20 (c)
A programming language provides the following pre-defined functions.
move(n) = distance moved in pixels
rotate(d) = degrees turned (positive means clockwise)
These can be used by the programmer to draw lines.
A programmer writes the code to draw a square. The code is shown below.
Suggest a new pre-defined function that could be added to this programming language. (1)