SDT June 2018 Exam - Final 8412
SDT June 2018 Exam - Final 8412
SDT June 2018 Exam - Final 8412
7 June 2018
Examination Paper
Answer ALL questions.
Time: 3 hours
Marks
Question 1
You have been asked to develop an application for a client. The application has the
following requirements:
Total 10 Marks
Question 2
The waterfall model is a traditional approach to software development that has a number
of stages. During the design stage we may use pseudocode to develop our algorithms.
a) Explain the term pseudocode and why we might use it to design algorithms. 4
b) Name and describe ONE (1) alternative representation that we could use to 2
help design algorithms.
Total 10 Marks
Page 2 of 7
Software Development Techniques © NCC Education Limited 2018
Marks
Question 3
Assume an input value of 250 for papers1; 150 for papers2 and 200 for
papers3. Include notes in the desk check to explain each line of pseudocode.
Total 10 Marks
Question 4
a) The correct choice of data type is important during software design and 4
implementation. Discuss FOUR (4) factors that affect the choice of data type
during software design.
b) Choose a data type for each of the following and explain why you have done so.
Total 10 Marks
Page 3 of 7
Software Development Techniques © NCC Education Limited 2018
Marks
Question 5
The following algorithm takes the number of newspapers delivered by three delivery
workers, and calculates the total.
You have been asked by your employers to redesign the algorithm using a loop.
You must decide whether to use a bounded loop or an unbounded loop for the
design of this algorithm.
b) Explain which type of loop should be used for the above requirement and why 2
a)the alternative should not be chosen.
c) Write a short pseudocode algorithm that implements the above algorithm using 6
a bounded loop.
Total 10 Marks
Page 4 of 7
Software Development Techniques © NCC Education Limited 2018
Question 6
- If a worker has delivered 600 papers or more then their status variable
becomes “good”.
- If a candidate has a score of less than 600 papers then their status variable
field becomes “normal”.
- If a candidate has a score of 800 papers or more, then their distinction
variable is set to “Y” and the variable outputString is set to “with distinction”
Total 10 Marks
Question 7
F F F F
F F T T
F T F T
F T T T
T F F
T F T
T T F
T T T
Total 10 Marks
Page 5 of 7
Software Development Techniques © NCC Education Limited 2018
Question 8
a) Write an algorithm that steps through the elements of an array of cricket scores 10
(stored as whole numbers). If your program finds a score that is 100 or more,
then it will add 1 to a variable called “centuries”.
The array of scores may be any length so your algorithm will use a pre-defined
function called length() to return the length of the array. The function length() is
used as follows:
Total 10 Marks
Question 9
c) Explain why the Quicksort algorithm is recursive, but the Bubblesort algorithm is 3
not.
Total 10 Marks
Page 6 of 7
Software Development Techniques © NCC Education Limited 2018
Question 10
Class Employee
data balance as whole number
data name as string
End Class
Total 10 Marks
End of paper
Page 7 of 7
Software Development Techniques © NCC Education Limited 2018