HSC Software Design & Development
HSC Software Design & Development
1160
Section I
20 marks
Attempt Questions 1–20
Allow about 35 minutes for this section
A. CASEWHERE
B. IF
C. REPEAT
D. WHILE
2 A user is asked to enter the state in which they live, for example NSW, VIC, QLD.
A. Text box
B. Scroll bar
C. Check box
D. Drop down list
3 The day before a school’s swimming carnival, the sports teacher used spreadsheet
software to develop an application enabling her to store and process the results during
the carnival.
A. Agile
B. End User
C. Prototype
D. Structured
–2–
4 What type of system modelling tool is this?
A. IPO chart
B. Storyboard
C. Context diagram
D. System flowchart
A. Incomplete testing
B. A culturally diverse user base
C. The use of images created by others
D. The storage of sensitive customer data
A. A relative file
B. A sequential file
C. An array of records
D. A two-dimensional array
–3–
8 Consider the following algorithm.
BEGIN
A=3
B=4
C=5
A=B+C
B=A
C=B
D=A+B+C
Display D
END
A. 12
B. 16
C. 26
D. 27
A. Logbook
B. User manual
C. Data dictionary
D. Railroad diagram
–4–
11 What is the purpose of a benchmark report when developing software?
Locate item
details
–5–
13 The following algorithm is designed to calculate an average mark.
When the algorithm is coded, compiled and executed, which type of error is possible?
A. Logic
B. Runtime
C. Syntax
D. System
14 The prototyping process in the early stages of developing a solution was more time-
consuming and expensive than anticipated.
–6–
15 Programs can be sequential or event-driven.
A. 1 2 4 7 9
B. 2 4 1 7 9
C. 2 7 4 1 9
D. 7 2 1 4 9
17 Which row of the table contains a correct statement about each search method when used
with an array?
–7–
18 A program requires the user to enter the number of tickets to be purchased. This must be
an integer from 1 to 10 inclusive.
A. Get NumTick
WHILE NumTick <1 AND NumTick >10
Display “Please enter a valid number of tickets”
Get NumTick
ENDWHILE
ProcessPurchase
B. Get NumTick
REPEAT
Display “Please enter a valid number of tickets”
UNTIL NumTick > 0 AND NumTick < 10
ProcessPurchase
C. Get NumTick
IF NumTick <1 OR NumTick > 10
Display “Please enter a valid number of tickets”
ENDIF
ProcessPurchase
D. Get NumTick
WHILE NumTick <1 OR NumTick >10
Display “Please enter a valid number of tickets”
Get NumTick
ENDWHILE
ProcessPurchase
–8–
19 The array List( ) contains the following data.
index 1 2 3 4 5 6
List( ) 7 3 6 8 7 1
A. 7 6 8 8 7 1
B. 3 6 7 7 1 8
C. 1 3 6 7 7 8
D. 3 3 6 7 1 1
–9–
20 Grades are allocated based on a mark as follows:
MARK Grade
0 to 49 D
50 to 64 C
65 to 74 B
75 to 100 A
Which of the following algorithms allocates the correct grade for an entered mark?
A. BEGIN
get mark
CASEWHERE mark is
greater than 49 : grade = “C”
greater than 64 : grade = “B”
greater than 74 : grade = “A”
OTHERWISE : grade = “D”
ENDCASE
display grade
END
B. Start
grade = “D”
get mark
mark
is greater
than
75 65 50
display grade
Finish
– 10 –
Question 20 (continued)
C. BEGIN
grade = “D”
get mark
IF mark > 49 THEN
grade = “C”
ENDIF
IF mark > 64 THEN
grade = “B”
ENDIF
IF mark > 74 THEN
grade = “A”
ENDIF
display grade
END
D. Start
get mark
grade = “D”
Yes is mark No
> 49?
grade = “C”
is mark Yes
> 64?
grade = “B”
No
No is mark
> 74?
Yes
grade = “A”
display grade
Finish
End of Question 20
– 11 –
BLANK PAGE
– 12 –
© 2022 NSW Education Standards Authority
2022 HIGHER SCHOOL CERTIFICATE EXAMINATION
Centre Number
60 marks
Attempt Questions 21–31
Allow about 1 hour and 50 minutes for this section
Do NOT write in this area.
Instructions • Write your Centre Number and Student Number at the top of this
page.
– 13 –
Office Use Only – Do NOT write anything, or make any marks below this line.
5638310365
1161 15360
Question 21 (3 marks)
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
– 14 –
Office Use Only – Do NOT write anything, or make any marks below this line.
0589310365
Question 22 (6 marks)
(a) Explain the need for maintenance in the software development cycle. 3
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
(b) One way of making future maintenance easier is by using explanatory comments 3
Do NOT write in this area.
in the code.
Explain TWO other ways in which programmers can write code that makes
maintenance of a software system easier.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
– 15 –
Office Use Only – Do NOT write anything, or make any marks below this line.
1024310360
Question 23 (4 marks)
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
– 16 –
Office Use Only – Do NOT write anything, or make any marks below this line.
5486310366
Question 24 (3 marks)
Assume that variable, value, condition and statement are all defined elsewhere.
With reference to line numbers, describe THREE syntax errors in this code fragment.
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
– 17 –
Office Use Only – Do NOT write anything, or make any marks below this line.
7986310363
Question 25 (11 marks)
A developer has been employed by a local high school to design and develop a study
app to track students’ HSC revision routines. The app must be ready as soon as
possible.
(a) Recommend and justify a suitable development approach for this HSC revision 3
app.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
(b) Describe ONE benefit of the use of a pilot installation for this HSC revision app. 2
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
– 18 –
Office Use Only – Do NOT write anything, or make any marks below this line.
0736310369
Question 25 (continued)
(c) Outline TWO reasons why system testing is necessary in the development of 3
this HSC revision app.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
Do NOT write in this area.
(d) Explain TWO factors outside the developer’s control which can affect the 3
quality of a user’s experience with this HSC revision app.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
End of Question 25
– 19 –
Office Use Only – Do NOT write anything, or make any marks below this line.
6277310365
Question 26 (4 marks)
Explain TWO ways in which CASE tools can improve the productivity of a 4
development team during the development of a large software project.
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
– 20 –
Office Use Only – Do NOT write anything, or make any marks below this line.
1032310369
BLANK PAGE
Do NOT write in this area.
– 21 –
Office Use Only – Do NOT write anything, or make any marks below this line.
0136310363
Question 27 (10 marks)
(a) Create an IPO diagram to represent the required processing in this system. 4
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
Question 27 continues on page 23
– 22 –
Office Use Only – Do NOT write anything, or make any marks below this line.
7037310360
Question 27 (continued)
(b) Design an appropriate data structure to store customer details for this fast-food 3
ordering system. Do NOT include food choices in this data structure.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
Do NOT write in this area.
(c) Before the start of the development of this fast-food ordering system, the project 3
manager was provided with information about the project team, including how
many members are available and their skills.
Describe how the project manager can use Gantt charts effectively throughout
the development of this system.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
End of Question 27
– 23 –
Office Use Only – Do NOT write anything, or make any marks below this line.
2207310364
Question 28 (6 marks)
The algorithm:
• allows input of a phrase
• removes repeated characters
• displays the shortened phrase.
– 24 –
Office Use Only – Do NOT write anything, or make any marks below this line.
1619310360
Question 28 (continued)
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
Do NOT write in this area.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
(b) Identify and correct any logic errors in the algorithm. You may refer to line 3
numbers in your response.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
End of Question 28
– 25 –
Office Use Only – Do NOT write anything, or make any marks below this line.
0585310361
Question 29 (3 marks)
Using an example, explain why programmers need to use different data types in their 3
code.
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
– 26 –
Office Use Only – Do NOT write anything, or make any marks below this line.
6577310368
BLANK PAGE
Do NOT write in this area.
– 27 –
Office Use Only – Do NOT write anything, or make any marks below this line.
4074310368
Question 30 (5 marks)
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
Do NOT write in this area.
.........................................................................................................................................
End of Question 30
– 29 –
Office Use Only – Do NOT write anything, or make any marks below this line.
0008310361
Question 31 (5 marks)
(a) Contrast the purpose of the program counter with that of the accumulator. 2
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
(b) A CPU can carry out the following assembly language instructions. 3
– 30 –
Office Use Only – Do NOT write anything, or make any marks below this line.
8952310367
Question 31 (continued)
Program
a b c d Accumulator Output
counter
2000 6 4 1 1
Do NOT write in this area.
End of Question 31
– 31 –
Office Use Only – Do NOT write anything, or make any marks below this line.
2306310364
Section II extra writing space
If you use this space, clearly indicate which question you are answering.
Office Use Only – Do NOT write anything, or make any marks below this line.
2770310369
1162 15360 5499310056
Centre Number
Software Design and
Development
Student Number
Section III
20 marks
Attempt either Question 32 or Question 33
Allow about 35 minutes for this section
Answer the question in the spaces provided. These spaces provide guidance for the expected
length of response.
If you include diagrams in your answer, ensure that they are clearly labelled.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
– 33 –
Question 32 (continued)
(b) Consider the following fragment of code which has been written using the
object oriented programming (OOP) paradigm.
class BIRD {
public -
IDNo: Integer
BiologicalName: String
CommonName: String
CountryOfOrigin: String
GetWholeName(IDNo)
WholeName = BiologicalName & CommonName
Return Wholename
end GetWholename
}
(i) With reference to the fragment of code above, explain the importance of 3
inheritance in the OOP paradigm.
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
– 34 –
8287310054
Question 32 (continued)
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
(c) A system uses cameras to detect whether drivers have used their mobile phone 3
while driving.
Describe how software in this system can determine whether or not a driver has
used their phone.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
Question 32 continues on page 37
– 35 –
BLANK PAGE
– 36 –
© 2022 NSW Education Standards Authority
1163 15360 8329310040
Centre Number
Software Design and
Development
Section III (continued) Student Number
Question 32 (continued)
(d) The following facts have been defined using the logic paradigm.
?- larger(elephant, cat)
...................................................................................................................
...................................................................................................................
...................................................................................................................
Write a query to find animals that are both smaller than a donkey and
bigger than a cat.
...................................................................................................................
...................................................................................................................
– 37 –
3146310042
Question 32 (continued)
(e) Using examples, explain how the use of appropriate paradigms can improve the 4
productivity of a programmer.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
End of Question 32
– 38 –
© 2022 NSW Education Standards Authority
1164 15360 8543310116
Centre Number
Software Design and
Development
Section III (continued) Student Number
(a) Show how TWO different integers can be represented by the binary number 2
10000011.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
(b) Show how to calculate the 32-bit IEEE754 single precision floating point 3
1
number that represents the decimal fraction − .
32
1
Convert to binary: − = − 0.00001
32
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
– 39 –
Question 33 (continued)
...............................................................................................................................
...............................................................................................................................
– 40 –
5123310117
Question 33 (continued)
(d) A logic circuit is needed to determine whether to hold an outdoor event, based 3
on current conditions.
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
...............................................................................................................................
Question 33 continues on page 43
– 41 –
BLANK PAGE
– 42 –
© 2022 NSW Education Standards Authority
1165 15360 1158310201
Centre Number
Software Design and
Development
Section III (continued) Student Number
Question 33 (continued)
– 43 –
Question 33 (continued)
(e) A basic robotic vacuum cleaner can move across the floor of a rectangular-
shaped room, vacuuming as it goes. The cleaner is circular, with four sensors as
shown below. Each sensor detects objects that the cleaner is about to bump into.
Sensor 1
Vacuum
Sensor 4 Sensor 2
cleaner
Sensor 3
Direction of
movement
A controller sends and receives data streams to and from the cleaner.
Y 4
0 Controller
0 1 2 3 4 5 6 ...
X
– 44 –
3548310206
Question 33 (continued)
The format of the 16-bit data stream depends on the type of move, as
specified in the first bit.
1 0
Type X coordinate (7 bits) Y coordinate (7 bits) Not
of used
move (1 bit)
OR
0 0 0 0 0 0 0 0 0 0 0 0 0 0
Type Direction Not used (13 bits)
of (2 bits)
move
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
– 45 –
Question 33 (continued)
As the cleaner moves around the room, it regularly sends a data stream
back to the controller.
Sensor
Battery
X coordinate (7 bits) Y coordinate (7 bits)
The cleaner is currently at (42, 18). The battery needs recharging and the
sensors have not detected an object.
Create the data stream sent from the cleaner to the controller.
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
– 46 –
© 2022 NSW Education Standards Authority
1166 15360 9309310218
Centre Number
Software Design and
Development
Section III (continued) Student Number
Question 33 (continued)
– 47 –
Question 33 (continued)
• If so, the controller needs to send a data stream to recall the cleaner
back to the controller.
• This process continues until the cleaner has arrived back at the
controller.
Note: You can use the routine Extract (variable, start_bit, no_of_bits) in
your algorithm.
For example,
String = “110111”
Extract (String, 4, 2) takes the 4th and 5th bits (11) and converts them
to their decimal value (3).
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
– 48 –
9892310215
Question 33 (continued)
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
...................................................................................................................
End of paper
– 49 –
BLANK PAGE
– 50 –
© 2022 NSW Education Standards Authority